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 (secure.mysite.com) 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?
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,
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 12:20 PM.|