Problème de apache ou problème de redirection dns ?

Bonjour a tous !

j’essaie de configurer un serveur debian 7.5.
la je sèche sur un problème qui doit surement être tout simple, mais j’ai besoin de vos lumière pour voir de quel coté il faut que je cherche.
j’ai installer apache2 qui fonctionne(j’ai bien le it’s work en tapant le nom du serveur ou l’adresse ip).
j’ai un nom de domaine chez gandi que j’ai redirigé (il me semble correctement) j’ai crée un virtual host sur le serveur
quand je tape l’adresse du site j’ai une erreur Page Web inaccessible. plus inquiétant si je ping cette url xxxx.fr j’ai un message “vérifiez le nom et essayer de nouveau”.Si je tape l’adresseduserveur/dossierdusite je tombe bien sur l’index.html.

a votre avis d’ou viens le souci serveur apache (aucun souci dans les logs) ou pb de redirection typa A ??

par avance merci

Edit : j’ai monté un serveur de messagerie dovecot+postfix qui fonctionne parfaitement en envois reception depuis roundcube pour le nom de domaine celui cité au dessus cependant impossible de configurer thunderbird le probleme peut il etre lié ?

Salut,

[quote=“Zébulon”]j’ai installer apache2 qui fonctionne (…)
j’ai un nom de domaine chez gandi que j’ai redirigé (il me semble correctement) j’ai crée un virtual host sur le serveur[/quote]
Commençons par nous en assurer.

Les retours (également) des [mono]ping[/mono]s et [mono]whois[/mono] seraient un plus.

Bonjour BelZéButh .

merci de ta réponse. pour info le test ping fonctionnait correctement a la mise en place de la redirection .suite a un souci de config sur apache j’ai désinstallé purgé apache et php. ce matin je suis allé chez un pote la page index.html c’est affiché en tappant le nom de domaine dans l’url. retour chez moi j’ai essayer d’une tablette que dalle.
Voici les réponses a tes tests :

donne : dpkg -l | grep -E "apache2|php|mysql" ii apache2 2.2.22-13+deb7u4 amd64 Apache HTTP Server metapackage ii apache2-mpm-prefork 2.2.22-13+deb7u4 amd64 Apache HTTP Server - traditional non-threaded model ii apache2-suexec 2.2.22-13+deb7u4 amd64 Standard suexec program for Apache 2 mod_suexec ii apache2-utils 2.2.22-13+deb7u4 amd64 utility programs for webservers ii apache2.2-bin 2.2.22-13+deb7u4 amd64 Apache HTTP Server common binary files ii apache2.2-common 2.2.22-13+deb7u4 amd64 Apache HTTP Server common files ii dovecot-mysql 1:2.1.7-7+deb7u1 amd64 MySQL support for Dovecot ii libapache2-mod-php5 5.4.39-0+deb7u1 amd64 server-side, HTML-embedded scripting language (Apache 2 module) ii libdbd-mysql-perl 4.021-1+b1 amd64 Perl5 database interface to the MySQL database ii libmysqlclient18:amd64 5.5.41-0+wheezy1 amd64 MySQL database client library ii mysql-client 5.5.41-0+wheezy1 all MySQL database client (metapackage depending on the latest version) ii mysql-client-5.5 5.5.41-0+wheezy1 amd64 MySQL database client binaries ii mysql-common 5.5.41-0+wheezy1 all MySQL database common files, e.g. /etc/mysql/my.cnf ii mysql-server 5.5.41-0+wheezy1 all MySQL database server (metapackage depending on the latest version) ii mysql-server-5.5 5.5.41-0+wheezy1 amd64 MySQL database server binaries and system database setup ii mysql-server-core-5.5 5.5.41-0+wheezy1 amd64 MySQL database server binaries ii php-pear 5.4.39-0+deb7u1 all PEAR - PHP Extension and Application Repository ii php5 5.4.39-0+deb7u1 all server-side, HTML-embedded scripting language (metapackage) ii php5-cgi 5.4.39-0+deb7u1 amd64 server-side, HTML-embedded scripting language (CGI binary) ii php5-cli 5.4.39-0+deb7u1 amd64 command-line interpreter for the php5 scripting language ii php5-common 5.4.39-0+deb7u1 amd64 Common files for packages built from the php5 source ii php5-curl 5.4.39-0+deb7u1 amd64 CURL module for php5 ii php5-dev 5.4.39-0+deb7u1 amd64 Files for PHP5 module development ii php5-gd 5.4.39-0+deb7u1 amd64 GD module for php5 ii php5-imagick 3.1.0~rc1-1+b2 amd64 ImageMagick module for php5 ii php5-imap 5.4.39-0+deb7u1 amd64 IMAP module for php5 ii php5-intl 5.4.39-0+deb7u1 amd64 internationalisation module for php5 ii php5-mcrypt 5.4.39-0+deb7u1 amd64 MCrypt module for php5 ii php5-memcache 3.0.6-6 amd64 memcache extension module for PHP5 ii php5-ming 1:0.4.4-1.1 amd64 Ming module for php5 ii php5-mysql 5.4.39-0+deb7u1 amd64 MySQL module for php5 ii php5-ps 1.3.7-1 amd64 ps module for PHP 5 ii php5-pspell 5.4.39-0+deb7u1 amd64 pspell module for php5 ii php5-recode 5.4.39-0+deb7u1 amd64 recode module for php5 ii php5-snmp 5.4.39-0+deb7u1 amd64 SNMP module for php5 ii php5-sqlite 5.4.39-0+deb7u1 amd64 SQLite module for php5 ii php5-tidy 5.4.39-0+deb7u1 amd64 tidy module for php5 ii php5-xmlrpc 5.4.39-0+deb7u1 amd64 XML-RPC module for php5 ii php5-xsl 5.4.39-0+deb7u1 amd64 XSL module for php5 ii phpmyadmin 4:3.4.11.1-2+deb7u1 all MySQL web administration tool ii postfix-mysql 2.9.6-2 amd64 MySQL map support for Postfix

