Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

wrong ssl certificate, right domain.

Posted on 2004-10-08
1
Medium Priority
?
203 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
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.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

719 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