/Main_Page

::You must have ninja focus to complete your mission::NinjaFocus::

Apache

Views:


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>

Main Menu

Personal tools

Toolbox