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 Deny from all Order deny,allow Allow from all ErrorLog ${APACHE_LOG_DIR}/users.example.com-error.log CustomLog ${APACHE_LOG_DIR}/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 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 # 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 # 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