Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP!!!

Status
Not open for further replies.

roaringbiz

IS-IT--Management
Joined
Sep 11, 2004
Messages
4
Location
CA
HELP!!!!
I am having an almost impossible time setting up my virtual hosting... I got the htdocs to work.... i got the cgi-bin to work... but i can't get the error or accesss logs to work for each host
I have the directories as such

WEBSITES
Okanaganweb.com
HTDOCS
CGI-BIN
ERROR
LOGS
mnemonicrom.com
HTDOCS
CGI-BIN
ERROR
LOGS

It's important that each user get access to their own logs and error messages stored in their own directories... I can't figure out how to set it up and I've already read two books that don't go into it at all.

############### WEB HOSTINGS #################
<VirtualHost 154.5.79.246>
VirtualDocumentRoot D:/indigoperl/apache/WEBSITES/%0/HTDOCS
VirtualScriptAlias D:/indigoperl/apache/WEBSITES/%0/CGI-BIN
# ErrorLog D:/indigoperl/apache/WEBSITES/%0/ERROR/Error.log
# CustomLog D:/indigoperl/apache/WEBSITES/%0/LOGS/Access.log
</VirtualHost>

That is what I have now. Can anyone help me get this site working??

 
Is that the only IP on your machine or is it dedicated to that virtual host? Otherwise you need a ServerAlias directive.
 
Yes it's the only ip for this machine

the %0 takes the domain name from the directories.

I am really a newbie at all this. Can you tell me exactly how to get the ERROR and LOG files to work for each directory? as for server alias not sure how that one works on %0.
 
This setup is a lot like that used in mass virtual hosting where you just have one vhost container for all your virtual hosts. You can't have logs for each domain with this setup.
 
well how would i get it so I can have the LOGS and ERROR directories in the users directory. ie

okanaganweb.com <dir>
HTDOCS
CGI-BIN
ERROR <----wanted
LOGS <--also wanted

any ideas? Got a script code snippet or anything?

 
You can either have logs for each vhost or you can use mass virtual hosting, you can't have both.

If you want to provide logs for each, then you would need to specify each vhost separately in your httpd.conf.

Check the FAQ section of this forum, there are a load of FAQs about this. For future reference, please read the text right next to where you choose the subject for a new thread, it clearly states

"Please be descriptive. The subject "HELP!!!!" is not descriptive :-)"

Hope this helps

Wullie

Fresh Look - Quality Coldfusion Hosting

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top