Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:[% modproxyPort %]>
- ServerName [% sitename %]
- ServerAlias [% domain %]
- [% IF adminEmail %]
- ServerAdmin [% adminEmail %]
- [% END %]
- CustomLog [% domainRoot %]/[% sitename %]/logs/access.log combined
- DocumentRoot [% domainRoot %]/[% sitename %]/public
- # turn on mod_rewrite
- RewriteEngine On
- RewriteLog "[% wreRoot %]/var/logs/modrewrite.log"
- RewriteLogLevel 0
- # block IIS related attacks from getting to WebGUI
- RewriteRule ^/scripts/ - [L]
- RewriteRule ^/default.ida - [L]
- RewriteRule ^/_vti_bin - [L]
- RewriteRule ^/_mem_bin - [L]
- # leave static stuff to be served directly by modproxy
- RewriteRule ^/favicon.ico - [L]
- RewriteRule ^/extras/ - [L]
- # For speed we only pass on uploads if there is a .wgaccess file
- RewriteCond %{REQUEST_FILENAME} ^(.*/)
- RewriteCond %{DOCUMENT_ROOT}%1.wgaccess !-f
- RewriteRule ^/uploads/ - [L]
- # proxy webgui pages
- ProxyPreserveHost On
- RewriteRule ^/(.*) http://127.0.0.1:[% modperlPort %]/$1 [P]
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement