LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apache2 virtual hosting ignores ServerName (https://www.linuxquestions.org/questions/linux-software-2/apache2-virtual-hosting-ignores-servername-465061/)

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:

111.112.113.114:443 secure.mysite.com

111.112.113.114:80 www.mysite.com

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?

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,
j.

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.

George


All times are GMT -5. The time now is 09:19 PM.