Virtual interface and Apache????

3 posts / 0 new
Last post
#1 Sat, 02/10/2007 - 09:22
DanLong

Virtual interface and Apache????

CentOS 4.4 and VMPro 3.33

I tried to setup a server on a private IP with SSL and when I try to access the website it defaults to the first website in the Apache list. Trying the SSL connection gives page cannot be displayed.

I've tried every combination of settings in the networking and addresses module to no avail. Even when click to open the url in the apache module it goes to the first website. The document root is correct otherwise it should go to the VM default page.

When I deactivated the virtual interface and fired up the old box with the same IP, the website comes up fine and if I try SSL it just resolves to the VM default page as would be expected.

Pulled this error from the log on bootup:

Feb 10 07:01:56 hosta httpd: [[Sat Feb 10 07:01:56 2007]] [[error]] VirtualHost default:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results

Sat, 02/10/2007 - 15:17
DanLong

Since Apache is calling the default SSL port as a virtual server, I fixed that error by assigning the shared IP to it. Now the website will show on the private IP on port 80. SSL still doesn't work though.

Apache is configured to listen to ANY address on ports 80 and 443. THe specific address on port 443 is then added to the addresses for name virtual servers but https still fails.

Sat, 02/10/2007 - 12:41
Joe
Joe's picture

Hey Dan,

Apache is either/or with regard to name-based virtual hosting. You can't use "_default_:443" or "*:443" with an environment that has been switched to name-based hosts.

So, edit the offending virtual host in the Webmin Apache module, and change the _default_ host to sit somewhere specific (on a real IP), or get rid of it entirely if you don't want it (you can then add SSL hosts using Virtualmin).

--

Check out the forum guidelines!

Topic locked