Could someone please tell me why this apache config results in 404s?

Go To StackoverFlow.com

0

I have changed all personal information, but this exact same config works just fine on *:80. Turning on verbose log levels for both rewrite and normal access logs creates a file full of SSL information, but no actual document requests. Stumped.

<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>
2012-04-05 02:28
by EvilJordan
And the error logs - Ignacio Vazquez-Abrams 2012-04-05 02:31
Blank. Bizzare, right - EvilJordan 2012-04-05 02:31
I don't think you've found the logs yet.. - Ignacio Vazquez-Abrams 2012-04-05 02:33
Added this: ErrorLog /domain/web/public/log.log LogLevel debug All it contains is the SSL information. Refreshing/access the site does not increase the log file size - EvilJordan 2012-04-05 02:38
SOLVED: other virtual hosts conf file was interfering. Just like my cat with my dinner - EvilJordan 2012-04-05 02:49
submit your solution as an answer and accept i - craniumonempty 2012-04-06 13:12


0

Other virtualhost files were interfering with the virtualhost in question. Not the best solution, but following what craniumonempty wants: I commented out all the other host files to do nothing until I have more time to figure out why fine-tuning them didn't work.

2012-04-07 17:36
by EvilJordan
Ads