add config
authorMichael Wallner <mike@php.net>
Fri, 8 Mar 2019 15:53:32 +0000 (16:53 +0100)
committerMichael Wallner <mike@php.net>
Fri, 8 Mar 2019 15:53:32 +0000 (16:53 +0100)
etc/apache2.conf [new file with mode: 0644]

diff --git a/etc/apache2.conf b/etc/apache2.conf
new file mode 100644 (file)
index 0000000..aeba207
--- /dev/null
@@ -0,0 +1,33 @@
+<Macro replicator_host_defs>
+       ServerName replicator.pharext.org
+       ServerAdmin webmaster@pharext.org
+
+       DocumentRoot /var/www/replicator/public
+
+       <Directory /var/www/replicator/public>
+               SetEnv owners m6w6,pharext,mdref
+               Options Indexes FollowSymLinks MultiViews
+               AllowOverride None
+               Require all granted
+               <Files "*.phar">
+                       ForceType application/phar
+               </Files>
+       </Directory>
+</Macro>
+
+<VirtualHost *:80>
+       Use replicator_host_defs
+       Redirect permanent / https://replicator.pharext.org/
+</VirtualHost>
+
+<IfModule ssl_module>
+       <VirtualHost *:443>
+               Use replicator_host_defs
+               Include "bits/hsts"
+               SSLEngine on
+               SSLUseStapling on
+               SSLCertificateKeyFile /etc/letsencrypt/live/pharext.org/privkey.pem
+               SSLCertificateFile /etc/letsencrypt/live/pharext.org/fullchain.pem
+       </VirtualHost>
+</IfModule>
+# vim: syntax=apache ts=4 sw=4 sts=4 sr noet