From owner-freebsd-isp Tue Mar 5 13: 1:17 2002 Delivered-To: freebsd-isp@freebsd.org Received: from dns2.digitalglobe.com (dns2.digitalglobe.com [205.166.175.35]) by hub.freebsd.org (Postfix) with ESMTP id 2F48E37B4CF for ; Tue, 5 Mar 2002 13:01:07 -0800 (PST) Received: from lohr.digitalglobe.com (lohr.digitalglobe.com [10.10.11.18]) by dns2.digitalglobe.com (8.11.4/8.11.4) with ESMTP id g25L0is18349; Tue, 5 Mar 2002 14:00:45 -0700 (MST) Subject: Re: Apache vhosts/user? From: John-David Childs To: Patrick Fish Cc: freebsd-isp@freebsd.org In-Reply-To: <004e01c1c2f8$6e867cb0$0300a8c0@zeus> References: <004e01c1c2f8$6e867cb0$0300a8c0@zeus> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2-4mdk Date: 05 Mar 2002 14:00:44 -0700 Message-Id: <1015362045.14114.29.camel@lohr> Mime-Version: 1.0 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org My opinion, fwiw (I've been running ISP's since 1993 ;-): On Sun, 2002-03-03 at 14:13, Patrick Fish wrote: > Would it be a good idea to have customers vhosts run under > their username, instead of 'nobody'? I guess I don't understand. The webserver should always run as 'nobody' (or 'httpd' or 'www'...I usually set up my own unpriviledged user to run the webserver). To run webservers as a customer would potentially require multiple webservers, or a really whacked out config. Now if what you meant was "should the *content* of a customer vhost be run under their username or somewhere else on the filesystem", I say yes. It's even possible for a single customer to have multiple vhosts under their own ~public_html/ >Also, should they place cgi-bin inside or outside of ~/public_html? I always have them place it outside of the *content* area for their vhost, but inside ~public_html/ So, for instance, you'd have something like this: ~joeuser/ ~joeuser/public_html ~joeuser/public_html/cgi-bin ~joeuser/public_html/vhost1 ~joeuser/public_html/vhost1/website files here ~joeuser/public_html/vhost2 Then, just use appropriate "ScriptAlias" directives in your apache.conf. > - > Patrick Fish - patrick at pwhsnet dot com > PWHS Networks - http://www.pwhsnet.com > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.325 / Virus Database: 182 - Release Date: 2/19/2002 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message