PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > apache2 not picking default
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

apache2 not picking default

Réponse
 
LinkBack Outils de la discussion
Vieux 19/01/2007, 18h30   #1
Pim Bliek
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut apache2 not picking default

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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 19/01/2007, 20h00   #2
Roberto C. Sanchez
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apache2 not picking default

On Fri, Jan 19, 2007 at 01:22:35PM +0100, Pim Bliek wrote:
> Hi
>
> WHY doesn't Apache take the first one? 00default that is. Doesn't it
> work alphabetically?
>

It depends.

> 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?
>

Well, what is your *actual* config (i.e., without obfuscation) and what
do the DNS entries (output of host or dig) for the various hosts you are
trying to access.

Regards,

-Roberto

--
Roberto C. Sanchez
http://people.connexer.com/~roberto
http://www.connexer.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFsR011snWssAFC08RAkyuAJ913FgRKotzNIe5jOEDfH eo7XHrJwCfbNZc
rN4sbnEH4kkkBjPF/7F1YFI=
=vqh8
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 30/01/2007, 22h00   #3
Pim Bliek
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apache2 not picking default

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

> It depends.


In the end it appeared to be a config file in the conf.d/ dir in the
/etc/apache2 dir.. Something in there was very wrong. It was the
phpbb.conf... Didn't need it anymore so simply removed it. Everything
is working now again.

Thanx for the hints, they really ed when tracking this!

Pim


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h12.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10106 seconds with 11 queries