SunQuest
 
           Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old August 4th, 2005, 09:41 PM
hwange hwange is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 1 hwange User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 55 m 8 sec
Reputation Power: 0
NameVirtualHost only works within main DNS

Using Windows XP Pro
Apache 2.0.52

I am hosting a website on my own pc at home.

I have registered 2 seperate DNS and both are pointing to my IP.

The problem I have is this, I can connect to mysite1.com fine but when I try to add mysite2.com it will only work if I place the folder containing this 2nd site within the first site.

This is what I added to my httpd.conf

NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.mysite1.com
DocumentRoot "C:/apache2/htdocs/mysite1"
</VirtualHost>

<VirtualHost *:80>
ServerName www.mysite2.com
DocumentRoot "C:/apache2/htdocs/mysite2"
</VirtualHost>

When I try to connect to www.mysite2.com
I notice the status bar in I.E. displays www.mysite2.com for a brief moment then it changes to www.mysite1.com/mysite2/

This is why I tried moving the whole mysite2 folder inside the mysite1 folder and now it loads ok.

The problem I have with this is that all the links in the 2nd site have the first site stuck before it

I hope this makes sense as it's the only way I can think to explain.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > NameVirtualHost only works within main DNS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway