Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: apache2 vhosts problem
PostPosted: Wed Sep 17, 2003 1:53 pm 
Offline
Senior Newbie

Joined: Tue Sep 16, 2003 11:05 am
Posts: 17
i get the following error:
[Wed Sep 17 13:49:15 2003] [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results

however, I cannot figure out where this is coming from. I don't have any virtual hosts setup with port 443. Is apache loading this from some other conf file? BTW, i am running the small Redhat 9 image


Top
   
 Post subject: found it
PostPosted: Wed Sep 17, 2003 1:55 pm 
Offline
Senior Newbie

Joined: Tue Sep 16, 2003 11:05 am
Posts: 17
As I posted the question I thought of the answer. There is an ssl.conf file that get executed, it is the one that has a VHost definition. Any suggestions on what I should do?


Top
   
 Post subject:
PostPosted: Wed Sep 17, 2003 2:40 pm 
Offline
Senior Member
User avatar

Joined: Mon Jun 23, 2003 1:25 pm
Posts: 260
You will have to post your conf files for more help.

Adam


Top
   
 Post subject:
PostPosted: Wed Sep 17, 2003 3:04 pm 
Offline
Senior Newbie

Joined: Tue Sep 16, 2003 11:05 am
Posts: 17
i am not going to worry about ssl for now, so I just renamed the ssl.conf file to a temporary name. This solved my problem


Top
   
 Post subject:
PostPosted: Wed Sep 17, 2003 3:15 pm 
Offline
Senior Member
User avatar

Joined: Mon Jun 23, 2003 1:25 pm
Posts: 260
Hi,

Instead of renaming the file, it is better to comment out the call to the ssl.conf file from the main config file.

Adam


Top
   
PostPosted: Fri Sep 19, 2003 6:09 pm 
Offline
Junior Member

Joined: Thu Sep 18, 2003 1:44 pm
Posts: 46
Website: http://www.officemechanic.com
AOL: schof@mac.com
Location: Los Angeles
I had the same vhosts problem. As you surmised, it comes from the SSL configuration file. Renaming that file is a fine way of fixing the problem -- it's called from a line in the main httpd.conf that just loads all *.conf files in a directory. There's no specific call to the ssl configuration file.

If you want to leave SSL working (at least I think it's working -- don't need it so haven't checked yet) you can edit the virtualhosts line in the ssl.conf file so that it just has an * instead of the _default_ line or a port number. According to my reading of the docs, since there's a listen 443 statement above the virtualhost, virtualhost will pick the port 443 from there and not the main listen 80. (Picks it from the closest "listen" statement.)

Am I smoking crack, or does this make sense? I'm new at this.

_________________
John Schofield
Apple Certified Technical Coordinator
Office Mechanic Consulting
Mac, Unix, and PC Computer Support
www.officemechanic.com


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group