LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-17-2006, 11:20 PM   #1
gjmwalsh
Member
 
Registered: Jul 2003
Location: Victoria, British Columbia
Distribution: Mandriva 2010 (cooker) with Bind9, Sendmail, Postgresql and Apache2 servers
Posts: 63

Rep: Reputation: 15
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?
 
Old 07-18-2006, 01:22 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
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.

Last edited by j-ray; 07-18-2006 at 01:24 AM.
 
Old 07-18-2006, 04:31 PM   #3
gjmwalsh
Member
 
Registered: Jul 2003
Location: Victoria, British Columbia
Distribution: Mandriva 2010 (cooker) with Bind9, Sendmail, Postgresql and Apache2 servers
Posts: 63

Original Poster
Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hosting w Apache2...invisible to internet maxsanders Linux - Newbie 6 01-30-2006 10:50 AM
Apache2 ignores CSS files rblampain Linux - Software 3 12-28-2005 09:50 AM
Help with Web Page Hosting and Apache2 Hambone_20003 Linux - Software 2 08-23-2005 08:31 PM
"No Java virtual machine could be found from your PATH" - ignores bashrc shaider Linux - Software 7 10-09-2004 12:38 AM
Virtual Hosting joseph Linux - General 3 08-20-2003 04:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration