天蓬老师2017-04-21 11:18:29
<VirtualHost *:443>
ServerName example.com
DocumentRoot /var/www/html
...
SSL相关部分
...
</VirtualHost>
<VirtualHost *:80>
ServerName example.com
DocumentRoot /var/www/html
...
其他apache配置
...
</VirtualHost>
怪我咯2017-04-21 11:18:29
Isn’t that right? I haven't tried it either, just looked at the configuration I'm using.
ServerName example.com:443
DocumentRoot /var/www/html
...
SSL related parts
...
ServerName example.com:80
DocumentRoot /var/www/html
...
Other apache configuration
...