# The DocumentRoot is set by fabric DocumentRoot /dev/null ServerName plinth ServerAlias plinth.* ## Force ssl RewriteEngine on ReWriteCond %{SERVER_PORT} !^443$ RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L] # The DocumentRoot is set by fabric DocumentRoot /dev/null ServerName plinth ServerAlias plinth.* SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.pem ## Use a rule like this to hang plinth off a subdir #RewriteEngine on #RewriteRule ^/plinth/(.*)$ http://localhost:8000/$1 [P,L] #Use the following to debug rewrite rules #RewriteLog "/var/log/apache2/rewrite.log" #RewriteLogLevel 9 ## Use proxy directives to hand plinth off a domain or subdomain ProxyPass /static ! ProxyPass / http://localhost:8000/ ProxyPassReverse / http://localhost:8000/ allow from all