|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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> |
|
#4
|
|||
|
|||
|
>> 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. |
|
#5
|
|||
|
|||
|
>>"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 |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > virtual host |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|