LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-28-2005, 01:46 PM   #1
Jake_B
LQ Newbie
 
Registered: Mar 2004
Distribution: RHEL
Posts: 27

Rep: Reputation: 15
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?
 
Old 11-28-2005, 02:00 PM   #2
XOR007
Member
 
Registered: May 2005
Location: Africa
Distribution: Ubuntu, Redhat 6.2 to 9, Centos 4, Suse 8 Ent.,Suse 9 Ent.
Posts: 51

Rep: Reputation: 15
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.
 
Old 11-28-2005, 04:47 PM   #3
Jake_B
LQ Newbie
 
Registered: Mar 2004
Distribution: RHEL
Posts: 27

Original Poster
Rep: Reputation: 15
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...)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
https works, but not http squeaks_27 Linux - Networking 1 05-31-2005 08:41 PM
http and https wennie Linux - Software 1 04-01-2005 11:47 AM
Got http, now I need to run https lothario Linux - Software 2 01-08-2005 02:30 PM
HTTP to HTTPS shegde Linux - Software 8 01-31-2003 04:29 AM
https or http? antken Programming 3 10-30-2002 05:06 PM


All times are GMT -5. The time now is 03:08 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration