Skip to content

Instantly share code, notes, and snippets.

@Anime4000
Last active December 8, 2019 04:58
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 Anime4000/1164ad66f6835ca698874fe5693d399c to your computer and use it in GitHub Desktop.
Save Anime4000/1164ad66f6835ca698874fe5693d399c to your computer and use it in GitHub Desktop.
WAMP HTTPS/SSL for Internet
<VirtualHost *:443>
ServerName example.com
ServerAdmin admin@example.com
DocumentRoot "${INSTALL_DIR}/www/internet"
<Directory "${INSTALL_DIR}/www/internet/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
SSLEngine on
SSLCertificateFile "${SRVROOT}/conf/server.crt"
SSLCertificateKeyFile "${SRVROOT}/conf/server.key"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "${SRVROOT}/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-5]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog "${SRVROOT}/logs/ssl_request.log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
ErrorLog "${SRVROOT}/logs/error.log"
TransferLog "${SRVROOT}/logs/access.log"
</VirtualHost>
<VirtualHost *:80>
ServerName example.com
DocumentRoot "${INSTALL_DIR}/www/internet"
<Directory "${INSTALL_DIR}/www/internet/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment