Digital Point » Apache
11 FOLLOWERS
The world's largest marketing/webmaster community. A forum category for discussing anything related to the Apache web server (mod_rewrite, .htaccess, etc.).
Digital Point » Apache
2M ago
// Lines added to the /etc/apache2/sites-available/nextcloud.conf
< virtualhost *:80>
ServerName jes-linux.nextcloud.io
Documentroot /var/www/html/nextcloud
< /virtualhost>
// Commands used for setting up apache2 using terminal commands
root@jes-linux:~# nano /etc/apache2/sites-available/nextcloud.conf
root@jes-linux:~# systemctl restart apache2
root@jes-linux:~# ln -s /etc/apache2/sites-available/nextcloud.conf /etc/apache2/sites-enabled/nextcloud.conf
root@jes-linux:~# a2enmod rewrite...
NextCloud can't seem to get it set up in Apache2 ..read more
Digital Point » Apache
2M ago
Has anyone come across a bullet-proof way of caching for static assets, just using the .htaccess file please ..read more
Digital Point » Apache
8M ago
How to fix these types of htaccess issue?
I am not expert in htaccess url rewriting, know some basics. What i am facing issue is
htaccess code for services page pagination
RewriteRule services-(.*)\.php$ services.php?page=$1 [NC,L]
Code (markup):
When we add other services and rewrite URL
RewriteRule service/(.*)-(.*)\.php$ service.php?name=$1&id=$2 [NC,L]
Code (markup):
If we add "Link Building Services" and URL is like service/link-building-services-1.php then its showing services page...
HTACCESS Collapsing On Few Words ..read more
Digital Point » Apache
9M ago
I am running the Apache2.4 web server in the Microsoft Windows 10 ( Home ) Edition operating system. The Apache2.4 service is stopped, and I am unable to restart it. When I access the system log, through Event Viewer, the error message is as follows:
"The Apache2.4 service terminated with the following service-specific error:
Incorrect function."
Does anyone have a solution for this problem? Thank you for your help.
Russell E. Willis ..read more
Digital Point » Apache
1y ago
Hi, I'm trying to redirect requests from a domain according to the value of a custom HEADER, but i can't
This is what i did
Header set testing "Test"
RewriteCond %{testing} !^$
RewriteRule ^ - [F]
Code (markup):
With CURL I get the header, but not the 403
curl --head http://domainHTTP/1.1 200 OK
Server: Apache/2.4.54 (Debian)
Vary: Accept-Encoding
testing: Test
Content-Type: text/html
Code (markup):
This same with existing HEADERS works correctly
RewriteCond %{REMOTE_ADDR} !^$...
Code (markup):
Redirect apache2 with custom header ..read more
Digital Point » Apache
1y ago
Because of kswapd0 command which appear in my Putty and eating CPU and RAM, my websites are going down for couple of minutes.
Did somebody have an idea how to stop that process?
Is there some script or command which i can execute in Putty to that finally can stop?
Thanks ..read more
Digital Point » Apache
1y ago
I am frustrated to nearly tears (not really, but I'm pissed off for sure).
Here's the issue - Apache is not allowing .htaccess to function correctly. I have gone into the http.conf file and loaded mod_rewrite and have made the directives set to "AllowOverride All". I've restarted Apache and it still is not working.
I am using Xampp..I cannot figure out what in the world is going wrong. WordPress needs to access and use .htaccess in order to make my link structure work. ISPConfig 3 does...
Apache 500 Server Error with my WordPress on localhost ..read more
Digital Point » Apache
1y ago
I am logged in terminal via WHM and i am trying to execute some command. But i see message in terminal "Unable to run as root"
How is that possible if i am logged as root in terminal that command can't be executed ..read more
Digital Point » Apache
1y ago
On my .htaccess file, I have simple redirections like this one:
redirect 301 /oldpage.php https://www.mywebsite.com/new.page.php
Then I've got got the big rewrite script force the "https" and the "www":
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Code (markup):
My concern is that it makes 2...
order of redirections ..read more
Digital Point » Apache
1y ago
Hello,
Today I check few of my websites folder under my web server I found that most of the folders contains the file "error_log" at some folders it is in smaller size but in others its around 600-900 MB in size per file. My question is
1. Whether its wise to stop creation of that file by Apache? If yes then how to stop it?
2. Second question is can we stop it for only few websites?
3. And is that safe to delete error_log file? If yes how to search that file in SSH and how to...
error_log How to delete all via SSH ..read more