<blockquote><font class="small">Posté à l'origine par bilbo:</font><hr />
<font class="small">Code:</font><hr /><pre>
#
# Use name-based virtual hosting.
#
NameVirtualHost *
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *>
ServerAdmin [email protected]lnet
DocumentRoot /Library/Documentation/Services/apache
ServerName apache.bilbo.localnet
ErrorLog logs/apache.bilbo.localnet.error_log
CustomLog logs/apache.bilbo.localnet.access_log common
</VirtualHost>
<VirtualHost *>
ServerAdmin [email protected]lnet
DocumentRoot /Users/bilbo/Sites/bilbo
ServerName bilbo.bilbo.localnet
ErrorLog logs/bilbo.bilbo.localnet.error_log
CustomLog logs/bilbo.bilbo.localnet.access_log common
</VirtualHost>
<VirtualHost *>
ServerAdmin [email protected]lnet
DocumentRoot /Users/bilbo/Sites/www
ServerName www.bilbo.localnet
ErrorLog logs/www.bilbo.localnet.error_log
CustomLog logs/www.bilbo.localnet.access_log common
</VirtualHost>
</pre><hr />
Il ne reste plus qu'à adapter.
[/QUOTE]
Là je ne doit pas être réveillé !
j'ai rien compris
peux tu me refaire cet exemple avec
nom de domaine 1 www.mondomaine1.com
nom de domaine 2 www.mondomaine2.com
nom de domaine 3 www.mondomaine3.com
mon ip 888.888.888.888
merci
<font class="small">Code:</font><hr /><pre>
#
# Use name-based virtual hosting.
#
NameVirtualHost *
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *>
ServerAdmin [email protected]lnet
DocumentRoot /Library/Documentation/Services/apache
ServerName apache.bilbo.localnet
ErrorLog logs/apache.bilbo.localnet.error_log
CustomLog logs/apache.bilbo.localnet.access_log common
</VirtualHost>
<VirtualHost *>
ServerAdmin [email protected]lnet
DocumentRoot /Users/bilbo/Sites/bilbo
ServerName bilbo.bilbo.localnet
ErrorLog logs/bilbo.bilbo.localnet.error_log
CustomLog logs/bilbo.bilbo.localnet.access_log common
</VirtualHost>
<VirtualHost *>
ServerAdmin [email protected]lnet
DocumentRoot /Users/bilbo/Sites/www
ServerName www.bilbo.localnet
ErrorLog logs/www.bilbo.localnet.error_log
CustomLog logs/www.bilbo.localnet.access_log common
</VirtualHost>
</pre><hr />
Il ne reste plus qu'à adapter.
[/QUOTE]
Là je ne doit pas être réveillé !
j'ai rien compris
peux tu me refaire cet exemple avec
nom de domaine 1 www.mondomaine1.com
nom de domaine 2 www.mondomaine2.com
nom de domaine 3 www.mondomaine3.com
mon ip 888.888.888.888
merci