Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 26th, 2001, 07:54 PM
tomt tomt is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 11 tomt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
vhosting problem

I am trying to serve different websites in separate folders under the root www folder

<VirtualHost *>
DocumentRoot "c:/phpdev/www"
ServerName www.chcisp.com
</VirtualHost>

<VirtualHost *>
DocumentRoot "c:/phpdev/www/bob"
ServerName www.bob.chcisp.com
</VirtualHost>

I did the cname alias with zoneedit.com -My DNS server
www.bob.chcisp.com is aliased to www.chcisp.com

When I start Apache I get a warning ??
Virtual Host overlap on port 80. The first has precedence.

I can see my main web site but never any of the others.
The Virtual Host examples looked simple enough, but I guess not for me. I've tried many different Vhosting comments made on this site but can't get it to work . If I use http://www.chcisp.com/bob without using virtual hosting it works o.k. Anyone have some helpful suggestions.

Reply With Quote
  #2  
Old December 26th, 2001, 11:56 PM
Bob Loblaw Bob Loblaw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 174 Bob Loblaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
A guess
try
]

<VirtualHost *>
DocumentRoot "c:/phpdev/www/bob"
ServerName bob.chcisp.com
</VirtualHost>

not the best help

Reply With Quote
  #3  
Old December 27th, 2001, 06:29 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Because bob.chcisp.com and www.bob.chcisp.com are not DNS resolvable.

Reply With Quote
  #4  
Old December 27th, 2001, 11:41 AM
tomt tomt is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 11 tomt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the help!
Thinks I figured out my problem.
NameVirtualHost didn't have the star behind it

Last edited by tomt : December 27th, 2001 at 11:58 AM.

Reply With Quote
  #5  
Old December 27th, 2001, 01:09 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> Thinks I figured out my problem.

No yet.

>> NameVirtualHost didn't have the star behind it

When you want Apache to listen to all available NICs (including the ones that map to 127.0.0.1, 192.168.0.1 and 12.34.56.78). Or when you have dynamic IP, then you should use NameVirtualHost *.

Your problem is, your domain didn't have wildcard enabled. bob.chcisp.com and www.bob.chcisp.com also not lookup'able. You might be able to look it up internally with /etc/hosts but people from elsewhere can't.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > vhosting problem


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