"Catch All" Apache config, isn't catching all...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • camperjohn64
    Confirmed User
    • Feb 2005
    • 1531

    #1

    "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?
    www.gimmiegirlproductions.com
  • ScriptWorkz
    Confirmed User
    • Jul 2007
    • 274

    #2
    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.

    Comment

    Working...