par tonyaccardo » 18 Sep 2003 09:32
Bonjour,
<BR>
<BR> <IMG SRC="images/smiles/icon_cussing.gif"> <IMG SRC="images/smiles/icon_cussing.gif"> <IMG SRC="images/smiles/icon_cussing.gif"> <IMG SRC="images/smiles/icon_cussing.gif">
<BR>
<BR>Apres avoir longuement cherché comment faire pour héberger plusieurs domaines différents sur mon serveur apache, apparement, la solution était de définir des VirtualHosts via apache.
<BR>Malheureusement, j'arrive bien à acceder aux virtualhosts de mon domaine, mais pas aux autres:
<BR><!-- BBCode auto-link start --><a href="http://www.monsite1.com" target="_blank">http://www.monsite1.com</a><!-- BBCode auto-link end --> --> OK
<BR><!-- BBCode auto-link start --><a href="https://www.monsite1.com" target="_blank">https://www.monsite1.com</a><!-- BBCode auto-link end --> --> OK
<BR><!-- BBCode auto-link start --><a href="http://portal.monsite1.com -->" target="_blank">http://portal.monsite1.com --></a><!-- BBCode auto-link end --> OK
<BR><!-- BBCode auto-link start --><a href="http://www.monsite2.com -->" target="_blank">http://www.monsite2.com --></a><!-- BBCode auto-link end --> PAS BON!!!!
<BR>
<BR>Quelqu'un a t il une idée????
<BR>
<BR>Voici mes fichiers de conf:
<BR>
<BR>## extrait du httpd.conf
<BR>
<BR>NameVirtualHost 192.168.69.1
<BR><VirtualHost 192.168.69.1>
<BR> SSLDisable
<BR> DocumentRoot /var/www/monsite1.com
<BR> ServerName <!-- BBCode auto-link start --><a href="http://www.monsite1.com" target="_blank">www.monsite1.com</a><!-- BBCode auto-link end -->
<BR> ErrorLog /var/log/apache-ssl/monsite1-error.log
<BR> TransferLog /var/log/apache-ssl/monsite1-transfer.log
<BR></VirtualHost>
<BR>
<BR><VirtualHost 192.168.69.1>
<BR> ServerName portal.monsite1.com
<BR> SSLDisable
<BR> DocumentRoot /var/www/monsite1.com/portal
<BR> ServerAdmin <!-- BBcode auto-mailto start --><a href="mailto:webmaster@monsite1.com">webmaster@monsite1.com</a><!-- BBCode auto-mailto end -->
<BR> ErrorLog /var/log/apache-ssl/portal.monsite1-error.log
<BR> TransferLog /var/log/apache-ssl/portal.monsite1-transfer.log
<BR></VirtualHost>
<BR>
<BR><VirtualHost 192.168.69.1:443>
<BR> ServerName <!-- BBCode auto-link start --><a href="http://www.monsite1.com" target="_blank">www.monsite1.com</a><!-- BBCode auto-link end -->
<BR> SSLEnable
<BR> SSLCacheServerPath /usr/lib/apache-ssl/gcache
<BR> SSLCacheServerPort /var/run/gcache_port
<BR> SSLSessionCacheTimeout 300
<BR> SSLVerifyDepth 10
<BR> SSLCertificateFile /etc/apache-ssl/apache.pem
<BR> DocumentRoot /var/www/monsite1.com
<BR> ServerAdmin <!-- BBcode auto-mailto start --><a href="mailto:webmaster@monsite1.com">webmaster@monsite1.com</a><!-- BBCode auto-mailto end -->
<BR> ErrorLog /var/log/apache-ssl/monsite1-secure-error.log
<BR> TransferLog /var/log/apache-ssl/monsite1-secure-transfer.log
<BR></VirtualHost>
<BR>
<BR><VirtualHost 192.168.69.1>
<BR> ServerName <!-- BBCode auto-link start --><a href="http://www.monsite2.com" target="_blank">www.monsite2.com</a><!-- BBCode auto-link end -->
<BR> SSLDisable
<BR> DocumentRoot /var/www/monsite2.com
<BR> ServerAdmin <!-- BBcode auto-mailto start --><a href="mailto:webmaster@monsite2.com">webmaster@monsite2.com</a><!-- BBCode auto-mailto end -->
<BR> ErrorLog /var/log/apache-ssl/monsite2-error.log
<BR> TransferLog /var/log/apache-ssl/monsite2-transfer.log
<BR></VirtualHost>
<BR>
<BR>## extrait du fichier de zone DNS
<BR>monsite1.com. IN NS monserveur.monsite1.com.
<BR><!-- BBCode auto-link start --><a href="http://www.monsite1.com." target="_blank">www.monsite1.com.</a><!-- BBCode auto-link end --> IN CNAME monserveur
<BR>portal.monsite1.com. IN CNAME monserveur
<BR><!-- BBCode auto-link start --><a href="http://www.monsite2.com." target="_blank">www.monsite2.com.</a><!-- BBCode auto-link end --> IN A 192.168.69.1