Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

wrong ssl certificate, right domain.

Posted on 2004-10-08
1
Medium Priority
?
204 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
1 Comment
 
LVL 15

Accepted Solution

by:
periwinkle earned 2000 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Integration Management Part 2
Suggested Courses
Course of the Month13 days, 10 hours left to enroll

963 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