Apache
Views:
- Apache AuthLDAP ActiveDirectory
- Apache Compression
- Apache2 Config for Netmail and Netstorage
- Apache and Ruby on Rails with Passenger
- Apache Bandwidth Limiting
- Apache Benchmark Tool
- Apache_Rewrite_Rules
- Apache on Windows
Safely Reload / Apply Configuration Changes
You can get apache to gracefully reload and re-read it's configuration files with this:
# apachectl graceful
..but if there are any configuration problems you may get a fatal error and your web server will be down.
Test the configuration files with
# apachectl -t
... put it all together like this:
# apachectl -t && apachectl graceful
Hiding Version Control
Don't let people peer in to your version control or learn what tools you use
#Ban access to CVS files
<DirectoryMatch "^/.*/CVS">
Order allow,deny
Deny from all
</DirectoryMatch>
#Ban access to Subversion Files
<DirectoryMatch "^/.*/\.svn">
Order allow,deny
Deny from all
</DirectoryMatch>
Hiding Temporary Files
Ever edited or tweaked a file on a live web site? Had to get in quick with vim to make that change ASAP? Vim will drop a temporary file next to the one you're editing and the web server will end up sending it as plain text if it is requested. If that wasn't a good enough reason to keep all of your application code out of the web root, then you need this:
#Ban access to temporary editor files
<Files ~ "~$">
Order allow,deny
Deny from all
</Files>
