On Sat, 26 May 2012, Alain Roger wrote:
I did as in the documentation: # Ensure that Apache listens on port 80 Listen 80 # Listen for virtual host requests on all IP addresses NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /www/example1 ServerName www.example1.com # Other directives here </VirtualHost> <VirtualHost *:80> DocumentRoot /www/example2 ServerName www.example2.org # Other directives here </VirtualHost> everything in the httpd-vhosts.conf file of xampp... but both website have https...and basically the first defined is the default one...and this is something i can't allow... so how to do to be sure that if user is in http://www.website2..loc and select clicks on link as https...he goes to https://www.website2.loc and not https://www.website1.loc ?
Make the same things for port 443 Listen 443 <VirtualHost *:443> DocumentRoot /www/example2 ServerName www.example2.org # Other directives here </VirtualHost> Or do both http://httpd.apache.org/docs/2.0/vhosts/examples.html
thx On Sat, May 26, 2012 at 6:11 PM, Eric Covener <covener@xxxxxxxxx> wrote:your putting hostnames in <virtualhost> instead of using name-based virtualhosts but this doesn't work as you expect. Try mimicing the examples in the manual and using NameVirtualHost *:80 <virtualost *:80> ... <virtualost *:80> ... --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
-- William G. Unruh | Canadian Institute for| Tel: +1(604)822-3273 Physics&Astronomy | Advanced Research | Fax: +1(604)822-5324 UBC, Vancouver,BC | Program in Cosmology | unruh@xxxxxxxxxxxxxx Canada V6T 1Z1 | and Gravity | www.theory.physics.ubc.ca/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx