[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [HELP] Pbm acces Virtual Host



le Thu, 18 Sep 2003 12:36:46 +0200, "Tony Accardo" <tonyaccardo@free.fr>
s'exprima en ces termes:

> NameVirtualHost 192.168.69.1
> <VirtualHost 192.168.69.1>
>   SSLDisable
>   DocumentRoot /var/www/monsite1.com
>   ServerName www.monsite1.com
>   ErrorLog /var/log/apache-ssl/monsite1-error.log
>   TransferLog /var/log/apache-ssl/monsite1-transfer.log
> </VirtualHost>
> 
> <VirtualHost 192.168.69.1>
>   ServerName portal.monsite1.com
>   SSLDisable
>   DocumentRoot /var/www/monsite1.com/portal
>   ServerAdmin webmaster@monsite1.com
>   ErrorLog /var/log/apache-ssl/portal.monsite1-error.log
>   TransferLog /var/log/apache-ssl/portal.monsite1-transfer.log
> </VirtualHost>
> 
> <VirtualHost 192.168.69.1:443>
>   ServerName www.monsite1.com
>   SSLEnable
>   SSLCacheServerPath /usr/lib/apache-ssl/gcache
>   SSLCacheServerPort /var/run/gcache_port
>   SSLSessionCacheTimeout 300
>   SSLVerifyDepth 10
>   SSLCertificateFile /etc/apache-ssl/apache.pem
>   DocumentRoot /var/www/monsite1.com
>   ServerAdmin webmaster@monsite1.com
>   ErrorLog /var/log/apache-ssl/monsite1-secure-error.log
>   TransferLog /var/log/apache-ssl/monsite1-secure-transfer.log
> </VirtualHost>
> 
> <VirtualHost 192.168.69.1>
>   ServerName www.monsite2.com
>   SSLDisable
>   DocumentRoot /var/www/monsite2.com
>   ServerAdmin webmaster@monsite2.com
>   ErrorLog /var/log/apache-ssl/monsite2-error.log
>   TransferLog /var/log/apache-ssl/monsite2-transfer.log
> </VirtualHost>

Curieux: pour faire du vhosting, j'ai plustôt l'habitude de donner des
noms différents (style <VirtualHost monsite2.com>, <VirtualHost
monsite1.com> ...). Chez moi, une manip de ce style marche avec des
résolution d'adresse via /etc/hosts (i.e intranet): Apache vérifie que
adresse le client requiert (le nom donné, pas l'IP), et s'en sert pour
adresser le vhost requis.

Donc tente de remplacer tes IP dans tes <VirtualHost machin> par les
valeurs que tu donnes dans ServerName.

/N 
______________________________________________________________________
Nicolas Rueff <n.rueff@tuxfamily.org>
http://rueff.tuxfamily.org
+33 6 77 64 44 80
--
Around computers it is difficult to find the correct unit of time to
measure progress.  Some cathedrals took a century to complete.  Can you
imagine the grandeur and scope of a program that would take as long?
		-- Epigrams in Programming, ACM SIGPLAN Sept. 1982
______________________________________________________________________

Attachment: pgp9xLfmuKtnB.pgp
Description: PGP signature


Reply to: