30 lines
891 B
Plaintext
30 lines
891 B
Plaintext
|
|
<VirtualHost *:443>
|
||
|
|
proxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://php:9000${DOCUMENT_ROOT}/
|
||
|
|
SSLEngine on
|
||
|
|
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
|
||
|
|
|
||
|
|
SSLCertificateFile /etc/certs/${SERVER_NAME}.pem
|
||
|
|
SSLCertificateKeyFile /etc/certs/${SERVER_NAME}-key.pem
|
||
|
|
SSLCertificateChainFile /etc/certs/cacert.pem
|
||
|
|
|
||
|
|
ServerName ${SERVER_NAME}/
|
||
|
|
DocumentRoot ${DOCUMENT_ROOT}
|
||
|
|
|
||
|
|
Header set Access-Control-Allow-Origin "*"
|
||
|
|
|
||
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||
|
|
|
||
|
|
<Directory /var/www/html>
|
||
|
|
AllowOverride none
|
||
|
|
Require all granted
|
||
|
|
Order Allow,Deny
|
||
|
|
Allow from all
|
||
|
|
DirectoryIndex index.php
|
||
|
|
</Directory>
|
||
|
|
</VirtualHost>
|
||
|
|
|
||
|
|
<VirtualHost *:80>
|
||
|
|
ServerName ${SERVER_NAME}
|
||
|
|
Redirect / https://${SERVER_NAME}
|
||
|
|
</VirtualHost>
|