有人能告诉我为什么这个apache配置会导致404s吗?

有人能告诉我为什么这个apache配置会导致404s吗?,apache,mod-rewrite,ssl,virtualhost,Apache,Mod Rewrite,Ssl,Virtualhost,我已经更改了所有个人信息,但这个完全相同的配置在*:80上运行良好。为重写日志和正常访问日志启用详细日志级别会创建一个充满SSL信息的文件,但没有实际的文档请求。难倒了 <VirtualHost *:443> ServerName *.domain.com DocumentRoot /domain/web/public RewriteEngine On RewriteCond %{HTTP_HOST} !^www.* [NC] RewriteCond %{HTTP_HOST} ^([

我已经更改了所有个人信息,但这个完全相同的配置在*:80上运行良好。为重写日志和正常访问日志启用详细日志级别会创建一个充满SSL信息的文件,但没有实际的文档请求。难倒了

<VirtualHost *:443>
ServerName *.domain.com
DocumentRoot /domain/web/public
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.* [NC]
RewriteCond %{HTTP_HOST} ^([^\.]+)\.domain\.com
RewriteRule ^(.*) /file.php?parameter=%1 [L]
<Directory /domain/web/public>
Options -Indexes IncludesNOEXEC FollowSymLinks -MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
SSLEngine on
SSLCertificateFile /domain/etc/domain.crt
SSLCertificateKeyFile /domain/etc/domain.key
</VirtualHost>

ServerName*.domain.com
DocumentRoot/domain/web/public
重新启动发动机
重写cond%{HTTP_HOST}^www.[NC]
重写cond%{HTTP\u HOST}^([^\.]+)\.domain\.com
重写规则^(.*)/file.php?参数=%1[L]
选项-索引包括noexec FollowSymLinks-多视图
允许超越所有
命令允许,拒绝
通融
斯伦金安
SSLCertificateFile/domain/etc/domain.crt
SSLCertificateKeyFile/domain/etc/domain.key

其他virtualhost文件干扰了所讨论的virtualhost。这不是最好的解决方案,但遵循craniumonempty的要求:我对所有其他主机文件进行了注释,在我有更多的时间找出微调失败的原因之前,我什么也不做。

我认为您还没有找到日志…添加了以下内容:ErrorLog/domain/web/public/log.log LogLevel debug它包含的只是SSL信息。刷新/访问站点不会增加日志文件的大小。已解决:其他虚拟主机conf文件正在干扰。就像我的猫吃我的晚餐一样。提交你的解决方案作为答案并接受它