Laravel Block Https请求

时间:2016-01-07 09:16:45

标签: laravel https

我正在开发laravel项目,让我们说www.domain.net

但是当我尝试输入https://www.domain.net

它显示了包含我的服务器信息的目录列表(如Apache)

如何阻止访问https?

1 个答案:

答案 0 :(得分:0)

你的httpd.conf看起来应该是这样的。

<VirtualHost *:443>
        ServerAdmin john@email.com
        #DirectoryIndex index.php
        DocumentRoot "/var/www/html/project"
        ServerName www.abc.com
        SSLEngine on
        SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
        SSLCertificateFile /path/certificate.crt
        SSLCertificateKeyFile /path/certificate.key
        SSLCertificateChainFile /path/keychain.crt
        ServerAlias abc.in
        ErrorLog logs/abc.in-error_log
        CustomLog logs/abc.in-access_log common

        <Directory "/var/www/html/project">
        Options Includes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
        </Directory>
</VirtualHost>
相关问题