rewrite cycle
Francis Daly
francis at daoine.org
Thu Dec 15 13:18:55 UTC 2016
On Thu, Dec 15, 2016 at 02:30:17PM +0300, Руслан Закиров wrote:
Hi there,
> Below is default foswiki config that falls into "rewrite or internal
> redirection cycle while processing
> "/bin/view/bin/view/bin/view/bin/view/bin/view/bin/view/bin/view/bin/view/bin/view/bin/view/Main/WebHome"".
>
> This is Nginx 1.11.6.
>
> Any ideas?
It seems to do what it is configured to do.
What do you want it to do instead?
> location = / {
> root $foswiki_root;
> rewrite .* /Main/WebHome;
> }
> location ~ ^/([A-Z_].*)$ {
> rewrite ^/(.*)$ /bin/view/$1;
> }
One possibility it to change that location regex, which is currently
"everything", to instead be only what is wanted.
> location ~ ^/bin/([a-z]+) {
Another possibility is to move this location above the "regex everything"
one, so that most things that start with /bin/ will use this instead of
the other.
Cheers,
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list