【发布时间】:2014-01-18 10:16:48
【问题描述】:
我的http virtualhost配置文件完全相同,浏览器的渲染是好的。我已将(debian)新的 https 虚拟主机添加到 /etc/apache/site-available 但浏览器的呈现不正确。
您可以显示两个网站的运行情况:
http://www.mokaccino.it/index.php (works)
https://www.mokaccino.it/index.php (bad)
<VirtualHost *:443>
ServerSignature Off
ServerAdmin info@example.com
ServerName example.com
ServerAlias www.example.com
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
DirectoryIndex index.html index.php
DocumentRoot /home/example.com/
suPHP_Engine on
AddHandler x-httpd-php .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-php
suPHP_ConfigPath /home/example.com/
<Directory /home/example.com/>
Options -Includes -Indexes -FollowSymLinks -ExecCGI +MultiViews
AllowOverride none
Order allow,deny
Allow from all
</Directory>
ErrorLog /home/example.com/logs/error.log
CustomLog /home/example.com/logs/access.log combined
</VirtualHost>
【问题讨论】:
标签: linux apache2 virtualhost