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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi Root Folders

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I hope I'm not Asking to many Q's but I'm trying to learn this stuff and the Read Me Files Of Apache Dont Seem to Make Sence ... ( To me Anyway )
Can there be more then one path for the DocumentRoot ?
e.g. C:/Apache/htdocs and C:/Apache/
One other thing is if I set up a free space service using something like homefree , What would be the path to perl ?
Right now its C:/perl/bin/perl , The new folders would be in a folder in my DocumentRoot which cgi/pl now works in those subfolders ( Thanks to the guys in my last post ).
Should I just Copy the perl folder and put it in my Htdocs folder or below and call the path htdocs/xxx/perl/bin/perl ???
Or i've seen alot of this e.g. user/bin/perl in here , How do i get my path to be something like that ?
Sry post is so long , but i know nothing about this , and the place's I try reading about this are not very clear ...
Thanks in Advance !
 
Hi mate,

You can use an alias directive for the document root. I think that is what you are asking anyway.

The path to perl is the same no matter where the document root is or what domain it is served from..

To use the path /usr/bin/perl you would need to reinstall perl to that location. Also, to use unix paths is no different, just change the paths to the unix style in your scripts.

Hope this helps Wullie

 
The system already knows the path to perl and you should have to tell every Tom, Dick and Harry that comes along. :eek:) I think what you want to do is offer free web space on your server and give users there own cgi-bin or access to cgi scripts, Is this right? Apache will let you set up a directory for each user within there home dir but this assumes you have system users that log onto you system. If you are using a script that provides this service, then you just have to set up the script and apache will treat it like another script. You may however need to create directories and set permissions so the script can do it's thing. As for multiple DocumentRoots, that would just be used for virtual hosting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top