-   Linux - Software (
-   -   apache2 virtual hosting ignores ServerName (

gjmwalsh 07-17-2006 11:20 PM

apache2 virtual hosting ignores ServerName
I have a happily functioning apache2-php5 server at the moment with one main server at port 80.

I've now added ssl, generated the self-signed certificate, and set up a simple virtual hosting which httpd -S returns as:

Port 80 traffic continues to work correctly, but the error log complains that the CN ( does not match the server name, and yet the Server Name is clearly and correctly set in the virtual host paragraph.

Can someone tell me what and why my setting for ServerName is being overridden or ignored?

j-ray 07-18-2006 01:22 AM

i'm guessing that you may have used a different server name when generating the ssl certificates? Maybe Snakeoil? So the server name and the server in your certificate are not the same...
Hope this helps,

gjmwalsh 07-18-2006 04:31 PM

That would be a good bet in most cases.

But although I generated the ssl request from www which is the 'real' host, I carefully established the CN as secure and the certificate clearly confirms that.

This follows all the instructions I have ever seen or used in the past myself. There's somethjing unique here I can't get a grip on, but I appreciate your taking the time to respond.


All times are GMT -5. The time now is 01:01 AM.