I have installed SSL on my Apache 1.3.20. I am using virtual hosts. I want to use SSL on only one of the virtual hosts. can I get it to do that? I don't want all of the other virtual hosts and the default to respond to https requests.
If you have SSL working globally, you can turn it off for the vhosts you don't want it for by adding the "SSLEngine off" directive in their respective containers. Otherwise you can cut and paste all the SSL stuff from the example virtual host container in httpd.conf and comment out the global definitions in "Main".
Assuming its mod_ssl you are using (vs Apache-ssl) and you have that and openssl installed, then for Apache you'd need global directives in httpd.conf like :
the page for the secure site shows up. So it seems that if I go to https for any hostname that points to the server, I get the secure site. All of the plain http virtual hosts work ok.
Actually, I just remembered that you can't use ssl with name based virtual hosts - only with IP based virtual hosts. The reason is that apache looks at the protocol (https vs http or whatever) first and acts on the https before it gets to the stage of looking at the 'http' headers on which it discriminates between virtual hosts. So, you are going to be stuck with needed separate IP addresses for any vhost that needs SSL, i.e. using IP based virtual hosts.
I've been following this for a few days knowing that I was going to want to do the same thing. I found a web site that explains how to set up Apache for Windows as a secure server. They begin by installing another instance of Apache or, as they refer to it, another Daemon which listens on the secure port and serves the secure pages.
Is this an alternative and/or a workable solution to this problem - that of having only one IP address and needing to secure only one or two pages??
I'm hoping to help myself get clear on some of this.
On a continuing note: In the above reply/query, the web site I mentioned suggests installing a second copy of apache. When I try to do that, (with 1.3.22 that is) I get two install options: "repair the existing installation" and "remove the existing installation." How is it possible to install two Apache "daemons" in this case?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.