Welcome! Log In Create A New Profile

Advanced

Re: alias, regex and try_files am i doing it wrong, or is this a bug?

January 16, 2012 01:37AM
Maxim Dounin Wrote:
-------------------------------------------------------
> Hello!
>
> On Thu, Jan 12, 2012 at 11:36:41PM -0500, takigama
> wrote:
>
> > Ok, i was trying to do drupal as a subdirectory
> on my site, but i've hit
> > a problem and I think its a bug. Im using 10.04
> ubuntu, the nginx ppa
> > with 1.0.11 nginx.
> >
> > If i have the following config's and i try to
> retrieve the file
> > http://mysite/drupal/somefile:
> >
> > location ~ /drupal(.*) {
> > index index.php;
> > alias /local_config/$1;
> > try_files $uri @drupalrewrite;
> > }
> >
> > The file nginx is apparently trying retrieve
> > "/local_config//somefile/drupal/somefile" rather
> then
> > "/local_config//somefile", which leads me to
> believe $uri isnt being set
> > correctly by nginx.
>
> Yes, this looks like a bug for me.
>
> (Internally, the problem is a bit complex, and I
> event tend to
> think that behaviour of try_files with alias in a
> regexp location
> is inherently undefined, but the example above
> should certainly
> work as expected.)
>

Thanks for confirming, was driving me a little nuts trying to work out why it was coming up with the paths it was using.

Regards
Subject Author Posted

alias, regex and try_files am i doing it wrong, or is this a bug?

takigama January 12, 2012 11:36PM

Re: alias, regex and try_files am i doing it wrong, or is this a bug?

Maxim Dounin January 13, 2012 07:54AM

Re: alias, regex and try_files am i doing it wrong, or is this a bug?

takigama January 16, 2012 01:37AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 315
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready