LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-05-2003, 03:09 AM   #1
Manuel-H
Member
 
Registered: Apr 2003
Location: Singapore
Distribution: Slackware32/64, Ubuntu, Fedora, RHEL
Posts: 130

Rep: Reputation: 15
How to have SSL on two different pages/sites?


I have a problem getting a few domains/pages to use SSL/https.
Currently I have webmail and crm program that I wanted to use SSL/https.

Below are my configuration and findings on my own troubleshooting.
Hope some one will be able to help me.

The SSL cert, key, etc has been made.

my httpd.conf file
**************
<Location /var/www/htdocs/crm/>
SSLRequireSSL
</Location>

<Location /var/www/htdocs/webmail/src/login.php>
SSLRequireSSL
</Location>

my mod_ssl.conf
**************
<VirtualHost _default_:443>
# General setup for the virtual host
DocumentRoot "/var/www/htdocs/webmail"
ServerName webmail.mydomain.com
[other lines deleted - for easier reading]
</VirtualHost>

<VirtualHost crm.mydomain.com:443>
DocumentRoot "/var/www/htdocs/crm"
ServerName crm.mydomain.com
[other lines deleted - for easier reading]
</VirtualHost>

Findings
*******
Settings 1 - with the above
- crm can be access via https
- webmail cannot be access via https

Settings 2 - remark crm in httpd.conf
- crm can be access via https
- webmail cannot be access via https

Settings 3 - remark crm in mod_ssl.conf
- crm cannot be access via https
- webmail can be access via https

Questions:
- where should I put the configuration? httpd.conf or mod_ssl.conf?
- how can I make both crm and webmail to use https?

I am using apache 1.3.27 running on slackware 9.0 kernel 2.4.20
 
Old 08-05-2003, 08:53 AM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
In order to run two different sites on the same port, you must have two IP addresses on the system. The problem lies in the fact that the server does not know which certificate to present because the session is encrypted. This does not happen when two IP addresses are used because the server can determine which certificate to present based on the IP address receiving the request. You either got to add another IP address or change the port on one of the applications.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apache: ssl only for specific pages wwnexc Linux - Software 2 11-23-2005 08:29 PM
Suse 9.2 - Firefox - SSL (browser doesn't load secure pages) jclement30 Suse/Novell 7 02-15-2005 01:49 AM
how to count the fault pages and the mapped pages riquelme Programming 0 05-20-2004 10:16 PM
Pls check my iptables to see if i can login into hotmail and other SSL sites! debloxie Linux - Networking 1 01-26-2004 09:33 AM
Apache SSL started, pages won't display Manuel-H Linux - General 1 04-16-2003 11:04 AM


All times are GMT -5. The time now is 04:54 AM.

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