Answer the question
In order to leave comments, you need to log in
What should be the case of writing virtual hosts?
Hello!
<VirtualHost *:80>
ServerName framework.loc
ServerAlias www.framework.loc
DocumentRoot /var/www/framework.loc
</VirtualHost>
<VirtualHost *:443>
ServerName framework.loc
ServerAlias www.framework.loc
DocumentRoot /var/www/framework.loc
SSLEngine On
SSLCertificateFile /var/www/ssl/framework.ssl/server.crt
SSLCertificateKeyFile /var/www/ssl/framework.ssl/server.key
</VirtualHost>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question