这可能是一个新手的问题,但...我的Apache配置SSL站点如下:阿帕奇始终服务的DocumentRoot的index.php
NameVirtualHost *:443
<VirtualHost *:443>
ServerName dev.wonnova.com
DocumentRoot "/var/www/myapp/wwwroot"
SSLEngine on
SSLProtocol -all +TLSv1 +SSLv3
SSLCipherSuite HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUM
SSLCertificateFile /etc/apache2/ssl/mycert.crt
SSLCertificateKeyFile /etc/apache2/ssl/mycert.key
<IfModule mime.c>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfModule>
Alias /mydir/ "/var/www/myapp/mydir"
<Directory "/var/www/myapp/mydir">
SSLRequireSSL
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
的事情是,我要求无论哪个URL,我总是获取/var/www/myapp/wwwroot/index.php的内容(即在DocumentRoot
目录中的index.php)。它发生的这些URL,作为一个例子:
- https://mysite/index.php
- https://mysite/mydir/index.php
- https://mysite/mydir/style.css
- https://mysite/mydir/script.js
在另一方面,如果我创建的DocumentRoot目录中index2.php文件,它正确地显示:
- https://mysite/index2.php
我想有一些我的Apache配置是错误的。
你可以尝试'的AllowOverride none'给我的结果吗? – Eray
你的根目录中是否有'.htaccess'文件? – jaudette
@Eray:没有任何变化,:-( –