Created
October 11, 2015 02:08
-
-
Save rilindo/29b4a108e27db730a479 to your computer and use it in GitHub Desktop.
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
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout `pwd`/apache.key -out `pwd`/apache.crt | |
NameVirtualHost *:80 | |
NameVirtualHost *:443 | |
<VirtualHost *:80> | |
ServerAlias test | |
DocumentRoot /var/www/html | |
ServerName test.monzell.com | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerAlias Test | |
DocumentRoot /var/www/html | |
ServerName test.monzell.com | |
SSLEngine on | |
SSLCertificateFile /etc/httpd/ssl-certs/apache.crt | |
SSLCertificateKeyFile /etc/httpd/ssl-certs/apache.key | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment