我从80到443端口的重定向不起作用。 我有一个错误超时 这是我的conf文件:
<VirtualHost *:80>
ServerName www.example.com
Redirect "/" "https://www.example.com/"
</VirtualHost>
<VirtualHost *:443>
ServerName www.example.com
DocumentRoot "C:/Myfolder"
<Directory "C:/Myfolder">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex home.html
</Directory>
SSLEngine on
SSLCertificateFile conf/ssl/certs/wildcard.mydomain.com.crt
SSLCertificateKeyFile conf/ssl/private/wildcard.mydomain.com.key
SSLCertificateChainFile conf/ssl/certs/wildcard.mydomain.com.pem
SSLVerifyClient None
Alias ...
</VirtualHost>
但如果我更换
,一切正常<VirtualHost *:80>
与
<VirtualHost www.example.com:80>
和
<VirtualHost *:443>
与
<VirtualHost www.example.com:443>
请问好吗?谢谢。