Computing.Net > Forums > Web Development > trouble setting up virtual host

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

trouble setting up virtual host

Reply to Message Icon

Name: remgu
Date: February 9, 2005 at 21:50:26 Pacific
OS: xp pro sp2
CPU/Ram: 3.4
Comment:

I am running Apache on WinXP. I am hosting only one site and wish to set it up to virtual host another site. I want to use Name virtual hosting because I only have one IP. I have tried to configure it for days but I just get taken back to my main site when I enter the other sites url.

I have my site...lets call it www.site.com which is setup as my DNS Host and I have made www.other.site.com a DNS Alias. I use the DNS services of no-ip.com

When I go to www.other.site.com, I get the same page as when I go to www.site.com.

In the config file I have set the servername in Section 2 to:

ServerName www.site.com

I have the following in section 3:

NameVirtualHost *:80
<VirtualHost *>
ServerName www.site.com
DocumentRoot /AppServ/www
ServerAlias site.com
</VirtualHost>

<VirtualHost *>
ServerName other.site.com
DocumentRoot /AppServ/www/other
ServerAlias www.other.site.com
</VirtualHost>

Thanks,
REMGU



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Javascript download menu ... Php form problem (non sta...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: trouble setting up virtual host

Apache v-hosts on dynamic IP set-up www.computing.net/answers/webdevel/apache-vhosts-on-dynamic-ip-setup/830.html

Setting up an FTP server on Win2000 www.computing.net/answers/webdevel/setting-up-an-ftp-server-on-win2000/1006.html

Virtual hosting www.computing.net/answers/webdevel/virtual-hosting/2294.html