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? Jon -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org