PDA

View Full Version : https question


SpaceAdmiral
09-26-2005, 08:38 PM
Here's my problem:

I have several domains on my system using Apache virtual hosts. Let's call them a.com, b.com, c.com, et cetera.

They all work as I expect for http requests. However, since a.com is my default domain, https://b.com shows the a.com page as do https requests to any other domain.

How do I fix this?
1. Can I just turn off https requests without affecting my webmin control panel? (I don't actually use the https for anything except webmin.) How do I do this?

2. Can I just forward https requests to the equivalent http address (again, without affecting webmin)? How so?

3. Or do I need to setup special https virtual hosts?

Any help would be appreciated.

ndavey
09-26-2005, 10:28 PM
Hi,
In the setup you describe, there are three pieces of software..
1) Apache (provides http)
2) Apache-ssl (provides https)
3) Webmin

You can shutdown the https by just stopping the apache-ssl service. This will not cause any problems with webmin, since it's uses it's https is handled by it.

I'd be guessing the reason that your https requests are not working properly for b.com is that generally apache-ssl has it's own httpd.conf file, seperate to apache (atleast on my other debian install). Thus the apache-ssl config won't have the virtualhost entries which are in your apache config which is why the domains redirect to a.com pages..

Hope that helps..

placey
09-28-2005, 02:23 PM
This link will explain why this is happening: http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#vhosts2

Short of turning off SSL, however, which is okay by you, I can't think of a workaround.

Pete

SpaceAdmiral
10-01-2005, 01:23 AM
Thanks for the help, guys. I turned off ApacheSSL.