Re: Index fallback?

2016-10-09 Thread Edho Arief
Hi, On Mon, Oct 10, 2016, at 15:50, Nurahmadie Nurahmadie wrote: > > > > > > Still need more locations, but independent to directories you want to > > > access: > > > > > > > > > server { > > > listen 7770; > > > root /tmp; > > > autoindex on; > > >

Re: Index fallback?

2016-10-09 Thread Nurahmadie Nurahmadie
Hi, On Mon, Oct 10, 2016 at 1:39 PM, Edho Arief wrote: > Hi, > > On Mon, Oct 10, 2016, at 15:29, Nurahmadie Nurahmadie wrote: > > Hi > > > > > On Mon, Oct 10, 2016, at 15:08, Edho Arief wrote: > > > > Hi, > > > > > > > > On Mon, Oct 10, 2016, at 12:56, Edho Arief wrote: > > > > > I somehow can't

Re: Index fallback?

2016-10-09 Thread Edho Arief
Hi, On Mon, Oct 10, 2016, at 15:29, Nurahmadie Nurahmadie wrote: > Hi > > > On Mon, Oct 10, 2016, at 15:08, Edho Arief wrote: > > > Hi, > > > > > > On Mon, Oct 10, 2016, at 12:56, Edho Arief wrote: > > > > I somehow can't make this scenario work: > > > > > > > > root structure: > > > > /a/index.h

Re: Index fallback?

2016-10-09 Thread Nurahmadie Nurahmadie
Hi On Mon, Oct 10, 2016 at 1:19 PM, Edho Arief wrote: > Made a bit more compact but still using ifs. > > location / { > location ~ /$ { > error_page 418 = @dirlist; > > if (-d $request_filename) { > set $index_fallback A; > } > > if (!-f $request_f

Re: Index fallback?

2016-10-09 Thread Edho Arief
Hi, On Mon, Oct 10, 2016, at 15:23, Francis Daly wrote: > On Mon, Oct 10, 2016 at 12:56:57PM +0900, Edho Arief wrote: > > Hi there, > > untested, but... > > > accessing: > > 1. site.com/a -> redirect to site.com/a/ -> show /a/index.html > > 2. site.com/b -> redirect to site.com/b/ -> show @fall

Re: Index fallback?

2016-10-09 Thread Francis Daly
On Mon, Oct 10, 2016 at 12:56:57PM +0900, Edho Arief wrote: Hi there, untested, but... > accessing: > 1. site.com/a -> redirect to site.com/a/ -> show /a/index.html > 2. site.com/b -> redirect to site.com/b/ -> show @fallback > As a side note, > > error_page 404 = @fallback; > > Wouldn't work

Re: Index fallback?

2016-10-09 Thread Edho Arief
Made a bit more compact but still using ifs. location / { location ~ /$ { error_page 418 = @dirlist; if (-d $request_filename) { set $index_fallback A; } if (!-f $request_filename/index.html) { set $index_fallback "${index_fallback}B";

Re: Index fallback?

2016-10-09 Thread Edho Arief
Hi, On Mon, Oct 10, 2016, at 12:56, Edho Arief wrote: > I somehow can't make this scenario work: > > root structure: > /a/index.html > /b/ <-- no index.html > > accessing: > 1. site.com/a -> redirect to site.com/a/ -> show /a/index.html > 2. site.com/b -> redirect to site.com/b/ -> show @fallbac

Index fallback?

2016-10-09 Thread Edho Arief
I somehow can't make this scenario work: root structure: /a/index.html /b/ <-- no index.html accessing: 1. site.com/a -> redirect to site.com/a/ -> show /a/index.html 2. site.com/b -> redirect to site.com/b/ -> show @fallback Using try_files $uri $uri/index.html @fallback; doesn't work quite

Re: Allow PHPMyAdmin access on certain virtual hosts - Ubuntu and Nginx

2016-10-09 Thread Francis Daly
On Sun, Oct 09, 2016 at 12:50:50PM -0400, mrast wrote: Hi there, > I have no problem sharing the config files - ill just sanitize the actual > websites. But everything else is 100% as is. Thanks for this - it does give more information about what is happening. A few notes, with the order switch

Re: Allow PHPMyAdmin access on certain virtual hosts - Ubuntu and Nginx

2016-10-09 Thread mrast
Hi Francis, Its a brand new server setup. I have no problem sharing the config files - ill just sanitize the actual websites. But everything else is 100% as is. Here is the full nginx.conf file from /etc/nginx cat /etc/nginx/nginx.conf user www-data; worker_processes 1; worker_rlimit_nofile 10

Re: Clientbodyinfileonly - POST request is discarded

2016-10-09 Thread Francis Daly
On Fri, Oct 07, 2016 at 03:47:47PM -0400, yurai wrote: Hi there, > Unfortunately still it doesn't work as I expect - upload.txt file content is > not saved on server side in /tmp/nginx-client-body. Oh. Why do you expect that? I would only expect that to happen if I send the upload.txt file cont

Re: Allow PHPMyAdmin access on certain virtual hosts - Ubuntu and Nginx

2016-10-09 Thread Francis Daly
On Fri, Oct 07, 2016 at 10:20:51AM -0400, mrast wrote: Hi there, There are many ways that you might have configured things. Only you know the one way that you have configured things. Until you share that, there is not much that others can do. > If i remove the /phpmyadmin section from website1 c