Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: Trouble adding /pma location to all virtual hosts

$
0
0
On Thu, Jun 27, 2013 at 12:55:22PM -0400, Ben Johnson wrote:
> On 6/27/2013 12:42 PM, Ben Johnson wrote:

Hi there,

> location ~* /pma {
> return 301 /pma/;
> }
>
> With this block, the "main site" seems to function as expected, and all
> of the redirects that I identified previously work as expected.
>
> Is this "incorrect" for any reason?

If what you have works, it is correct enough.

Generally, the advice is that top-level (non-nested) regex locations
are bad because they tend to need more thinking when adding yet more
locations.

If you don't intend to add more locations, then this badness is
irrelevant.

f
--
Francis Daly francis@daoine.org

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

Viewing all articles
Browse latest Browse all 53287

Trending Articles