blob: 5b46c528594019a427a79aeebe891b837f42f559 (
plain)
- <VirtualHost *:443>
- ServerName users.example.com:443
- ServerAdmin webmaster@example.com
- DocumentRoot /var/www/vhosts/web-static/users.example.com/
- Include /etc/apache2/conf.d/local-ssl.conf
- # Include /etc/apache2/conf.d/local-userdir.conf
- # Include /etc/apache2/conf.d/local-macvolumes.conf
- # Support OpenID using Gracie
- RewriteEngine On
- RewriteRule ^/(login|id/.*) http://localhost:8000/$1 [L,P]
- RewriteRule ^/-(.*) https://users.example.com/~$1 [R]
- RewriteRule ^/([^~].*) https://users.example.com/~$1 [R]
- # prevent the webserver from beeing used as proxy
- <LocationMatch "^[^/]">
- Deny from all
- </LocationMatch>
- <ProxyMatch http://localhost:8000/.*>
- Order deny,allow
- Allow from all
- </ProxyMatch>
-
- ErrorLog /var/log/apache2/users.example.com-error.log
- CustomLog /var/log/apache2/users.example.com-access.log combined
- </VirtualHost>
- #<VirtualHost *:80>
- # ServerName users.example.com
- # ServerAlias users
- # ServerAdmin webmaster@example.com
- #
- # DocumentRoot /var/www/vhosts/web-static/users.example.com/
- #
- # Include /etc/apache2/conf.d/local-userdir.conf
- # Include /etc/apache2/conf.d/local-macvolumes.conf
- #
- # RewriteEngine On
- # RewriteRule ^/(login|id/.*) https://users.example.com/$1 [R]
- # RewriteRule ^/-(.*) http://users.example.com/~$1 [R]
- # RewriteRule ^/([^~].*) http://users.example.com/~$1 [R]
- #
- # TransferLog /dev/null
- # ErrorLog /var/log/apache2/users.example.com-error.log
- # CustomLog /var/log/apache2/users.example.com-access.log combined
- #</VirtualHost>
- <VirtualHost *:443>
- ServerName www.users.example.com:443
- ServerAlias *.users.example.com:443
- ServerAlias users:443
- ServerAlias *.users:443
- ServerAdmin webmaster@example.com
- Include /etc/apache2/conf.d/local-ssl.conf
- Include /etc/apache2/conf.d/local-log-origin.conf
- RewriteEngine On
- RewriteRule / https://users.example.com/ [R]
- CustomLog /var/log/apache2/redirect.log origin
- </VirtualHost>
- <VirtualHost *:80>
- ServerName www.users.example.com
- ServerAlias *.users.example.com
- ServerAlias *.users
- ServerAdmin webmaster@example.com
- Include /etc/apache2/conf.d/local-log-origin.conf
- RewriteEngine On
- RewriteRule / http://users.example.com/ [R]
- CustomLog /var/log/apache2/redirect.log origin
- </VirtualHost>
|