diff options
| author | Rafael Laboissière <rafael@laboissiere.net> | 2022-12-10 16:18:50 -0300 |
|---|---|---|
| committer | Rafael Laboissière <rafael@laboissiere.net> | 2022-12-10 16:18:50 -0300 |
| commit | d48c1ce2af934c512f808150e95a60a3ace21640 (patch) | |
| tree | bc7ab88f940bf57a30130b2563f7d9b3ca704b4c /apache | |
Initial commit
Diffstat (limited to 'apache')
| -rw-r--r-- | apache | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +[MODE: -*- apache -*- :] + +[HTTPS: +<IfModule mod_ssl.c>:] +<VirtualHost *:[HTTP:80:][HTTPS:443:]> + ServerAdmin cefala-admin@cefala.org + ServerName cgit.cefala.org + ProxyPass /cgit http://git.cefala.org/cgit/ + ProxyPassReverse /cgit http://git.cefala.org/cgit/ + ProxyPass /cgit-css http://git.cefala.org/cgit-css/ + ProxyPassReverse /cgit-css http://git.cefala.org/cgit-css/ + ProxyPass / http://git.cefala.org/cgit/ + ProxyPassReverse / http://git.cefala.org/cgit/ +[HTTP: + RewriteEngine on + RewriteCond %{SERVER_NAME} =cgit.cefala.org + RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]:] +[HTTPS: + Include /etc/letsencrypt/options-ssl-apache.conf + SSLCertificateFile /etc/letsencrypt/live/cgit.cefala.org/fullchain.pem + SSLCertificateKeyFile /etc/letsencrypt/live/cgit.cefala.org/privkey.pem:] +</VirtualHost> +[HTTPS: +</IfModule>:] |
