[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Thread: Webdirectory standard



[This message is directed to fhs-discuss AND debian-devel lists]


Does this discussion belong to FHS ?

On Sun, 27 Oct 1996, Christoph Lameter wrote:
> 
> What are the standards for:
> 
> 1. The root directory of the webpages (I assume /var/web/webspace ?)
> 
> 2. The directory for cgi-bin? (Assumed /usr/lib/http/cgi-bin in my
> packages)
>

Mike Neuffer wrote:
> 
> We are using here         ~www/www           as root for www material.
> The cgi-bin directory is  ~www/www/cgi-bin/
> Users have their stuff in ~/www/
> The cache resides in      /var/www/          (maybe this should be
>                                              changed to /var/proxy
>                                              or /var/cache)
> and the logs in           /var/log/www/
> 

Christoph Lameter wrote:
> 
> I am not sure what you mean by the above.
> You need absolute paths I guess.
> I would not consider the main collection webpages to be userbound.
> /home directories usually have quotas on them and other tricks.

Mike Neuffer wrote:
> 
> www is a user, so you could expand those paths to
> /home/www/www
> and
> /home/www/www/cgi-bin
> 
> > I would not consider the main collection webpages to be userbound.
> > /home directories usually have quotas on them and other tricks.
> 
> We differenciate here.
> Our /home structure looks like this:
> 
> /home
> /home/staff
> /home/customers <---- this has quotas and resides on a seperate
>                       filesystem. In case of the WWW server, it is a
>                       nfs mounted filesystem.
> /home/customers/<customer>/www <---customers have their Web stuff in
>                                    here
> 
> /home/www       <---- Only available on the WWW server
> /home/www/www   <---- Since www is a user it makes sense to let him
>                       keep "his" files in a www directory too.
> 

Heiko Schlittermann wrote:
> 
> This way seems quite smart to me. 
> As keeping _application_ edited files/directories under /var/. 
> I'd assume, html-documents are mostly _user_ edited and should go
> somewhere under /home.  And since I'd see CGI scripts as html
> documents, I'd put them under /home too.


Christoph Lameter wrote:
> 
> There is an issue here of installing binaries / standard parts of
> binaries (f.e. man2html installs executables etc) in home. 
> I think it would be better (and conforming to the standards) to put
> the executable binaries in a standard location in /usr.
> 
> The webpages/ html code can be seen as editable application
> components and thus should be in /var
>

Mike Neuffer wrote:
> 
> I personally would not like to rip the natural hierachie of the www
> structure appart into two pieces.
> I'd rather move the whole structure to /var/www/www
> 
> The directory structure would like this:
> 
> /var/www/
> /var/www/www/
> /var/www/www/cgi-bin
> /var/log/www/
> /var/cache/
> 
> /usr/local/roxen
> /usr/local/ssl
>

Craig Sanders wrote:
> 
> I prefer /var/web for two reasons:
> 
> 1. it's what we've already got - nothing needs to change
> 
> 2. it's easier/quicker to pronounce - important when you're helping
>    someone by phone.

Mike Neuffer wrote:
> >
> > I prefer /var/web for two reasons:
> >
> > 1. it's what we've already got - nothing needs to change
> 
> /var/web in the current setup has one problem:
> If you have a user www where do you put his home directory ?
> 
> My structure implies that you have a www admin who maintains all the
> www files. From the security aspect this is important to do.
> 
> It is only natural that this www admin has a www directory, which
> is the root directory for the www hierarchie that is visible to the
> world just like the users have a www directory which contains files
> that are visible to the outside world.
> 
> > 2. it's easier/quicker to pronounce - important when you're helping
> >    someone by phone.
> 
> Maybe, but it is still the World Wide Web. BTW how many people
> operate their own WWW server ? Most people have a homepage on some
> machine and come never in touch with this.
> How much time do you need to pronounce "W W W" ? One second ?
> How long do you need for "web" ? Half a second ?
> 

Miquel van Smoorenburg wrote:
> 
> You (Heiko Schlittermann) wrote:
> > I'd assume, html-documents are mostly _user_ edited and should
> > go somewhere under /home. 
> > And since I'd see CGI scripts as html documents, I'd put them
> > under /home too.
> 
> But on a lot of sites /home is mounted over NFS, either directly or
> through AMD.. This is going to cause a lot of trouble!
> Just something to keep in mind.
>

Mike Neuffer wrote:
> 
> All of home ? We mount only directories underneath /home over NFS.
> That way it is easy to have local directories and multiple NFS
> mounts in there.
> 
> On the WWW server /home/www is a _local_ directory can can thus
> not cause NFS or even AMD trouble.


Christoph Lameter wrote:
> 
> All unchangeable files installed by any webtools are put into
> /usr/lib/httpd
> 
> Subdirectories of /usr/lib/httpd:
> 
> cgi-bin         Cgi bin utilities
> icons           Icons
> html            Html code
> 
> The server root can be anywhere but there are aliases in the server
> configuration that map the directories in /usr/lib/httpd into the
> server root.
> 
> Default location for webpages that are to be customized
> 
> /var/web
> 
> Below /var/web there are subdirectories for each virtual server.
> 
> /var/web/webspace is the real server
> /var/web/customera the virtual server root for customer A
> 
> The subdirectories can be symlinks to some other locations.
> And thus an upgrade of a webtools package might update a file
> in /var/web/webspace.
> 


As I can remember FHS has never discussed such a thing.
Nor the draft mentions Webspace.

Is it worth?


Fabrizio
-- 
+-------------------------------------------------------------+
| e-mail: fpolacco@megabaud.fi    fpolacco@debian.org         |
| http://megabaud.fi/~fpolacco/   Join the UKI Linux Project! |
| fingerprint 70 1A 72 2D 2B C8 A5 63 7A C2 CC E0 2A 54 AE DA |
| finger: fpolacco@megabaud.fi    fpolacco@master.debian.org  |
+-------------------------------------------------------------+


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: