Hi Dalton, For your requirement you must use Namebased virtual hosts, now you are using IP/Port based virtual host. when you say 'https', the virtual host listening on port 443, will serve the request and vice versa. Regards, Rajidhar Etta
----- Original Message ----- From: Doug Dalton <[EMAIL PROTECTED]> Date: Friday, October 26, 2001 11:25 pm Subject: problems with SSL and virtual hosts > I am having trouble with two domains, one is server.com one is > server.netI want server.net to ONLY allow ssl to the server.net/ dir > and server.com to only be standard port 80 in the server.com/dir > > but with the config below : > when I go to https://www.server.com - I get server.net/ directory > when I go to http://www.server.com- works correctly > when I go to http://www.server.net- I get the server.com/directory > when I go to https://www.server.net - works correctly > > What am I doing incorrectly? > > Doug > > > > NameVirtualHost 10.0.0.10 > > # > # 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 10.0.0.10:443> > <Location /> > SSLRequireSSL > </Location> > ServerAdmin [EMAIL PROTECTED] > DocumentRoot /home/www/server.net > ServerName www.server.net > ScriptAlias /cgi-bin /home/www/server.net/cgi-bin > SSLEngine on > SSLCertificateFile /usr/loca SSLCertificateKeyFile > /usr/loca ErrorLog logs/server.net-error_log > CustomLog logs/server.net-access_log common > </VirtualHost> > > <VirtualHost 10.0.0.10:80> > ServerAdmin [EMAIL PROTECTED] > DocumentRoot /home/www/server.com > ServerName www.server.com > ScriptAlias /cgi-bin /home/www/server.com/cgi-bin > ErrorLog logs/server.com-error_log > CustomLog logs/server.com-access_log common > </VirtualHost> > > > ______________________________________________________________________ > Apache Interface to OpenSSL (mod_ssl) www.modssl.org > User Support Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] >
begin:vcard n:Etta;Rajidhar fn:Rajidhar Etta tel;cell:609.203.3697 tel;fax:(888) 979-8800 tel;home:(609) 750-0836 tel;work:(609) 951-8500 x192 org:eComServer Inc;ACB adr:;;Princeton Executive Campus, 4301, Route 1, South Suite 220,;Monmouth Junction;NJ;08852;United States of America version:2.1 email;internet:[EMAIL PROTECTED] title:Software Engineer end:vcard
