SHARE
TWEET

Untitled

a guest Nov 14th, 2011 29 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <VirtualHost *:[% modproxyPort %]>
  2.     ServerName [% sitename %]
  3.     ServerAlias [% domain %]
  4.     [% IF adminEmail %]
  5.         ServerAdmin [% adminEmail %]
  6.     [% END %]
  7.     CustomLog [% domainRoot %]/[% sitename %]/logs/access.log combined
  8.     DocumentRoot [% domainRoot %]/[% sitename %]/public
  9.  
  10.     # turn on mod_rewrite
  11.     RewriteEngine On
  12.     RewriteLog "[% wreRoot %]/var/logs/modrewrite.log"
  13.     RewriteLogLevel 0
  14.  
  15.     # block IIS related attacks from getting to WebGUI
  16.     RewriteRule ^/scripts/ - [L]
  17.     RewriteRule ^/default.ida - [L]
  18.     RewriteRule ^/_vti_bin - [L]
  19.     RewriteRule ^/_mem_bin - [L]
  20.  
  21.     # leave static stuff to be served directly by modproxy
  22.     RewriteRule ^/favicon.ico - [L]
  23.     RewriteRule ^/extras/ - [L]
  24.  
  25.     # For speed we only pass on uploads if there is a .wgaccess file
  26.     RewriteCond %{REQUEST_FILENAME}             ^(.*/)
  27.     RewriteCond %{DOCUMENT_ROOT}%1.wgaccess     !-f
  28.     RewriteRule ^/uploads/                      - [L]
  29.  
  30.     # proxy webgui pages
  31.     ProxyPreserveHost On
  32.     RewriteRule ^/(.*) http://127.0.0.1:[% modperlPort %]/$1 [P]
  33. </VirtualHost>
  34.  
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top