websites: Add role for pyrocufflink.net site
The *websites/pyrocufflink.net* role configures the public web server to host *pyrocufflink.net*. This site has two functions: * It redirects `/` to http://dustin.hatch.name/ * It proxies user home directories (i.e. /~dustin/) to the file server
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# vim: set sw=4 ts=4 sts=4 et :
|
||||
|
||||
<VirtualHost _default_:443>
|
||||
ServerName pyrocufflink.net
|
||||
Include conf.d/ssl.include
|
||||
SSLCertificateFile {{ apache_ssl_certificate }}
|
||||
SSLCertificateKeyFile {{ apache_ssl_certificate_key }}
|
||||
|
||||
ProxyRequests Off
|
||||
LogLevel rewrite:trace8
|
||||
RewriteEngine On
|
||||
RewriteRule ^/(~[^/]+)(/.*)?$ {{ userdir_proxy_backend }}/$1$2 [P]
|
||||
RewriteRule ^/$ http://dustin.hatch.name/
|
||||
ProxyPassReverse / {{ userdir_proxy_backend }}/
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user