Jump to content
The Uniform Server Community

Virtual Host


kalpz
 Share

Recommended Posts

I know this has come up many times but I am stumped big time this time. Trying to help a friend with his virtual host.

 

http.conf file

 

NameVirtualHost *
<VirtualHost *>
ServerName ez-pc.co.nz
DocumentRoot /www/ezpc/
</VirtualHost>

<VirtualHost *>
ServerName buffalostats.hopto.org
DocumentRoot /www/buffalostats/
</VirtualHost>

 

Second host is a no-ip address.

 

Can anyone see the problem? It always shows /www/ezpc/ website even when a user browses to buffalostats.hopto.org.

ATOMIC Web Hosting 2007 - 2011

Shared Hosting - Reseller Hosting - Dedicated Servers - Virtual Private Servers (Request Dedicated/VPS Servers via E-mail)

E-mail: sales@atomicwebhosting.com Website: http://www.atomicwebhosting.com/

Link to comment
Share on other sites

Hi kalpz, :blink: Try This:

 

This should work ok Kalpz just paste in all the code and restart the services:

 


NameVirtualHost *


##########VIRTUAL HOST SETUP##########
# WWW.EZ-PC.CO.NZ
<VirtualHost *>
ServerName www.ez-pc.co.nz
DocumentRoot /www/ezpc
</VirtualHost>

##########VIRTUAL HOST SETUP##########
# EZ-PC.CO.NZ
<VirtualHost *>
ServerName ez-pc.co.nz
DocumentRoot /www/ezpc
</VirtualHost>

##########VIRTUAL HOST SETUP##########
# WWW.BUFFALOSTATS.HOPTO.ORG
<VirtualHost *>
ServerName www.buffalostats.hopto.org
DocumentRoot /www/buffalostats
</VirtualHost>

##########VIRTUAL HOST SETUP##########
# BUFFALOSTATS.HOPTO.ORG
<VirtualHost *>
ServerName buffalostats.hopto.org
DocumentRoot /www/buffalostats
</VirtualHost>


 

Danny ;)

Personal website

 

Uniform Server - hMail Server - Joomla

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...