Date: 05 Mar 2002 14:00:44 -0700 From: John-David Childs <freebsd@nterprise.net> To: Patrick Fish <patrick@pwhsnet.com> Cc: freebsd-isp@freebsd.org Subject: Re: Apache vhosts/user? Message-ID: <1015362045.14114.29.camel@lohr> In-Reply-To: <004e01c1c2f8$6e867cb0$0300a8c0@zeus> References: <004e01c1c2f8$6e867cb0$0300a8c0@zeus>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <virtual> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1015362045.14114.29.camel>