James D. Parra wrote:
Hello,
I am having a devil of a time setting up more than one site in Apache on Suse.
I can add, and access, two different sites on the same address using 'Any' port with the virtual host having unique names; www.domain1.com & www.domain2.com, however when I add a domain, www.domain3.com, that uses ssl on port 443 and non-ssl on port 80 or 'Any' port, things go haywire.
Hi James - quite a few questions to start with... Are domain1 and domain2 running only on port 80? How have you configured Apache to serve both domains? You mention SUSE 10.0 - just to be clear this is, 10.0, not SLES10?
Either I get an error such this ,below, in a browser trying to access www.domain3.com;
<snip> What does the output of /var/log/apache2/error_log show when you try to make this connection? Can you add domain3 as a non-SSL domain? (You can worry about the SSL side of things afterwards)
...or if listen.conf has port 443 listening on a particular address, apache won't start;
[Wed Mar 21 12:28:47 2007] [warn] NameVirtualHost 10.0.0.1:0 has no VirtualHosts Syntax OK Shutting down httpd2 (waiting for all children to terminate) ..done Starting httpd2 (prefork) [Wed Mar 21 12:28:48 2007] [warn] NameVirtualHost 10.0.0.1:0 has no VirtualHosts (98)Address already in use: make_sock: could not bind to address 10.0.0.2:443 no listening sockets available, shutting down Unable to open logs ..failed <snip>
Netstst shows nothing else is running on port 443.
I'd like to have four(4) sites running, two without ssl access, and two others running ssl on port 443 and non-ssl on port 80.
Will this be four sites being served via the same IP address, using name based multi-homing, or are you trying to assign each site to a separate IP address? ~~~~~~ Hello Jon, Thank you for your response. Domain1 & domain2 will run on the same IP address on port 80. Domain3 will run on another IP address on ports 80 & 443 (ssl). What is odd is that I can get the first two sites up without any problems, however when I get the third site up, I can get to it through port 443, in other words, if I use https://domain3.com it works, if I go to http://domain3 (no ssl) I get; Bad request! Your browser (or proxy) sent a request that this server could not understand. If you think this is a server error, please contact the webmaster. <snip> Unfortunately, the apache error_log doesn't give me anything useful. I have 'wiped out' all the sites and I going to start fresh by first adding domain3 (the ssl site) and add the others afterwards. Any help is most welcomed. ~James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org