View Single Post:Thread - Deki Wiki 1.8.3b released!

# 8 Old 01-18-2008, 05:25 PM
PeteE PeteE is online now PeteE's reputation PeteE has disabled reputation » MindTouch Team
Join Date: Jul 2006 Posts: 714
Send a message via Skype™ to PeteE
Andy - Here's what mine looks like:
Code:
<VirtualHost *>
    ServerName deki-hayes

    ErrorLog /var/log/apache2/error.log 
    CustomLog /var/log/apache2/access.log common

    DocumentRoot "/var/www/deki-hayes"

    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^/$ 
    RewriteRule ^/$ /index.php?title= [L,NE]
    
    RewriteCond %{REQUEST_URI} ^/@gui/[^.]+$
    RewriteRule ^/@gui/(.*)$ /proxy.php?path=$1 [L,QSA,NE] 
    
    RewriteCond %{REQUEST_URI} !/(@api|editor|skins|config|@gui)/
    RewriteCond %{REQUEST_URI} !/(redirect|texvc|index|Version).php
    RewriteCond %{REQUEST_URI} !/error/(40(1|3|4)|500).html
    RewriteCond %{REQUEST_URI} !/favicon.ico
    RewriteCond %{REQUEST_URI} !/robots.txt
    RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search
    RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE]

    # deki-api uses encoded slashes in query parameters so AllowEncodedSlashes must be On
    AllowEncodedSlashes On   

    # mod_proxy rules
    ProxyPass /@api http://localhost:8081 retry=1
    ProxyPassReverse /@api http://localhost:8081
    SetEnv force-proxy-request-1.0 1
    SetEnv proxy-nokeepalive 1
</VirtualHost>
PeteE - MindTouch lackey
Join #mindtouch on freenode for questions about MindTouch
 
Powered by MindTouch 2010