HTTPS and HTTP on same server
I'd like to set up my personal server (Apache2 on RHEL3) to accept both HTTP and HTTPS, with Named Virtual Domains. It is behind my DSL router, and so the NameVirtualHost is set to an IP and port (all the same):
NameVirtualHost xxx.xxx.xxx.xxx:80 And under that, several domains: <VirtualHost xxx.xxx.xxx.xxx:80> ... </VirtualHost> <VirtualHost xxx.xxx.xxx.xxx:80> ... </VirtualHost> <VirtualHost xxx.xxx.xxx.xxx:80> ... </VirtualHost> I have a primary domain with a doc root under /var/www, and several other domains with doc roots under /home/some_domain. Now, what I'm really after is that I have webmail under /var/www/html/webmail and I'd like that to be more secure. I'm having probles finding examples of what I need to do. Any ideas? |
vi /etc/httpd/conf.d/ssl.conf,
it is included in httpd.conf. You only need to uncomment relevant entries in the default VHost entry and set DocumentRoot to /var/www/html/webmail, defaults should work well if you don't mind the invalid SSL Certificates. But if you have money..., their path is there: SSLCertificateFile and SSLCertificateKeyFile. Obtain them and install them there. |
Quote:
|
All times are GMT -5. The time now is 08:20 AM. |