Was this page helpful?

Exclude directory in Apache

    Exclude Directory in Apache

    In some cases you may want to have another directory under your MindTouch Document Root.  For example, let's say you want to make your photos available at:

    http://wiki.example.org/photos

    Edit mod_rewrite rules

    Edit your MindTouch apache configuration (on Debian this is /etc/apache2/sites-available/dekiwiki).  Before or after this line:

    RewriteCond %{REQUEST_URI} !/(@api|editor|skins|config|deki)/

    Add a line like this:

    RewriteCond %{REQUEST_URI} !^/(photos|photos/.*)$

    Reload Apache

    /etc/init.d/apache2 reload

     

    This will exclude the MindTouch rewrite rule for URI's like:

    http://wiki.example.org/photos
    http://wiki.example.org/photos/
    http://wiki.example.org/photos/photo1.jpg
     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by