donne: [....] Reloading web server config: apache2[Sat Mar 28 11:46:03 2015] [warn] The Alias directive in /etc/postfixadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias. . ok [Sat Mar 28 11:46:03 2015] [warn] The Alias directive in /etc/postfixadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias. Syntax OK [Sat Mar 28 11:46:03 2015] [warn] The Alias directive in /etc/postfixadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias. Syntax OK [Sat Mar 28 11:46:03 2015] [warn] The Alias directive in /etc/postfixadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias. VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:80 is a NameVirtualHost default server nom.du.serveur (/etc/apache2/sites-enabled/000-default:1) port 80 namevhost nom.du.serveur (/etc/apache2/sites-enabled/000-default:1) port 80 namevhost nomdedomainequiposesouci.fr (/etc/apache2/sites-enabled/webmin.1427448945.conf:1) Syntax OK

donne : [code]::::::::::::::
/etc/apache2/sites-available/.conf
::::::::::::::
Listen 80<VirtualHost *:80>
DocumentRoot "/var/www/dossierdomainequiposesouci"
ServerName nomdedomainequiposesouci.fr
<Directory “/var/www/dossierdomainequiposesouci”>
allow from all
Options +Indexes

ServerAlias nomdedomainequiposesouci.fr

Log pour les erreurs

ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn

Log des connexion au site

CustomLog ${APACHE_LOG_DIR}/access.log combined

::::::::::::::
/etc/apache2/sites-available/default
::::::::::::::
<VirtualHost *:80>
ServerAdmin webmaster@localhost

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

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined
:::::::::::::: /etc/apache2/sites-available/default-ssl :::::::::::::: ServerAdmin webmaster@localhost
    DocumentRoot /var/www
    <Directory />
            Options FollowSymLinks
            AllowOverride None
    </Directory>
    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined

    #   SSL Engine Switch:
    #   Enable/Disable SSL for this virtual host.
    SSLEngine on

    #   A self-signed (snakeoil) certificate can be created by installing
    #   the ssl-cert package. See
    #   /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
    #   If both key and certificate are stored in the same file, only the
    #   SSLCertificateFile directive is needed.
    SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
    SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

    #   Server Certificate Chain:
    #   Point SSLCertificateChainFile at a file containing the
    #   concatenation of PEM encoded CA certificates which form the
    #   certificate chain for the server certificate. Alternatively
    #   the referenced file can be the same as SSLCertificateFile
    #   when the CA certificates are directly appended to the server

