[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache2 not picking default



Figured it out after long searching. It was some bogus crap in
/etc/apache2/conf.d/phpbb.conf
:(

Pim

On 1/19/07, Pim Bliek <pim.bliek@gmail.com> wrote:
Hi

I am using Apache2 on Sarge. I have an /etc/apache2/sites-enabled dir
looking similar like:

lrwxrwxrwx  1 root root    7 Jan 19 13:15 00default -> default
lrwxrwxrwx  1 root root   40 Jul 24  2005 pre1.domain.nl ->
../sites-available/pre1.domain.nl
lrwxrwxrwx  1 root root   26 Sep  4 18:50 default -> ../sites-available/default

etc. etc

Somehow, when you go to something like crappyurl.domain.nl in your
browser, it should go to 00default, but it does go to another VH.
Quite a random one in my opinion. I have no clue why it takes that
specific one.

WHY doesn't Apache take the first one? 00default that is. Doesn't it
work alphabetically?

What point am I missing here?

BTW, the default is the debian standard one with some alterations but
boils down like this:

NameVirtualHost <myip>:80
NameVirtualHost <myip>:443

<VirtualHost <myip>:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

etc etc

Any clues?

Best regards,
Pim




Reply to: