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
Deny from all
Order deny,allow
Allow from all
ErrorLog /var/log/apache2/users.example.com-error.log
CustomLog /var/log/apache2/users.example.com-access.log combined
#
# 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
#
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
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