when the CA certificates are directly appended to the server

    #   certificate for convinience.
    #SSLCertificateChainFile /etc/apache2/ssl.crt/server-ca.crt

    #   Certificate Authority (CA):
    #   Set the CA certificate verification path where to find CA
    #   certificates for client authentication or alternatively one
    #   huge file containing all of them (file must be PEM encoded)
    #   Note: Inside SSLCACertificatePath you need hash symlinks
    #         to point to the certificate files. Use the provided
    #         Makefile to update the hash symlinks after changes.
    #SSLCACertificatePath /etc/ssl/certs/
    #SSLCACertificateFile /etc/apache2/ssl.crt/ca-bundle.crt

    #   Certificate Revocation Lists (CRL):
    #   Set the CA revocation path where to find CA CRLs for client
    #   authentication or alternatively one huge file containing all
    #   of them (file must be PEM encoded)
    #   Note: Inside SSLCARevocationPath you need hash symlinks
    #         to point to the certificate files. Use the provided
    #         Makefile to update the hash symlinks after changes.
    #SSLCARevocationPath /etc/apache2/ssl.crl/
    #SSLCARevocationFile /etc/apache2/ssl.crl/ca-bundle.crl

    #   Client Authentication (Type):
    #   Client certificate verification type and depth.  Types are
    #   none, optional, require and optional_no_ca.  Depth is a
    #   number which specifies how deeply to verify the certificate
    #   issuer chain before deciding the certificate is not valid.
    #SSLVerifyClient require
    #SSLVerifyDepth  10

    #   Access Control:
    #   With SSLRequire you can do per-directory access control based
    #   on arbitrary complex boolean expressions containing server
    #   variable checks and other lookup directives.  The syntax is a
    #   mixture between C and Perl.  See the mod_ssl documentation
    #   for more details.
    #<Location />
    #SSLRequire (    %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \
    #            and %{SSL_CLIENT_S_DN_O} eq "Snake Oil, Ltd." \
    #            and %{SSL_CLIENT_S_DN_OU} in {"Staff", "CA", "Dev"} \
    #            and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \
    #            and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20       ) \
    #           or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/
    #</Location>

    #   SSL Engine Options:
    #   Set various options for the SSL engine.
    #   o FakeBasicAuth:
    #     Translate the client X.509 into a Basic Authorisation.  This means that
    #     the standard Auth/DBMAuth methods can be used for access control.  The
    #     user name is the `one line' version of the client's X.509 certificate.
    #     Note that no password is obtained from the user. Every entry in the user
    #     file needs this password: `xxj31ZMTZzkVA'.
    #   o ExportCertData:
 #     This exports two additional environment variables: SSL_CLIENT_CERT and
    #     SSL_SERVER_CERT. These contain the PEM-encoded certificates of the
    #     server (always existing) and the client (only existing when client
    #     authentication is used). This can be used to import the certificates
    #     into CGI scripts.
    #   o StdEnvVars:
    #     This exports the standard SSL/TLS related `SSL_*' environment variables.
    #     Per default this exportation is switched off for performance reasons,
    #     because the extraction step is an expensive operation and is usually
    #     useless for serving static content. So one usually enables the
    #     exportation for CGI and SSI requests only.
    #   o StrictRequire:
    #     This denies access when "SSLRequireSSL" or "SSLRequire" applied even
    #     under a "Satisfy any" situation, i.e. when it applies access is denied
    #     and no other module can change it.
    #   o OptRenegotiate:
    #     This enables optimized SSL connection renegotiation handling when SSL
    #     directives are used in per-directory context.
    #SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
    <FilesMatch "\.(cgi|shtml|phtml|php)$">
            SSLOptions +StdEnvVars
    </FilesMatch>
    <Directory /usr/lib/cgi-bin>
            SSLOptions +StdEnvVars
    </Directory>

    #   SSL Protocol Adjustments:
    #   The safe and default but still SSL/TLS standard compliant shutdown
    #   approach is that mod_ssl sends the close notify alert but doesn't wait for
    #   the close notify alert from client. When you need a different shutdown
    #   approach you can use one of the following variables:
    #   o ssl-unclean-shutdown:
    #     This forces an unclean shutdown when the connection is closed, i.e. no
    #     SSL close notify alert is send or allowed to received.  This violates
    #     the SSL/TLS standard but is needed for some brain-dead browsers. Use
    #     this when you receive I/O errors because of the standard approach where
    #     mod_ssl sends the close notify alert.
    #   o ssl-accurate-shutdown:
    #     This forces an accurate shutdown when the connection is closed, i.e. a
    #     SSL close notify alert is send and mod_ssl waits for the close notify
    #     alert of the client. This is 100% SSL/TLS standard compliant, but in
    #     practice often causes hanging connections with brain-dead browsers. Use
    #     this only for browsers where you know that their SSL implementation
    #     works correctly.
    #   Notice: Most problems of broken clients are also related to the HTTP
    #   keep-alive facility, so you usually additionally want to disable
    #   keep-alive for those clients, too. Use variable "nokeepalive" for this.
    #   Similarly, one has to force some clients to use HTTP/1.0 to workaround
    #   their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and
    #   "force-response-1.0" for this.
    BrowserMatch "MSIE [2-6]" \
            nokeepalive ssl-unclean-shutdown \
            downgrade-1.0 force-response-1.0
    # MSIE 7 and newer should be able to use keepalive
    BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
