[opensuse] Apache setup on Suse 10.0
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. Either I get an error such this ,below, in a browser trying to access www.domain3.com; 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> ...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. How can I fix this? Many thanks in advance. James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 21 March 2007 12:39:29 pm James D. Parra wrote:
How can I fix this?
Many thanks in advance.
Honestly this is less of a SUSE problem and more an Apache HTTPD one. You will probably have better luck on a hosting specific list. I used to subscribe often to webmasterworld.com but haven't been there of late. What you're gonna need to do is dig deep into your httpd.conf file and/or your .htaccess files for various rewrite thingies. <soapbox> I really wish Apache made httpd administration as brain-dead simple as IIS does. I cannot believe so many people still use config files to host sites and that there is yet to be a decent tool to easily manage such things. </soapbox> -- kai www.perfectreign.com || www.4thedadz.com www.filesite.org || www.donutmonster.com closing the doors that surround me so no one will ever penetrate complete my retreat just to wait for the day that never comes so i will laugh alone -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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
James D. Parra wrote:
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.
Note that you will require one IP per SSL host. This is related to a SSL connection being negotiated before HTTP headers are passed, so there is no way to determine which certificate to send to the browser. This is fixed in a SMTP/IMAP/TLS-like protocol (forget the name) which works on port 80 with HTTP. It's supported by IE7 and support is in the works for other browsers. I'm not sure about server-side support. I think Apache 2.2 (and I'd imagine the latest IIS) can handle it). I don't think it's deployable yet, and certainly not if you care about users with older browsers. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
James D. Parra
-
Jonathan Ervine
-
Kai Ponte
-
Russell Jones