-
-
Save claudiu-marginean/a8f2e8c0b47304bcd978 to your computer and use it in GitHub Desktop.
VirtualHost in XAMPP with https (with certif from localhost)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
DocumentRoot "D:/www/project-name" | |
ServerName local.project-name.net | |
ServerAlias local.project-name.net | |
#SetEnv MAGE_IS_DEVELOPER_MODE "true" | |
<Directory "D:/www/project-name"> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> | |
<VirtualHost *:443> | |
DocumentRoot "D:/www/project-name" | |
ServerName local.project-name.net | |
ServerAlias local.project-name.net | |
#SetEnv MAGE_IS_DEVELOPER_MODE "true" | |
<Directory "D:/www/project-name"> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
</Directory> | |
ErrorLog "logs/error.log" | |
<IfModule log_config_module> | |
CustomLog "logs/access.log" combined | |
</IfModule> | |
# SSL Engine Switch: | |
# Enable/Disable SSL for this virtual host. | |
SSLEngine on | |
# SSL Cipher Suite: | |
# List the ciphers that the client is permitted to negotiate. | |
# See the mod_ssl documentation for a complete list. | |
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL | |
# Server Certificate: | |
SSLCertificateFile "conf/ssl.crt/server.crt" | |
# Server Private Key: | |
SSLCertificateKeyFile "conf/ssl.key/server.key" | |
<FilesMatch "\.(cgi|shtml|pl|asp|php)$"> | |
SSLOptions +StdEnvVars | |
</FilesMatch> | |
<Directory "C:/xampp/cgi-bin"> | |
SSLOptions +StdEnvVars | |
</Directory> | |
BrowserMatch ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0 | |
CustomLog "logs/ssl_request.log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment