Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2002 21:11:39 -0500
From:      "DaleCo, S.P.---'the solutions people'" <daleco@daleco.biz>
To:        <idiot1@netzero.net>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Fw: directory structuer for a web server
Message-ID:  <028901c26e70$0a5bb510$fa00a8c0@DaleCoportable>

next in thread | raw e-mail | index | archive | help

Well, I hope we got that right..."send" went off before I'm ready....

KDK

From: "DaleCo, S.P.---'the solutions people'" <daleco@daleco.biz>
To: <idiot1@netzero.net>
Cc: <freebsd-questions@FreeBSD.ORG>
Sent: Monday, October 07, 2002 9:09 PM
Subject: Re: directory structuer for a web server


> From: "Kirk Bailey" <idiot1@netzero.net>
> Subject: Re: directory structuer for a web server
>
>
> > >
> > > where should one properly place the directory for the web pages
> in a web
> > > server,
> > > and is there a standard name for it? I have a box with several
> domains
> > > in it, so
> > > I created /www off of root, ant /www/www.foo.foo for each
domain
> > > under /www but
> > > I suspect this is not a standard solution. Any advice?
> >
> Your option sounds as valid as mine or most any other.  Some other
> layouts I've seen have a seperate partition for /home, so the
> virtual-
> hosted dirs are /home/clientname.
>
> I'm not a security guru, so my reason is not based on security, but
> I wouldn't go off of / on my box because / is generally a  much
> smaller
> partition; on most of my boxes /usr is 20x or more the size of the
> rootdir.
> I config apache to /usr/local/www/ and use name based VirtualHosts.
> So, the server's main pages are addressed at /usr/local/www/htdocs,
> and each
> virt-hosted client is at /usr/local/www/htdocs/clientabbreviation.
> Of course,
> I guess if I get too many more clients, this could become clunky.
>
> I link /usr/local/www/htdocs to /www, and each client folder to
> /clientabbreviation,
> so one relatively short command line gets me anywhere I'd like to
be.
> I do tend to be careful that folks aren't putting ".." links or
> commands
> in their dirs or scripts...although this shouldn't create problems,
> because a
> ".." command should go to /usr/local/www/htdocs, I'm pretty
paranoid,
> because, as I said, I'm not a guru when it comes to security...
>
> HTH,
>
> Kevin Kinsey, DaleCo, S.P.
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?028901c26e70$0a5bb510$fa00a8c0>