Hi
I need to run an SSL-protected web server for webmail plus an unprotected
web server for simple web pages and downloads on the same machine using the
same domain name and only one IP address.
It would be ok to refer to the protected one by the fully qualified domain
name, in this case "mail.domainname.com", and to the second simply by
"www.domainname.com". (Don't know if that will make it easier.)
Please look at the bottom for my questions.
-----------
The FAQ at www.modssl.org says:
Is it possible to provide HTTP and HTTPS with a single server?
Yes, HTTP and HTTPS use different server ports, so there is no direct
conflict between them. Either run two separate server instances (one binds
to port 80, the other to port 443) or even use Apache's elegant virtual
hosting facility where you can easily create two virtual servers which
Apache dispatches: one responding to port 80 and speaking HTTP and one
responding to port 443 speaking HTTPS.
The documentation at httpd.apache.org says:
Port-based vhosts
Setup: The server machine has one IP address (111.22.33.44) which resolves
to the name www.domain.tld. If we don't have the option to get another
address or alias for our server we can use port-based vhosts if we need a
virtual host with a different configuration.
Server configuration:
...
Listen 80
Listen 8080
ServerName www.domain.tld
DocumentRoot /www/domain