Solved

SSL localhost.localdomain instead of my dot com

Posted on 2013-01-28
3
772 Views
Last Modified: 2013-01-31
I have pointed to the SSL certificates in the VirtualHost in httpd.conf as I have on all my web servers but in this case it's pulling localhost.localdomain instead of my dot com.

I know the httpd.conf is correct because I copied it from a working server. The ssl.conf file was also copied from working server.

I've done this many times and it's worked fine until I updated php to 5.3 from 5.1. Not sure how to proceed.
0
Comment
Question by:jasonslogan
3 Comments
 
LVL 76

Accepted Solution

by:
arnold earned 500 total points
Comment Utility
Usually the virtualhost that is tied to port 443 is in SSL.conf
You can only have one virtualhost that is bound to port ip:443
Can you post the configuration?
0
 
LVL 50

Expert Comment

by:Steve Bink
Comment Utility
>>> I know the httpd.conf is correct because I copied it from a working server

I love that statement.

Chances are, you left a default host enabled in your conf files.  As arnold pointed out, a specific IP:port combination is bound to a single certificate.  In Apache, if you have more than one certificate bound to an IP:port, Apache will use whichever it finds first.  In some default installations, Apache is pre-configured with a default SSL host, using a certificate for localhost.localdomain, and it will usually be found first unless you have taken care to disable or move it.
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
> ..  it's pulling localhost.localdomain
can you please explain what you mean by that? best with an example URL
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now