Welcome! Log In Create A New Profile

Advanced

Re: rewrite except one directory

Francis Daly
February 16, 2014 04:50AM
On Sun, Feb 16, 2014 at 07:58:33AM +0100, Philipp Kraus wrote:

Hi there,

> So I would like to disable the rewrite for one subfolder. I have some PHP scripts with should not use the
> rewrite call e.g. http://myserver/scripts/script1.php. All scripts with are in the /script location should not
> use the rewrite to the index.
>
> How can I do this?

The same way any prefix-based nginx config would be done, unless there's
a reason it fails?

==
location ^~ /scripts/ {
# do your /scripts/ stuff
}
location / {
# do everything else
}
==

f
--
Francis Daly francis@daoine.org

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

rewrite except one directory

Philipp Kraus February 16, 2014 02:00AM

Re: rewrite except one directory

Francis Daly February 16, 2014 04:50AM

Re: rewrite except one directory

Philipp Kraus February 16, 2014 02:58PM

Re: rewrite except one directory

Jim Ohlstein February 16, 2014 03:40PM

Re: rewrite except one directory

Philipp Kraus February 16, 2014 03:56PM

Re: rewrite except one directory

Francis Daly February 16, 2014 04:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 73
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready