<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=1183781&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / Soucis Vhost Apache 2]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1183781</link>
		<description><![CDATA[Les sujets les plus récents dans Soucis Vhost Apache 2.]]></description>
		<lastBuildDate>Wed, 30 Jan 2013 05:56:02 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  Soucis Vhost Apache 2]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12393441#p12393441</link>
			<description><![CDATA[<p>Je viens de mettre bind sur le serveur, histoire d&#039;y arriver un peut mieux, par contre j&#039;obtiens ceci : </p><div class="codebox"><pre><code>root [/etc/bind] &gt; nano db.thomassciot.net.inv
root [/etc/bind] &gt; named-checkzone thomassciot.net /etc/bind/db.thomassciot.net
zone thomassciot.net/IN: loaded serial 2
OK
root [/etc/bind] &gt; named-checkzone thomassciot.net /etc/bind/db.thomassciot.net.inv
/etc/bind/db.thomassciot.net.inv:4: no TTL specified; using SOA MINTTL instead
zone thomassciot.net/IN: loaded serial 1
OK
root [/etc/bind] &gt; named-checkzone /etc/bind/named.conf
usage: named-checkzone [-djqvD] [-c class] [-f inputformat] [-F outputformat] [-t directory] [-w directory] [-k (ignore|warn|fail)] [-n (ignore|warn|fail)] [-m (ignore|warn|fail)] [-r (ignore|warn|fail)] [-i (full|full-sibling|local|local-sibling|none)] [-M (ignore|warn|fail)] [-S (ignore|warn|fail)] [-W (ignore|warn)] [-o filename] zonename filename
root [/etc/bind] &gt; named-checkzone /etc/bind/named.conf.options
usage: named-checkzone [-djqvD] [-c class] [-f inputformat] [-F outputformat] [-t directory] [-w directory] [-k (ignore|warn|fail)] [-n (ignore|warn|fail)] [-m (ignore|warn|fail)] [-r (ignore|warn|fail)] [-i (full|full-sibling|local|local-sibling|none)] [-M (ignore|warn|fail)] [-S (ignore|warn|fail)] [-W (ignore|warn)] [-o filename] zonename filename</code></pre></div><p>Fichier db.thomassciot.net : </p><div class="codebox"><pre><code>; BIND data file for eth0 interface
;
$TTL    604800
@   IN  SOA dns01.thomassciot.net. root.thomassciot.net. (
                              2     ; Serial
                         604800     ; Refresh
                          86400     ; Retry
                        2419200     ; Expire
                         604800 )   ; Negative Cache TTL
;
@   IN  NS  dns01.thomassciot.net.

dns01  IN  A   192.168.1.58</code></pre></div><p>Fichier db.thomas.sciot.inv :</p><div class="codebox"><pre><code>;
; BIND reverse data file for eth0 interface
; $TTL  604800
@   IN  SOA     dns01.thomassciot.net. root.thomassciot.net. (
                              1 ; Serial
                         604800 ; Refresh
                          86400 ; Retry
                        2419200 ; Expire
                         604800 )       ; Negative Cache TTL
;
@ IN    NS      dns01.
230     IN      PTR     dns01.thomassciot.net</code></pre></div><p>Fichier named.conf.default-zones : </p><div class="codebox"><pre class="vscroll"><code>// prime the server with knowledge of the root servers
zone &quot;.&quot; {
        type hint;
        file &quot;/etc/bind/db.root&quot;;
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone &quot;localhost&quot; {
        type master;
        file &quot;/etc/bind/db.local&quot;;
};

zone &quot;127.in-addr.arpa&quot; {
        type master;
        file &quot;/etc/bind/db.127&quot;;
};

zone &quot;0.in-addr.arpa&quot; {
        type master;
        file &quot;/etc/bind/db.0&quot;;
};

zone &quot;255.in-addr.arpa&quot; {
        type master;
        file &quot;/etc/bind/db.255&quot;;
};

zone &quot;thomassciot.net&quot; {
       type master;
       file &quot;/etc/bind/db.thomassciot.net&quot;;
       forwarders{};
};

zone &quot;1.168.192.in-addr.arpa&quot; {
     type master;
     file &quot;/etc/bind/db.thomassciot.net.inv&quot;;
     forwarders{};
};</code></pre></div><br /><p>y aurait-il un soucis de ce coté la ?</p><p>PS : Pour le DNS apparement j&#039;ai réussi a résoudre le soucis, en faite ma machine s&#039;appelais debian, du coup j&#039;ai modifier les dns01 en debian</p><div class="codebox"><pre><code>C:\Users\Totof&gt;nslookup debian.thomassciot.net
58.1.168.192.in-addr.arpa
        primary name server = debian.thomassciot.net
        responsible mail addr = root.thomassciot.net
        serial  = 1
        refresh = 604800 (7 days)
        retry   = 86400 (1 day)
        expire  = 2419200 (28 days)
        default TTL = 604800 (7 days)
Serveur :   UnKnown
Address:  192.168.1.58

Nom :    debian.thomassciot.net
Address:  192.168.1.58</code></pre></div><p>Me reste plus cas regler le soucis pour pouvoir acceder au serveur apache avec le nom de domaine thomassciot.net</p><p>PS : ça y est ça fonctionne, dans la vhost j&#039;ai préciser thomassciot.net:80 et ça fonctionne bien</p>]]></description>
			<author><![CDATA[dummy@example.com (Totof08170)]]></author>
			<pubDate>Wed, 30 Jan 2013 05:56:02 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12393441#p12393441</guid>
		</item>
		<item>
			<title><![CDATA[Soucis Vhost Apache 2]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12393131#p12393131</link>
			<description><![CDATA[<p>Bonjour tout le monde, </p><p>Voila j&#039;ai un petit soucis, je ne trouve pas la réponse pour le moment.<br />J&#039;ai installer apache2 sur mon serveur, dans le dossier <strong>/var/www</strong> j&#039;ai un dossier <strong>default-site</strong> et un <strong>thomassciot</strong><br />Dans sites-available j&#039;ai mon <strong>default</strong>, <strong>default-ssl</strong> et <strong>thomassciot.net</strong></p><p>Le fichier default est : </p><div class="codebox"><pre class="vscroll"><code>&lt;VirtualHost *:80&gt;
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/default-site
        &lt;Directory /&gt;
                Options FollowSymLinks
                AllowOverride None
        &lt;/Directory&gt;
        &lt;Directory /var/www/default-site&gt;
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        &lt;/Directory&gt;

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        &lt;Directory &quot;/usr/lib/cgi-bin&quot;&gt;
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        &lt;/Directory&gt;

        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
&lt;/VirtualHost&gt;</code></pre></div><p>et le fichier thomassciot est donc </p><div class="codebox"><pre><code>&lt;VirtualHost *:80&gt;
        ServerAdmin postmaster@thomassciot.net
        ServerName www.thomassciot.net
        ServerAlias *.thomassciot.net
        DocumentRoot /var/www/thomassciot/
        &lt;Directory /var/www/thomassciot/&gt;
                Options -Indexes FollowSymLinks MultiViews
                AllowOverride All
        &lt;/Directory&gt;
        ServerSignature Off
&lt;/VirtualHost&gt;</code></pre></div><p>Bien sur je n&#039;ai pas oublier les commandes</p><div class="codebox"><pre><code>a2ensite thomassciot.net
apache2ctl restart</code></pre></div><p>Lorsque que je tape l&#039;ip du serveur, je tombe directement dans la page it&#039;s work ( ah oui j&#039;ai déplacer le fichier html de base de apache dans le dossier <strong>/var/www/default-site</strong> ) donc je suppose que pour le moment tout est normale.</p><p>Seul soucis, dans l&#039;url lorsque je tape thomassciot.net la je ne tombe sur rien.</p><p>J&#039;ai modifier le fichier host de ma machine cliente en ajoutant : <br /><strong>thomassciot.net ip_du_server</strong></p><p>Et sur le serveur j&#039;ai rajouter dans httpd.conf : <br /><strong>ServerName 127.0.0.1</strong></p><p><span class="postimg"><img src="http://img15.hostingpics.net/pics/671809capture.jpg" alt="671809capture.jpg" /></span></p><p>Et la on vois bien que mon client fait une demande pour le nom, mais pas de réponse.</p><p>Quelqu&#039;un pourrais me donner une petite piste?</p>]]></description>
			<author><![CDATA[dummy@example.com (Totof08170)]]></author>
			<pubDate>Wed, 30 Jan 2013 04:27:10 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12393131#p12393131</guid>
		</item>
	</channel>
</rss>
