Apache disable directory index
When Apache Directory Index is enabled, if you browse to a url that have no index file present, you will see list…
When Apache Directory Index is enabled, if you browse to a url that have no index file present, you will see list…
To enable CORS in apache, add the following in VirtualHost or .htaccess If your apache installation don’t have mod_headers installed, you need…
On a Ubuntu server, run i run apachectl status, i get following error. root@server:~# apachectl status /usr/sbin/apachectl: 113: /usr/sbin/apachectl: www-browser: not found…
To show the full domain name in the Apache access log, you can use the following log format If you want to…
To redirect a folder to another using .htaccess, create RedirectMatch 301 ^/OLD_FOLDER/(.*)$ /NEW_FOLDER/$1 Or RewriteEngine On RewriteRule ^OLD_FOLDER/(.*)$ /NEW_FOLDER/$1 [R=301,NC,L] Or Redirect…
To password protect a web site or a sub folder using .htaccess, create a .htaccess file in the folder. vi .htaccess Add…
When using Apache web server behind cloudflare, apache logs show cloudflare IP address instead of real visitor IP address. To show actual…
On a web site, customer need to redirect all pages to HTTPS, but want to keep files in one of the folder…
To optimize Apache web server, run curl -sL https://raw.githubusercontent.com/richardforth/apache2buddy/master/apache2buddy.pl | sudo perl
When Apache web server running behind reverse proxy or load balancer, server log and scripts show IP of reverse proxy server or…
apachectl command is used to interact with Apache web server. To see Apache status apachectl status To list virtualhost info, run apachectl…
mod ruid2 allow you to run web site as differnt user from the one web server is running. This is helpfull when…