:::::::::::::: /etc/apache2/sites-available/roundcube :::::::::::::: ServerAdmin test@test.com ServerName webmail.adresseduserveur DocumentRoot /var/www/webmail # SuexecUserGroup roundcube roundcube # on verra ça plus tard Options FollowSymLinks AllowOverride All Options FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined :::::::::::::: /etc/apache2/sites-available/webmail.adresseduserveur.conf :::::::::::::: DocumentRoot "/var/www/webmail" ServerName webmail.ns374667.ip-37-187-173.eu allow from all Options None :::::::::::::: /etc/apache2/sites-available/webmin.1427448945.conf :::::::::::::: ServerAlias www.nomdedomainequiposesouci.fr DocumentRoot /var/www/nomdududossierquiposesouci ServerName nomdedomainequiposesouci.fr

[/code]

donne :

[code]<VirtualHost *:80>
ServerAdmin webmaster@localhost

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

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerAlias www.domainequiposesouci.fr DocumentRoot /var/www/dossierdomainequiposesouci ServerName domainequiposesouci.fr [/code] [code]apachectl -t -D DUMP_MODULES[/code] donne: [code][Sat Mar 28 12:04:31 2015] [warn] The Alias directive in /etc/postfixadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias. Loaded Modules: core_module (static) log_config_module (static) logio_module (static) version_module (static) mpm_prefork_module (static) http_module (static) so_module (static) alias_module (shared) auth_basic_module (shared) authn_file_module (shared) authz_default_module (shared) authz_groupfile_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) cgi_module (shared) deflate_module (shared) dir_module (shared) env_module (shared) mime_module (shared) negotiation_module (shared) php5_module (shared) reqtimeout_module (shared) setenvif_module (shared) status_module (shared) Syntax OK [/code] [code]ps aux | grep apache[/code] donne : [code]root 8218 0.0 0.0 341732 21976 ? Ss mars27 0:01 /usr/sbin/apache2 -k start www-data 19265 0.0 0.0 341956 11116 ? S 11:46 0:00 /usr/sbin/apache2 -k start www-data 19266 0.0 0.0 341956 11116 ? S 11:46 0:00 /usr/sbin/apache2 -k start www-data 19267 0.0 0.0 341956 11108 ? S 11:46 0:00 /usr/sbin/apache2 -k start www-data 19268 0.0 0.0 341956 11108 ? S 11:46 0:00 /usr/sbin/apache2 -k start www-data 19269 0.0 0.0 341956 11108 ? S 11:46 0:00 /usr/sbin/apache2 -k start root 22604 0.0 0.0 8340 888 pts/0 S+ 12:05 0:00 grep apache [/code] ping sur l'ip du serveur --> ok ping sur le nom du serveur --> ok (en renvoyant l'IP) ping sur le nomdedomaineasouci.fr --> ko vérifié le nom et essayé de nouveau. Par contre ping sur [nomdedomaineasouci.fr](http://www.nomdedomaineasouci.fr) --> ok !!

probleme d’alias ??

Par avance merci

Re,

agxx-mxxxx.fr/

Tu vas devoir gratter du côté des [mono]VirtualHosts[/mono].

$ ls -la /etc/apache2/sites-available/ $ ls -la /etc/apache2/sites-enabled/

[quote=“Zébulon”]ping sur l’ip du serveur --> ok
ping sur le nom du serveur --> ok (en renvoyant l’IP)
ping sur le nomdedomaineasouci.fr --> ko vérifié le nom et essayé de nouveau.
Par contre ping sur nomdedomaineasouci.fr --> ok !!
[/quote]
Rien de tout cela depuis l’extérieur.

Tes [mono]déclarations DNS chez Gandi[/mono] sont à revoir et les fichiers [mono]/etc/hosts[/mono] [mono]/etc/resolv.conf[/mono] et [mono]/etc/hostname[/mono], aussi.

À quand date (+heure) les dernières modifications DNS ?

[code][12:50:32]:~$ whois agxx-mxxxx.fr
[…]

domain: agxx-mxxxx.fr
status: ACTIVE
hold: NO
[…]
registrar: GANDI
anniversary: 28/11
created: 28/11/2014
last-update: 28/11/2014
source: FRNIC

ns-list: NSL33187-FRNIC
nserver: b.dns.gandi.net
nserver: a.dns.gandi.net
nserver: c.dns.gandi.net
source: FRNIC
|…]
anonymous: NO
registered: 09/03/2004
source: FRNIC

