Ruby Forum NGINX > nginx for webhosting company

Posted by Robert Gabriel (jinx)
on 31.08.2008 15:21
Is it possible to use nginx for a web hosting company, like every users
can set his/her "rewrite" options, without "restart" of nginx and
without need of root access. I am asking something on the idea like
shared hosting, or hosting similar to Cpanel hosting, but without Cpanel
of course.

If its possible, could anyone give me some examples?
Posted by Manlio Perillo (Guest)
on 31.08.2008 15:39
(Received via mailing list)
Robert Gabriel ha scritto:
> Is it possible to use nginx for a web hosting company, like every users
> can set his/her "rewrite" options, without "restart" of nginx and
> without need of root access. I am asking something on the idea like
> shared hosting, or hosting similar to Cpanel hosting, but without Cpanel
> of course.
> 
> If its possible, could anyone give me some examples?

This is not possible with Nginx.
You *need* to restart all the worker processes.

What you can do is to write a control panel that users can use to modify
the configuration for their hosts, but warning the user that each
modification will take effect only after n minutes.

Then you can setup a cron job that every n minutes check if
configuration files have been modified and send an HUP signal to nginx
master process.



Manlio Perillo
Posted by mike (Guest)
on 31.08.2008 20:39
(Received via mailing list)
Yeah or just check if something has been modified every minute via
cron too.

You'll run in to this in lighttpd or any other server without htaccess
support. It just depends on your business model and if you could force
users to specific URL patterns you could have easy checkbox style
"click here to enable wordpress friendly urls" etc.

On Aug 31, 2008, at 6:32 AM, Manlio Perillo <manlio_perillo@libero.it>
Posted by Sergej Kandyla (Guest)
on 01.09.2008 11:49
(Received via mailing list)
Robert Gabriel wrote:
> Is it possible to use nginx for a web hosting company, like every users
> can set his/her "rewrite" options, without "restart" of nginx and
> without need of root access. I am asking something on the idea like
> shared hosting, or hosting similar to Cpanel hosting, but without Cpanel
> of course.
>
> If its possible, could anyone give me some examples?
>   
Also, you could use nginx as reverse proxy for web hosting.
Some examples and howtos (for using nginx with DirectAdmin ) I've
written here:

http://www.directadmin.com/forum/showthread.php?t=27344
Posted by Sean Allen (Guest)
on 01.09.2008 18:02
(Received via mailing list)
incron will do the monitoring for you...