To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

http://justlinux.com/   Mon, 23-Nov-2009 09:48:36 GMT
         internet.com
  #1  
Old 10-06-2009, 10:54 PM
millergroup millergroup is offline
Registered User
 
Join Date: Oct 2009
Posts: 1
SSL Issues

I am attempting to run two domains with two different ip's on one apache server.


I have a webserver setup for myself with two domains. Both need ssl.
I am running fedora 10 Apache/mod_ssl.
Both are currently already running on port 80 in /etc/httpd/httpd.conf. With one ip. and no problems.






I am trying to configure ssl.conf to recognize two different ip addresses, one for each domain.

These two are in /etc/httpd/conf.d/ssl.conf

Each has their own Vhost containers (NamedVirtualHHost)

<VirtualHost 192.xxx xxx x01 :443> (these are not real ip's i am using static ip's)
blabla
blabla
</VirtualHost>


<VirtualHost 192.xxx xxx x02 :443>
blabla
blabla
</VirtualHost>

I call https... first site works ok

I call https....for the second site and it calls the first installed ssl cert: result (bad cert) not for this domain name.

Apache does not separate the two.

My question, how do I get apache
to deliver https..domain_one and domain_two correctly? And separate from each other.

Thank you in advance
Reply With Quote
  #2  
Old 10-07-2009, 08:19 AM
ph34r's Avatar
ph34r ph34r is offline
HAL
 
Join Date: Sep 1999
Posts: 3,132
You should have

Code:
<VirtualHost 192.xxx.xxx.x01:443>
ServerName hostname.in.ssl.certificate:443
other stuff here for doc root,etc
</VirtualHost>
<VirtualHost 192.xxx.xxx.x02:443>
ServerName hostname.in.otherssl.certificate:443
other stuff here for doc root,etc
otherstuff
</VirtualHost>
Also, be sure that you have SSLCertificateFile and SSLCertificateKeyFile for each one pointing to the different certs
__________________
-----
This space for rent
Reply With Quote
  #3  
Old 10-30-2009, 03:43 AM
hcm2009 hcm2009 is offline
Registered User
 
Join Date: Oct 2009
Posts: 1
Quote:
Originally Posted by ph34r View Post
You should have

Code:
<VirtualHost 192.xxx.xxx.x01:443>
ServerName hostname.in.ssl.certificate:443
other stuff here for doc root,etc
</VirtualHost>
<VirtualHost 192.xxx.xxx.x02:443>
ServerName hostname.in.otherssl.certificate:443
other stuff here for doc root,etc
otherstuff
</VirtualHost>
Also, be sure that you have SSLCertificateFile and SSLCertificateKeyFile for each one pointing to the different certs
Thank you so much for the post. It's really informative!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump


All times are GMT -4. The time now is 05:48 AM.

Help File Library
Miscellaneous
Games
Soundcards
Audio Hardware
Distribution Specific
More



internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers




internet.commerce
Be a Commerce Partner












Linux is a trademark of Linus Torvalds.

Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy

Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.