algo/roles/proxy/templates/000-default.conf.j2
2016-08-17 23:26:21 +03:00

12 lines
290 B
Django/Jinja

<VirtualHost *:*>
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
RewriteEngine On
RewriteRule ^(.*)$ http://%{HTTP_HOST}$1 [NC,P]
ProxyPass / http://$1
ProxyPassReverse / http://$1
ProxyPreserveHost On
</VirtualHost>