On Tue, Sep 08, 2015 at 09:23:08AM -0500, Kristofer Pettijohn wrote:
Hi there,
> When I do that, and use "root" instead of "alias" inside of
> "location /grant", it works. However, inside of the path I need to
> create a symlink "ln -s . grant/" with how the root directive looks
> for any static
No - the last argument to try_files is different to the other arguments.
If this last argument is used, you get an internal redirect to the url
/grant/index.php?$args, and the appropriate location{} to handle that
request is chosen from scratch.
Which shows exactly what you see, which is not w
On Mon, Sep 07, 2015 at 06:48:57PM -0500, Kristofer Pettijohn wrote:
Hi there,
> > I suggest using a named location for handling the "not there" fallback
> > -- either as the final argument to try_files, or perhaps as "error_page
> > 404 = @fallback".
> >
> > Then
> >
> > location @fallback {
Thanks for the response.
> I suggest using a named location for handling the "not there" fallback
> -- either as the final argument to try_files, or perhaps as "error_page
> 404 = @fallback".
>
> Then
>
> location @fallback {
>fastcgi_param SCRIPT_FILENAME /apps/grant/index.php;
>includ
On Mon, Sep 07, 2015 at 11:23:32AM -0500, Kristofer Pettijohn wrote:
Hi there,
> I just want each location in each
> server to see /apps/grant/ as the root, and for try_files to process
> the index.php file in the base of that location last.
If I've understood you correctly, what you describe is
Is this the issue I might be experiencing when I try to use the alias directive?
https://trac.nginx.org/nginx/ticket/97
> On Sep 7, 2015, at 11:23 AM, Kristofer Pettijohn
> wrote:
>
> I am having a difficult time finding a solution for this.
>
> I have PHP applications that may be referenced
I am having a difficult time finding a solution for this.
I have PHP applications that may be referenced to from several websites, either
from root locations or sub locations.
For example:
server {
server_name domain.com;
location / {
... unrelated stuff ...
}
location /grant {
root /a