user sender if owner is unknown
[pharext/pharext.org] / etc / apache2.conf
index 5f9c3e298dc51b12289b59c5ec8528952bfd9c26..381d46e84e1e6f175f369c04cc4e7df760b77ab7 100644 (file)
                AllowOverride All
                Require all granted
                SetEnv APP_ENVIRONMENT production
+               RemoveHandler .phar
                <Files "*.phar">
+                       SetHandler default-handler
                        ForceType application/phar
                </Files>
+               <FilesMatch ".+\.ph(p|tml)$">
+                       SetHandler "proxy:unix:/run/php/php-pharext.sock|fcgi://localhost"
+               </FilesMatch>
        </Directory>
 </Macro>
 
 <VirtualHost *:80>
        Use pharext_host_defs
-       Redirect permanent / https://pharext.org/
+       Use ssl_redirect
+</VirtualHost>
+
+<VirtualHost *:443>
+       Use pharext_host_defs
+       Use ssl_defs "pharext.org" "hsts"
 </VirtualHost>
 
-<IfModule ssl_module>
-       <VirtualHost *:443>
-               Use pharext_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