0

我正在尝试https根据本文在我的lampp服务器上启用

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

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

虚拟主机配置

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

谢谢

4

0 回答 0