Files
configpolicy/roles/websites/pyrocufflink.net/templates/pyrocufflink.httpd.conf.j2
Dustin C. Hatch ed5f7108dc 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
2019-01-04 20:52:23 -06:00

16 lines
491 B
Django/Jinja

# 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>