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:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old February 13th, 2005, 08:09 PM
AngeloDS AngeloDS is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 1 AngeloDS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 56 sec
Reputation Power: 0
Virtual Host Problems [Apache 2.0.52]

OS: Windows XP Pro
Apache: 2.0.52
PHP: 5.0.3
DNS: http://www.zoneedit.com

The problem being is with Virtual Host obviously.

If I do ->

NameVirtualHost *:80

<VirtualHost *:80>
ServerName forum.site.com
DocumentRoot /www/forum
</VirtualHost>

My main website will turn into the forum. So, if I load up www.site.com it will lead to the forum.

If I do

NameVirtualHost remote_ip:80 (or just remote_ip)

<VirtualHost remote_ip:80 (or just remote_ip)>
ServerName forum.site.com
DocumentRoot /www/forum
</VirtualHost>

It will load up the forum.site.com but it will display the main page for some reason. But the forum.site.com will be there and I can surf the site and stuff under that sub-domain.

Third, I do this and it seems to work.

NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
ServerName forum.site.com
DocumentRoot /www/forum
</VirtualHost>

It works for some people, and others it doesn't.


and I setup my host (C:\Windows\System32\Drivers\Etc\Host)

It's like this

127.0.0.1 localhost
127.0.0.1 forum.site.com

and it works fine with the <VirtualHost 127.0.0.1> without the 127.0.0.1 forum.site.com it doesn't work. The page won't even load.

with

127.0.0.1 localhost
ip forum.site.com

it loads up the main page, but if it take out the ip forum.site.com it won't even load.

I'm curious as to what the problem is .

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Virtual Host Problems [Apache 2.0.52]


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 6 hosted by Hostway