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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 4th, 2001, 12:10 AM
spinkick spinkick is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Riverside CA
Posts: 58 spinkick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to spinkick
I have edited the httpd.conf file to do virtual hosting. I have registered 3 domains, all pointing to the same ip, through zoneedit.com
This is how the name hosting part is configured on apache:


NameVirtualHost *

<VirtualHost *>
ServerName www.domain1.com
DocumentRoot /www/domain1.com
</VirtualHost>

<VirtualHost *>
ServerName www.domain2.com
DocumentRoot /www/domain2.com
</VirtualHost>

<VirtualHost *>
ServerName www.domain3.com
DocumentRoot /www/domain3.com
</VirtualHost>

It's strange... because all of the domains I have pointed to the server go to /www/domain1... they don't go to their specified directories, but go to only one, domain1

I would appreciate some help.

Reply With Quote
  #2  
Old April 4th, 2001, 01:43 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
>> all pointing to the same ip

So NameVirtualHost * that * should be that IP as well as the <VirtualHost your.ip.address.here>

>> because all of the domains I have pointed to the server go to /www/domain1

Say www.domain1.com is your default domain, you must remove DocumentRoot line that's not within any <VirtualHost> block.

Also, within each <VirtualHost your.ip.address.here>, there _should_ also be a <Directory "/www/domainx.com"> within it unless you have that defined globally (outside of <VirtualHost>).

Reply With Quote
  #3  
Old April 4th, 2001, 12:46 PM
spinkick spinkick is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Riverside CA
Posts: 58 spinkick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to spinkick
ok... so...

I should have <Directory "/www/domain2.com"> inside the <VirtualHost> </VirtualHost> for domain 2? along with all the info I had before?

Reply With Quote
  #4  
Old April 9th, 2001, 10:15 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
>> I should have <Directory "/www/domain2.com"> inside...

You must have it within <VirtualHost> or outside of <VirtualHost>. <Directory "/www/domain2.com"> must exists in your httpd.conf somewhere.

If the docroot of your default domain is /www, and domain2.com is a subdir of /www, then you don't have to because all the options and AllowOverride will be inherited from your default domain's docroot at /www.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Problems with virtual hosting on Apache... freebsd


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