Solved

wrong ssl certificate, right domain.

Posted on 2004-10-08
1
202 Views
Last Modified: 2011-09-20
I have a site mysitefashion.com

I administer it using admin.mysitefashion.com

The httpd.conf file looks like this:


# A virtualhost for the main mysite website
<VirtualHost xxx.xxx.xx.xxx:80>
  ServerName www.mysitefashion.com
  DocumentRoot /home/hindrm/jakarta-tomcat-5.0.28/mysitesite/mysite
  CustomLog logs/mysite.log combined
  ErrorLog logs/mysite_error.log
  <Location /*.jsp>
    JkUriSet worker ajp13:localhost:8009
  </Location>
</VirtualHost>

# A virtualhost on the standard port 80 to redirect requests
# for the admin area to the real admin virtualhost on the ssl port
<VirtualHost xxx.xxx.xx.xxx:80>
  ServerName admin.mysitefashion.com
  CustomLog logs/public.log combined
  ErrorLog logs/public_error.log
  Redirect permanent / https://admin.mysitefashion.com
</VirtualHost>
# An SSL virtualhost for the main site
<VirtualHost xxx.xxx.xx.xxx:443>
  ServerName www.mysitefashion.com
  DocumentRoot /home/hindrm/jakarta-tomcat-5.0.28/mysitesite/mysite
  SSLEngine on
  SSLCertificateFile /etc/httpd/conf/ssl.crt/mysitemainssl.crt
  SSLCertificateKeyFile /etc/httpd/conf/ssl.key/mysitefashionsslprivate.key
  SSLCACertificateFile /etc/httpd/conf/ssl.crt/mysitemainsslCA.crt
  CustomLog logs/mysitesecure.log combined
  ErrorLog logs/mysitesecure_error.log
  <Location /*.jsp>
    JkUriSet worker ajp13:localhost:8009
  </Location>
</VirtualHost>

# An SSL virtualhost for the admin site
<VirtualHost xxx.xxx.xx.xxx:443>
  ServerName admin.mysitefashion.com
  DocumentRoot /home/hindrm/jakarta-tomcat-5.0.28/mysiteadminsite/mysiteadmin
  SSLEngine on
  SSLCertificateFile /etc/httpd/conf/ssl.crt/mysiteadminssl.crt
  SSLCertificateKeyFile /etc/httpd/conf/ssl.key/mysiteadminsslprivate.key
  CustomLog logs/mysiteadmin.log combined
  ErrorLog logs/mysiteadmin_error.log
  <Location /*.jsp>
    JkUriSet worker ajp13:localhost:8009
  </Location>
</VirtualHost>




the  xxx.xxx.xx.xxx part represents the IP address of my server (there is only one).  

when I browse to https://admin.mysitefashion.com I find that the certificate which is used is the signed one I have set up for the www.mysitefashion.com.  I'd like to know why the /mysiteadminssl.crt certificate is not used.

Can anyone help?
0
Comment
Question by:rosshind
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 15

Accepted Solution

by:
periwinkle earned 500 total points
ID: 12257799
SSL on Apache requires that you use a unique IP address - the reason that you are getting the first SSL site is because you are only using one IP address.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question