Apache重定向443超时错误

时间:2018-04-03 09:55:00

标签: apache redirect virtualhost

我从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>

请问好吗?谢谢。

0 个答案:

没有答案