[…]
[12:50:38]:~$[/code]

[12:51:04]:~$ ping -c2 agxx-mxxxx.fr ping: unknown host agxx-mxxxx.fr [12:51:15]:~$

[13:13:21]:~$ host agxx-mxxxx.fr agxx-mxxxx.fr mail is handled by 10 smtp.agxx-mxxxx.fr. [13:13:25]:~$

[code][13:19:14]:~$ dig ns agxx-mxxxx.fr

; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> ns agxx-mxxxx.fr
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62321
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;agxx-mxxxx.fr. IN NS

;; ANSWER SECTION:
agxx-mxxxx.fr. 10799 IN NS b.dns.gandi.net.
agxx-mxxxx.fr. 10799 IN NS a.dns.gandi.net.
agxx-mxxxx.fr. 10799 IN NS c.dns.gandi.net.

;; Query time: 24 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sat Mar 28 13:19:20 2015
;; MSG SIZE rcvd: 92

[code][13:19:48]:~$ dig agxx-mxxxx.fr

; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> agxx-mxxxx.fr
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18606
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;agxx-mxxxx.fr. IN A

;; AUTHORITY SECTION:
agxx-mxxxx.fr. 257 IN SOA a.dns.gandi.net. hostmaster.gandi.net. 1427386480 10800 3600 604800 10800

;; Query time: 17 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sat Mar 28 13:19:52 2015
;; MSG SIZE rcvd: 93

[13:19:52]:~$ [/code]

[code][13:20:53]:~$ domain=agxx-mxxxx.fr; for i in $(host -t ns $domain| awk ‘{print $4}’) ; do host -t a $domain $i ; done
Using domain server:
Name: b.dns.gandi.net.
Address: 213.167.229.1#53
Aliases:

agxx-mxxxx.fr has no A record
Using domain server:
Name: a.dns.gandi.net.
Address: 173.246.98.1#53
Aliases:

agxx-mxxxx.fr has no A record
Using domain server:
Name: c.dns.gandi.net.
Address: 217.70.179.1#53
Aliases:

agxx-mxxxx.fr has no A record
[13:21:09]:~$ [/code]

Oui, mais cela ne concerne que [mono]postfix[/mono]

les redirections dates d’il y a environ 48 H…

je regarde tout ca je tiens au jus…

Merci !

edit du 30 /03 j’ao refais les redirection aupres de gandi et tout fonctionne nickel merci !!