Je vais montrer mon fichier httpd.conf au cas ou:

ServerTokens Minimal
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 60
KeepAlive Off
MaxKeepAliveRequests 100
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       256
MaxRequestsPerChild  4000
</IfModule>

<IfModule worker.c>
StartServers         4
MaxClients         300
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

Include conf.d/*.conf
<Directory />
    Options FollowSymLinks
    AllowOverride All
</Directory>
<Directory "/var/www/html">
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>
Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

Pour virtualhost tout est commenté.



Le 16 mars 2013 09:22, Bruno Stas <[email protected]> a écrit :

> Le 16/03/2013 08:04, Sébastien Mureau a écrit :
>
>> Mon problème viens du fait que quand je vais sur le nom de domaine
>> jeux-sans-obligation-achat.com 
>> <http://jeux-sans-obligation-**achat.com/<http://jeux-sans-obligation-achat.com/>>
>> je tombe direct sur kit-boitier-ethanol.fr <http://kit-boitier-ethanol.**
>> fr/ <http://kit-boitier-ethanol.fr/>>
>>
>>  Bonjour Sébastien.
>
> Je peux me tromper, mais j'ai plus l'impression que le problème vient
> d'Apache, et non du serveur DNS.
> Tes domaines répondent tous bien ton adresse IP.
>
> Quand on visite 
> [www.]jeux-sans-obligation-**achat.com<http://jeux-sans-obligation-achat.com><
> http://jeux-sans-obligation-**achat.com/<http://jeux-sans-obligation-achat.com/>>,
> ton serveur Apache répond une redirection HTTP "302 Found. Location:
> http://www.kit-boitier-**ethanol.fr/ <http://www.kit-boitier-ethanol.fr/>",
> mon navigateur va alors voir ailleurs, sur www.kit-boitier-ethanol.fr
> J'ai donc d'abord pensé que tu avais dans /srv/www/jeux-sans-obligation-**
> achat.com/public_html/<http://jeux-sans-obligation-achat.com/public_html/><
> http://jeux-sans-obligation-**achat.com/public_html/<http://jeux-sans-obligation-achat.com/public_html/>>
> , soit un .htaccess contenant un "Redirect", soit un index.php contenant
> "header("Location: ...");"
>
> Mais ensuite, j'ai essayé d'accéder à ton serveur avec l'adresse IP (ou un
> nom de domaine bidon que j'ai fait pointé sur ton serveur en modifiant mon
> /etc/hosts).
> J'ai quand même été redirigé vers www.kit-boitier-ethanol.fr avec un 302.
> Comme si Apache redirigeait sur le site par défaut s'il n'y a pas de
> virtualhost correspondant.
>
> As-tu bien redémarré Apache après avoir modifié ton vhost.conf pour y
> ajouter le vhost 
> "jeux-sans-obligation-achat.**com<http://jeux-sans-obligation-achat.com><
> http://jeux-sans-obligation-**achat.com/<http://jeux-sans-obligation-achat.com/>>"
> ?
> service httpd restart (Je connais pas CentOS, je ne sais pas si c'est la
> bonne commande.)
>
> (Je sais que ça parait con comme solution, mais ça peut arriver à tout le
> monde d'oublier)
>
> Sinon, il y aurait peut-être quelque chose qui ne va pas dans ton fichier
> de conf qui fait qu'il ne reconnaît pas ce domaine, et redirige vers celui
> par défaut (qui est peut-être défini dans le httpd.conf ?)
> As-tu des warnings/erreurs quand tu redémarres le service ?
>
> Bruno
>
>
> ______________________________**_________________
> Liste de diffusion du FRsAG
> http://www.frsag.org/
>
_______________________________________________
Liste de diffusion du FRsAG
http://www.frsag.org/

Répondre à