View Single Post

  #2 (permalink)  
Old 07-14-2003
The Other Guy
 
Posts: n/a
Default Re: Newbie - Directory Set-up Question

On Sun, 13 Jul 2003 17:59:06 GMT, The Other Guy responded to a post
from "JaiGuru" <nomail@hotmail.com> who wrote in
alt.apache.configuration:

>I would like to run an FTP program (I was thinking about using WarFTP) and
>Apache on my machine. What is the best way to set up the directories?


I haven't used WarFTP but I m assuming that it is like most other FTP
programs.

You install the FTP program and then create users, and assign them
permissions to directories based on rules (can they read, write,
and/or delete files from that directory).

>If I would like to update pages remotely, should my Web directories be
>inside my FTP directories?


Again, you create a user for yourself and assign access and
permissions to the directories (and subdirectories by default). You
may want to create a user that has access to the Apache

>I would also like to share my Web space with a few friends, but I don't want
>to give them access to all my Web files. Is there a way I can set-up the
>FTP program so they only go into their FTP space, but they can still have a
>public HTML file that will show up in a browser like an ISP does? (
>Example: www.mydomain.com/~friend )


Set a UserDir directive (look at the docs for this), and then in the
FTP limit the user to his/her home DIR. You have to decide what you
want to do with CGI -- give them access to the current cgi-bin, create
their own cgi-bin in their home DIRs, or whatever.

>I would also like to have some sub-domains (like sub.mydomain.com ). Does
>it matter where I put the directories for the sub-domain as long as they're
>in my main HTML files?


Review the documentation on Virtual Hosts. You can put the VH
DocumentRoot to wherever you want, or you can try using the Alias
directive (again, check out the documentation on this.

My suggestion would be to just go ahead and install the FTP and play
with it and get to know it before allowing users (other than yourself)
to access your machine through it. But the only way to learn, I feel,
is to go ahead and do it.

HTH
TOG

--
../configure --prefix=~/zyterion
Not this guy or that guy, The Other Guy.

This spot may contain a satirical comment or comedic source,
and is meant to be funny. If you are easily offended, gullible
or don't have a sense of humour we suggest you read elsewhere.