Pretty URLs in subfolders

Hi,

I’m very new to nginx and I’m having serious problems.

I have a number of applications on parts-unknown.org. Drupal,
Wordpress, mediawiki (the old wiki), dokuwiki (the new wiki), an
owncloud (v7), and a stikked (pastebin) instance. Pretty URLs aren’t
working at all and the guidance I’ve found on the web isn’t helping.

I’m just guessing that the non-pretty URLs don’t all use the same PHP
parameter, but I don’t even know how to find these parameters.

I have php-fpm working (as near as I can tell). It appears to work for
a GNU Social instance I have; the example configuration, which
includes a pretty URL fix similar to what I’ve seen suggested for
everything else that works for it.

I’m also completely mystified by the problem of nesting location
directives. As near as I can tell nginx just doesn’t let you do this.
I don’t understand what it’s attempting to stop me from doing and
again, the guidance I’ve found on the web hasn’t helped.

A lot of the example configurations I’ve found, adapted to my context,
seem to require nested locations. To me a location within a location
should be like a subfolder within a folder. nginx doesn’t appear
willing to let me do that.

So I tried moving the nested location directives out and fully
qualifying them. nginx doesn’t complain about this, but it also isn’t
handling the pretty URLs right.

Thanks!

On Fri, Feb 20, 2015 at 07:59:25PM -0800, David Benfell wrote:

Hi there,

I’m also completely mystified by the problem of nesting location
directives. As near as I can tell nginx just doesn’t let you do this.
I don’t understand what it’s attempting to stop me from doing and
again, the guidance I’ve found on the web hasn’t helped.

The documentation for the “location” directive is at
http://nginx.org/r/location

It describes where nesting does not work. Do you have an example where
nesting is documented to work, but it does not work for you?

There is other useful information linked from http://nginx.org/en/docs/

Can you show one example config that does not do what you want it to do
when you make a specific request?

f

Francis D. [email protected]