Welcome! Log In Create A New Profile

Advanced

Re: why my php file in subdirectory doesn't work?

Edho Arief
January 06, 2012 05:38AM
On Mon, Oct 17, 2011 at 11:19 PM, suttles <nginx-forum@nginx.us> wrote:
> Update on my problem.... if the URL is typed this way
> http://www.domain.com/subdirectory it will not pull up the site, but
> when the URL is typed http://www.domain.com/subdirectory/ the site comes
> up immediately. How to do force nginx to put the trailing slash onto the
> subdomains?
>

either

location = /subdirectory {
rewrite ^ $uri/?$args permanent;
}

or

try_files $uri $uri/ =404;

or

symlink in root instead of redefining root in location /subdirectory/

or

location /subdirectory {
...
}
##note that this one kind of not what you expect.
/subdirectorysomething will match this location.

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

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

why my php file in subdirectory doesn't work?

baalchina September 27, 2011 10:56PM

Re: why my php file in subdirectory doesn't work?

Simon Liu September 27, 2011 11:04PM

Re: why my php file in subdirectory doesn't work?

suttles October 11, 2011 10:53AM

Re: why my php file in subdirectory doesn't work?

Simon Liu October 11, 2011 11:18AM

Re: why my php file in subdirectory doesn't work?

suttles October 11, 2011 11:21AM

Re: why my php file in subdirectory doesn't work?

Simon Liu October 11, 2011 11:42PM

Re: why my php file in subdirectory doesn't work?

suttles October 12, 2011 02:19PM

Re: why my php file in subdirectory doesn't work?

suttles October 17, 2011 12:19PM

Re: why my php file in subdirectory doesn't work?

gigabyte January 06, 2012 02:37AM

Re: why my php file in subdirectory doesn't work?

hobson42 January 06, 2012 05:32AM

Re: why my php file in subdirectory doesn't work?

gigabyte January 06, 2012 06:39AM

Re: why my php file in subdirectory doesn't work?

Edho Arief January 06, 2012 06:42AM

Re: why my php file in subdirectory doesn't work?

gigabyte January 06, 2012 07:26AM

Re: why my php file in subdirectory doesn't work?

Edho Arief January 06, 2012 07:50AM

Re: why my php file in subdirectory doesn't work?

gigabyte January 06, 2012 08:46AM

Re: why my php file in subdirectory doesn't work?

Edho Arief January 06, 2012 08:50AM

Re: why my php file in subdirectory doesn't work?

gigabyte January 06, 2012 09:01AM

Re: why my php file in subdirectory doesn't work?

Edho Arief January 06, 2012 09:08AM

Re: why my php file in subdirectory doesn't work?

gigabyte January 06, 2012 09:23AM

Re: why my php file in subdirectory doesn't work?

Edho Arief January 06, 2012 05:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 235
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