I’ll take a look thanks. Understanding why I can no longer use the code
as before though would still be helpful.
Also, setting up a userdir sholdnt be this complicated. The lack of
multiple conditionals and other aspects to the config can be very
limiting I think the takeup on NGINX would be more if it was an
easier upgrade route where you could do things without spending hours
working out how to make a config for something that was “easy” on
apache.
I’ll take a look thanks. Understanding why I can no longer use the code
as before though would still be helpful.
Also, setting up a userdir sholdnt be this complicated. The lack of
multiple conditionals and other aspects to the config can be very
limiting I think the takeup on NGINX would be more if it was an
easier upgrade route where you could do things without spending hours
working out how to make a config for something that was “easy” on
apache.
IMO nginx is not suited (or not designed) for multiple user usage.
WRT the alias, it’s either bug or just as intended (I also hit this
error when trying this).
On Thu, 2009-06-18 at 14:09 +0700, Edho P Arief wrote:
IMO nginx is not suited (or not designed) for multiple user usage.
i have a system with just a few users with some homedirectories
(no php in home area). so because I have more than 1 single site, I
should not use nginx? Reasons I needed nginx were due to lousy apache
performance. Perhaps NGINX should support such setups better. Lighttpd
is of course available, but i had read good things about nginx (and the
performance has been very impressive)
WRT the alias, it’s either bug or just as intended (I also hit this
error when trying this).
the lack of documentation when functionality has changed is a bit of an
issue. this used to work, now it doesnt. Would be great if it said that
somewhere. I realise there are some language barriers, but there are
enough users of NGINX now that things like this need to be addressed.
locaiton ~ ^/~([^/]+)(/?.)$) { (i changed to location ~ ^/~([^/]+)(/?.)$ {)
alias /home/$1/public_html/$2;
autoindex on;
}
this works well thanks. Are there any security risks with this? For
example could it be abused to gain access to another folder by using a
specific path ?
On Sat, Jun 20, 2009 at 04:27:58PM +0100, Jools W. wrote:
On Thu, 2009-06-18 at 11:41 +0400, Igor S. wrote:
locaiton ~ ^/~([^/]+)(/?.)$) { (i changed to location ~ ^/~([^/]+)(/?.)$ {)
alias /home/$1/public_html/$2;
autoindex on;
}
this works well thanks. Are there any security risks with this? For
example could it be abused to gain access to another folder by using a
specific path ?
nginx normilizes “…” in URI, i.e., “/~user/…/dir/file” becomes
“/dir/file” and will not match this location.
“/~user/dir/…/file” becomes “/~user/file” and will be mapped by “alias”
to “/home/user/public_html/file”.