virtual hosting on apache - two weeks later still not working

I appreciate the tips but to be honest the Apache docs on virtual hosting are pretty weak. Considering I have written some heavy accounting software for over 25 years and 2 weeks after starting this episode I have yet to get virtual hosting done, after reading dozens of pages at apache, their documentation just doesn't work. Perhaps the techniques do once you figure it out but their method of TEACHING a new webhoster HOW to do it are pretty weak. Docs should include full examples. Most of the time when they are describing directives I don't know what section to test their example: section 1? 3? in a virtual host block def? up on top? and as a result error messages crash all over the place and the vhosting has yet to work.


So, let's try this again.


I have a single ip address running on an NT platform. Let's call it 123.123.123.123


Off the root is a folder/subdirectory called \hosting


Under hosting is a seperate folder/subdir for each domain, called adomain.com, then another called bdomain.com, cdomain.com, ddomain.com etc.

Under that level (3 down from the root) is a \web folder where I place the INDEX.HTML and other webpages.

Under the \web folder is a folder called userscripts and another called pics (for photos) and another called data so the actual path to each area would be

index.html for adomain.com - \hosting\adomain.com\web\index.html and

userscripts for adomain.com - \hosting\adomain.com\web\userscripts\someperl.pl and

data (i.e. myguests.dat) for adomain.com -
\hosting\adomain.com\web\data\myguests.dat

AFTER I get the server to actually send pages when adomain.com is called THEN we need to address exec permissions for userscripts and read/write permissions for the data area but let's not get to far ahead of ourselves. Right now it would just be nice if I could call www.adomain.com and see a home page or www.bdomain.com and see another home page.


I have played with the vhost blocks, the Servernames, UseCanonicalName, the VirtualDocumentRoot settings etc. and read about mass vhosting with %2+ etc. but thus far have yet to get more than the primary (first) server to work.


Anyone want to take a crack at this or should I just keep stumbling along and wonder why I didn't use IIS? Is IIS easier than Apache for doing this? I KNOW it has some security problems but frankly I am getting fed up with stumbling around Apache's docs which don't list LONG FULL EXAMPLES. Anyone know a site out there that has LONG FULL EXAMPLES for doing this?

Thank you.

 

 

 

 

Top