Welcome! Log In Create A New Profile

Advanced

Re: Nginx startup scripts

Mark Rogers
June 28, 2010 04:36AM
On 27/06/10 15:10, Rahul Bansal wrote:
>> > I note from the documentation that it is fairly simple to run multiple
>> > instances of nginx behind a proxy to allow different virtual hosts to be
>> > managed as different users (to prevent code on one site having read/write
>> > access to other sites).
>>
> Can u please share link to the page where you find that info?
> I am, from long time, thinking about replacing apache with nginx in
> shared-hosting environment.
>

I may have overstated the "fairly simple" as I haven't found specific
documentation, but I was referring to the comments at
http://wiki.nginx.org/NginxFaq
(extract below). I would like to see an example configuration myself if
anyone can point me in the right direction.

---
*Is support for chroot planned?*

Unknown at this time. Unless/until that changes, you can achieve a
similar - or better - effect by using OS-level features (e.g. BSD Jails,
OpenVZ w/ proxyarp on Linux, etc.).

*What about support for something like mod_suexec? What about support
for something like mod_suexec?*

mod_suexec is a solution to a problem that Nginx does not have. When
running servers such as Apache, each instance consumes a significant
amount of RAM, so it becomes important to only have a monolithic
instance that handles all one's needs. With Nginx, the memory and CPU
utilization is so low that running dozens of instances of it is not an
issue.

A comparable Nginx setup to Apache + mod_suexec is to run a separate
instance of Nginx as the CGI script user (i.e. the user that would have
been specified as suexec user under Apache), and then proxy to that from
the main Nginx instance.

Alternatively, PHP could simply be executed through FastCGI, which
itself would be running under a CGI script user account. (Note that
mod_php - the module suexec is normally utilized to defend against -
does not exist with Nginx.)
---


--
Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450
Registered in England (0456 0902) @ 13 Clarke Rd, Milton Keynes, MK1 1LG


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx startup scripts

Mark Rogers June 24, 2010 10:20AM

Re: Nginx startup scripts

Igor Sysoev June 24, 2010 10:30AM

Re: Nginx startup scripts

Mark Rogers June 24, 2010 11:38AM

Re: Nginx startup scripts

Rahul Bansal June 27, 2010 10:16AM

Re: Nginx startup scripts

Mark Rogers June 28, 2010 04:36AM

Re: Nginx startup scripts

mike June 28, 2010 12:04PM

Re: Nginx startup scripts

Mark Rogers June 28, 2010 12:22PM

Re: Nginx startup scripts

mike June 28, 2010 12:30PM

Re: Nginx startup scripts

Mark Rogers June 28, 2010 12:58PM

Re: Nginx startup scripts

rahul286 June 29, 2010 09:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 156
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready