blob: 79fb23ee7e0950447d6700af370fa85bc6a57c74 (
plain)
- <VirtualHost *:443>
- ServerName users.example.com:443
- ServerAdmin webmaster@example.com
- DocumentRoot /var/www/vhosts/web-static/users.example.com/
- Include conf-available/local-tls.conf
- # Include conf.d/local-userdir.conf
- # Include 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 ${APACHE_LOG_DIR}/users.example.com-error.log
- CustomLog ${APACHE_LOG_DIR}/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 conf.d/local-userdir.conf
- # Include conf.d/local-macvolumes.conf
- #
- # # Support OpenID using Gracie
- # 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 ${APACHE_LOG_DIR}/users.example.com-error.log
- # CustomLog ${APACHE_LOG_DIR}/users.example.com-access.log combined
- #</VirtualHost>
- <VirtualHost *:443>
- ServerName www.users.example.com:443
- ServerName *.users.example.com:443
- ServerName users:443
- ServerName *.users:443
- Include conf-available/local-tls.conf
- RewriteEngine On
- RewriteRule / https://users.example.com/[R]
- # RewriteRule /(.*) https://users.example.com/$1 [R]
- CustomLog ${APACHE_LOG_DIR}/redirect.log vhost_combined
- </VirtualHost>
- <VirtualHost *:80>
- # ServerName www.users.example.com
- ServerName users.example.com
- ServerAlias *.users.example.com
- ServerAlias users
- ServerAlias *.users
- RewriteEngine On
- # RewriteRule / http://users.example.com/ [R]
- # RewriteRule /(.*) http://users.example.com/$1 [R]
- RewriteRule / https://users.example.com/ [R]
- # RewriteRule /(.*) https://users.example.com/$1 [R]
- CustomLog ${APACHE_LOG_DIR}/redirect.log vhost_combined
- </VirtualHost>
|