Apache Tips & Tricks
Here you can find various tips & tricks for configuring and administrating Apache that I found to be useful. Once I will add a new tip, I’ll link it here so you can use this page as a main placeholder for all the tips I will post in the future. Each tip will consist in a very short description, what is it used for, where can you apply it (globally, per directory or per virtual hosts, if it can be activated without administrative privileges in .htaccess) and of course a how to implement it. I will try to keep each tip as short as possible and on a single topic so you can go directly to what you are looking for.
If you would like to submit your own tip in this section, please feel free to contact me, and if I will like your post I will publish it.
- Tip 1: Discover the web server software and version of a remote server
- Tip 2: Default apache2 configuration files location
- Tip 3: Hide apache software version
- Tip 4: Hide php version (X-Powered-By)
- Tip 5: Hide a file type from directory indexes
- Tip 6: Disable directory indexes
- Tip 7: Deny access to certain file types
- Tip 8: Deny access to some folders
- Tip 9: Disable the HTTP TRACE method
…and many more tips still waiting to be posted…
>
Tags: apache, apache-tips-and-tricks, apache2, htaccess, tips
24th May 2007, 04:26
This set of tips was a great help. Thanks for such a simple and useful guide.
21st July 2009, 11:14
Thanks for the great
there is a little problem im facing with the new htaccess which is all my urls ending with (.htm) any htaccess tips/tricks to remove that and just get a clean url?
thanks in advance
24th July 2010, 16:51
Another good thing is to leverage browser cache. It speed up page loading
http://diogomelo.net/drupal/blog/10/setting-header-parameters-apache-using-htaccess-error-500-internal-server-error