Question : Apache SSL VHosts not displaying correct DocumentRoot webpage

hello,

first off, let me apologize if this has been asked and answered before.

my server config: Apache 2.2.3 on Windows 2003.  I'm trying to setup SSL for virtual Hosts & i understand that it can currently only be implemented on an IP Basis.

My problem: When i try to access a virtual host via SSL, it displays the main/server's DocumentRoot webpage, instead of the virtual host's documentRoot webpage.

Your help is greatly appreciated.  thank you

Answer : Apache SSL VHosts not displaying correct DocumentRoot webpage

You have 2 "<VirtualHost _default_:443>" sections. Aapache will serve the first one for https requests. So the document root is "c:/apache/htdocs/" irrespective or the domanname you are using.

Suggestion is: remove the unwanted <VirtualHost _default_:443> section and make sure that document root specified in that section points to your desired location.

Regards,
Bimal Mankara
Marlabs Inc
Random Solutions  
 
programming4us programming4us