Skip to content

Instantly share code, notes, and snippets.

@raksa
Created March 1, 2019 07:19
Show Gist options
  • Save raksa/0ed2592e19f5d97342f32746500fd4be to your computer and use it in GitHub Desktop.
Save raksa/0ed2592e19f5d97342f32746500fd4be to your computer and use it in GitHub Desktop.
config apahce https virtual host
<VirtualHost *:443>
DocumentRoot "/dir/to/document"
ServerName domain
SSLEngine on
SSLCertificateFile /dir/to/cert/file.pem
SSLCertificateKeyFile /dir/to/cert/file.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment