Skip to content

Instantly share code, notes, and snippets.

@geoghegan
Created March 20, 2019 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geoghegan/3691fc0ab5fc18734868a61b334389eb to your computer and use it in GitHub Desktop.
Save geoghegan/3691fc0ab5fc18734868a61b334389eb to your computer and use it in GitHub Desktop.
z-push apache config
Alias /Microsoft-Server-ActiveSync /domains/z-push.example.com/public_html/index.php
<Directory "/domains/z-push.example.com/public_html">
Options -Indexes
AllowOverride None
Require all granted
php_flag magic_quotes_gpc off
php_flag register_globals off
php_flag magic_quotes_runtime off
php_flag short_open_tag on
</Directory>
<VirtualHost *:443>
ServerName z-push.example.com
DocumentRoot /domains/z-push.example.com/public_html/
CustomLog /domains/z-push.example.com/logs/access.log combined
ErrorLog /domains/z-push.example.com/logs/error.log
<IfModule mod_ssl.c>
SSLEngine On
SSLCipherSuite AES128+EECDH:AES128+EDH
SSLProtocol All -SSLv2 -SSLv3
SSLHonorCipherOrder On
SSLCertificateFile /etc/letsencrypt/live/z-push.example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/z-push.example.com/privkey.pem
</IfModule>
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment