GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   "Catch All" Apache config, isn't catching all... (https://gfy.com/showthread.php?t=962370)

camperjohn64 04-07-2010 10:12 AM

"Catch All" Apache config, isn't catching all...
 
So on my old server, this configuration catches all websites that don't have virtual hosts. On my new server, it isn't working

Example: http://www.neverbuyalincoln.com is showing /var/www rather than /home/photof/public_html

Code:

<VirtualHost *:80>
    ServerAlias *:80
    DocumentRoot /home/photof/public_html
<Directory "/home/photof/public_html">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

Thoughts? Where do I start? Hmm... what other server config vars should I be checking?

ScriptWorkz 04-07-2010 11:28 AM

Is this the first virtual host in the apache config? if i'm not mistaken apache uses the first virtual host defined as the catchall, regardless of the *:80 part / where you bind it to. I'd make sure it was phsyically first in the config file then restart apache and that should take care of it.


All times are GMT -7. The time now is 09:25 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123