LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   HTTPS and HTTP on same server (http://www.linuxquestions.org/questions/linux-software-2/https-and-http-on-same-server-387321/)

Jake_B 11-28-2005 01:46 PM

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?

XOR007 11-28-2005 02:00 PM

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.

Jake_B 11-28-2005 04:47 PM

Quote:

Originally posted by XOR007
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.

Well, I can sign my own, right? (not that it matters, it's only my personal webmail...)


All times are GMT -5. The time now is 03:32 AM.