Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Sep 03, 2010 4:27 pm 
Offline
Junior Member

Joined: Fri Aug 27, 2010 4:42 am
Posts: 48
Ok........... I got apache working fine for my main vhost www.nodewide.com......... which points to /var/www


I setup a second vhost for www.empirequest.co.uk and pointed it to /home/Chien/www

the issue is the vhost isnt working..... for whatever reason when I go to www.empirequest.co.uk it just directs me to the main vhost.


Top
   
 Post subject:
PostPosted: Fri Sep 03, 2010 5:13 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Did your restart Apache?


Top
   
 Post subject:
PostPosted: Fri Sep 03, 2010 8:57 pm 
Offline
Junior Member

Joined: Fri Aug 27, 2010 4:42 am
Posts: 48
Yep.... sure did


Top
   
 Post subject:
PostPosted: Sat Sep 04, 2010 2:15 am 
Offline
Junior Member

Joined: Fri Aug 27, 2010 4:42 am
Posts: 48
* Reloading web server config apache2 [Sat Sep 04 06:12:43 2010] [warn] VirtualHost www.empirequest.co.uk:80 overlaps with VirtualHost forums.empirequest.co.uk:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Sep 04 06:12:43 2010] [warn] VirtualHost www.nodewide.com:80 overlaps with VirtualHost www.empirequest.co.uk:80, the first has precedence, perhaps you need a NameVirtualHost directive


Top
   
 Post subject:
PostPosted: Sat Sep 04, 2010 2:26 am 
Offline
Junior Member

Joined: Fri Aug 27, 2010 4:42 am
Posts: 48
Image


Top
   
 Post subject:
PostPosted: Sat Sep 04, 2010 2:33 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Ok I've never used webin to set up apache but "Handles the name-based server on address *" doesn't quite look right.

Make sure you have NameVirtualHost directives for *:80 in your httpd.conf


Top
   
 Post subject:
PostPosted: Sat Sep 04, 2010 2:35 am 
Offline
Junior Member

Joined: Fri Aug 27, 2010 4:42 am
Posts: 48
How do I setup these directives?


Top
   
 Post subject:
PostPosted: Sat Sep 04, 2010 2:46 am 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
You might have better luck posting on the webmin forum

http://sourceforge.net/projects/webadmi ... rum/600155

I'm guessing almost everyone here at Linode runs their server via the shell.


Top
   
 Post subject:
PostPosted: Sat Sep 04, 2010 2:49 am 
Offline
Junior Member

Joined: Fri Aug 27, 2010 4:42 am
Posts: 48
I know how to do things via shelll I just am not familiar with setting up vhosts by shell.


Top
   
 Post subject:
PostPosted: Sat Sep 04, 2010 3:38 am 
Offline
Junior Member

Joined: Fri Aug 27, 2010 4:42 am
Posts: 48
I looked at /etc/apache2/httpd.conf

and it is totally empty which I think is odd.....

I then had a look in.....
/etc/apache2/sites-available

and

/etc/apache2/sites-enabled

And based on the files located in these paths there is only one vhost setup.....


Top
   
 Post subject:
PostPosted: Sat Sep 04, 2010 3:52 am 
Offline
Junior Member

Joined: Fri Aug 27, 2010 4:42 am
Posts: 48
Just added the following to the httpd.conf


<Directory "/home/bkerensa/www">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *>
ServerName clients.nodewide.com
ServerAlias clients.nodewide.com
DocumentRoot /home/bkerensa/www/client-area/
UseCanonicalName off

<Directory /home/bkerensa/www/client-area">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *>
ServerName www.empirequest.co.uk
DocumentRoot /home/Chien/www/
UseCanonicalName off

<Directory "/home/Chien/www">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *>
ServerName forums.empirequest.co.uk
DocumentRoot /home/Chien/www/forums/
UseCanonicalName off

<Directory "/home/Chien/www/forums">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>




Does this look fine?


Top
   
 Post subject:
PostPosted: Sat Sep 04, 2010 2:41 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
bkerensa wrote:
I know how to do things via shelll I just am not familiar with setting up vhosts by shell.


Checking the Linode library or spending 5 minutes with Google brings up lots and lots and lots of VHOST examples.


Top
   
 Post subject:
PostPosted: Sat Sep 04, 2010 6:27 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Choose either webmin OR shell trying both will just cause headaches.


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