SunQuest
           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, 11:24 PM
a_angmoh a_angmoh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 4 a_angmoh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi

I see in the apache documentation that they always refer to the virtual host being at DocumentRoot /www/adomain. Is the www an alias to htdocs and then "adomain" is a sub directory within htdocs. I can't seem to find the www directory anywhere within apache.

Thanks Mat

Reply With Quote
  #2  
Old April 5th, 2001, 03:59 AM
afabsy afabsy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 36 afabsy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Lightbulb

Hi,

you're right folder www is the same as htdocs - it depends on Ur *nix/Apache installation. Nevertheless you can specify any folder on Ur system to www-root or root for Virtual Hosts.

Ciao

Reply With Quote
  #3  
Old April 5th, 2001, 05:53 AM
a_angmoh a_angmoh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 4 a_angmoh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
virtual server

So why is it when I config my virtual server like this and do a test it says can't find directoty /htdocs/domain and /htdocs/subdomain. I thought I could just create two sub dirs in the htdocs folder and put the repective sites in there.

Thanks Mat


NameVirtualHost 203.100.100.147

<VirtualHost 203.100.100.147>
ServerName URL
DocumentRoot /htdocs/domain
</VirtualHost>

<VirtualHost 203.100.100.147 >
ServerName sub.abc.com
DocumentRoot /htdocs/subdomain
</VirtualHost>

Reply With Quote
  #4  
Old April 9th, 2001, 10:38 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
>> DocumentRoot /htdocs/domain
>> DocumentRoot /htdocs/subdomain

Don't use relative path. Use full system path instead. Say www.abc.com is your default host with /home/httpd/htdocs (this is your docroot), your subdomain's docroot could be /home/httpd/htdocs/subdomain. If you do this, and <Directory "/home/httpd/htdocs"> is found somewhere in your httpd.conf, then you don't have to define <Directory "/home/httpd/htdocs/subdomain"> explicitly.

Reply With Quote
  #5  
Old April 10th, 2001, 11:18 AM
a_angmoh a_angmoh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 4 a_angmoh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>>"Don't use relative path. Use full system path instead. Say URL is your default host with /home/httpd/htdocs(this is your docroot)."

If i'm using apache for windows2000, would my docroot be something like "C:\program files\apache group\apache\htdocs". That's what is in the httpd.conf.

Therefor my virtual host would look something like this

<VirtualHost 203.100.100.147>
ServerName URL
DocumentRoot C:\program files\apache group\apache\htdocs
</VirtualHost>

This doesn't seem to work either.

Thanks Mat

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > virtual host


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