我已经配置了 VirtualHost:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/mysite.com/public_html/
ServerName www.mysite.com
ServerAlias mysite.com
<Directory "/var/www/mysite.com/public_html">
#Options FollowSymLinks
#AllowOverride All
#Order allow,deny
#Allow from all
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
我想要:
- 强制执行仅 https 连接
- 并在用户使用没有 www 的 mysite.com 时允许连接
怎么做?
谢谢