https setup - 链接显示目录列表而不是网页

时间:2013-03-30 19:28:44

标签: php apache ssl https lampp

我正在尝试根据本文

在我的lampp服务器上启用https

http://inchoo.net/tools-frameworks/how-to-setup-http-protocol-with-ssl-on-lamp-environment/

但是当我尝试访问“https://mywebsite.com”时,它会显示htdocs文件夹的目录列表。

虚拟主机confit

<Virtualhost mysite.com:443>
    DocumentRoot /opt/lampp/htdocs/myfolder/
    ServerName mysite.com:443
    ErrorLog /opt/lampp/logs/error_log
    TransferLog /opt/lampp/logs/access_log
    SetEnv APPLICATION_ENV development
    SSLEngine on
    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
    SSLCertificateFile /opt/lampp/etc/ssl.crt/mysite.com.crt
    SSLCertificateKeyFile /opt/lampp/etc/ssl.key/mysite.com.key
    <filesmatch "\.(cgi|shtml|phtml|php)$">
        SSLOptions +StdEnvVars
    </filesmatch>
    <directory "/opt/lampp/htdocs/myfolder">
        SSLOptions +StdEnvVars
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </directory>
    BrowserMatch ".*MSIE.*" \
    nokeepalive ssl-unclean-shutdown \
    downgrade-1.0 force-response-1.0
    CustomLog /opt/lampp/logs/ssl_request_log \
    "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</Virtualhost>

感谢

0 个答案:

没有答案