Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Aug 03, 2003 1:33 am 
Offline
Junior Member

Joined: Wed Jul 16, 2003 1:43 am
Posts: 30
Website: http://www.alution.com
Location: Australia
After much stuffing around with ssl.conf and various other configs, i finally got virtual hosts to work..

I kept getting the error

[error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results

there seems to be a heap of people out there getting this error, so here is my solution, which works for me......

In the end I didnt need to touch the ssl.conf file, just leave that as is.

in your httpd.conf do the following.
=======8<========
NameVirtualHost *:80
NameVirtualHost *:433

<VirtualHost _default_:80>
ServerAdmin webmaster@your-server.com
DocumentRoot /var/www/html
ServerName li-*.member.linode.com
ErrorLog /var/www/html/virtual/logs/error_log
CustomLog /var/www/html/virtual/logs/access_log common
</VirtualHost>


<VirtualHost *:80>
ServerAdmin webmaster@your-server.com
DocumentRoot /var/www/html/virtual/site1/html
ServerName anotherdomain.com
ServerAlias *.anotherdomain.com anotherdomain.com
ErrorLog /var/www/html/virtual/site1/logs/error_log
CustomLog /var/www/html/virtual/site1/logs/access_log common
</VirtualHost>
=======>8========

Hope it helps someone...


Top
   
 Post subject:
PostPosted: Sun Aug 31, 2003 10:47 am 
Offline
Senior Member

Joined: Sat Aug 30, 2003 6:35 am
Posts: 57
I just use webmin (http://www.webmin.com) which can handle apache virtual servers fine, if you install the apache module.


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