aboutsummaryrefslogtreecommitdiff
path: root/apache
diff options
context:
space:
mode:
Diffstat (limited to 'apache')
-rw-r--r--apache24
1 files changed, 24 insertions, 0 deletions
diff --git a/apache b/apache
new file mode 100644
index 0000000..730b135
--- /dev/null
+++ b/apache
@@ -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>:]