Re: 403 forbidden with lynx www browser

2015-11-23 Thread B.R.
*There is none so deaf than those who will not hear.* :o| ​Well​ if you two understand each other, find where nginx handles some user-agents differently than others. I am sure the developers would be more than glad to learn about it. Everyone is, actually. --- *B. R.* On Tue, Nov 24, 2015 at 12:00

Re: 403 forbidden with lynx www browser

2015-11-23 Thread Sylvain BERTRAND
On Mon, Nov 23, 2015 at 07:31:15PM +, Nelson, Erik - 2 wrote: > B.R. Monday, November 23, 2015 2:26 PM > On Mon, Nov 23, 2015 at 12:23 AM, Sylvain BERTRAND > wrote: > >>That's why I'm posting here: *Only nginx* www sites does block lynx. > >>Something > >>is not right there: a default aggres

Re: bug of discarding request body

2015-11-23 Thread Shuxin Yang
Hi, Maxim: Thank you so much for your insightful comment! Unbuffered-uploading not just to make things easier to reproduce the problem. It is trivial. So to speak. It is translating to say it is rather dangerous to use the unbuffered-uploading along with keepalive connections, as th

Re: Complex url rewriting

2015-11-23 Thread Aleksandar Lazic
Hi. Am 23-11-2015 18:48, schrieb lmauldinpe15: I have a single Nginx installation and I am using PHP-FPM to serve multiple PHP applications in sub directories. Example: /var/www/ (this is 'root') /var/www/a/foo/index.php /var/www/a/bar/index.php /var/www/b/bar/index.php I want to setup url

Re: Complex url rewriting

2015-11-23 Thread lmauldinpe15
Did you mean to use nested location blocks? I tried it but it didn't work. Here is the relevant part of my configuration file: # define web root root /var/www/html/public; index index.php index.html; location /index.php { location ~* (?:.*/index.php)(.*) { fa

Re: 400 Error on % !!

2015-11-23 Thread Francis Daly
On Mon, Nov 23, 2015 at 08:34:41PM +0100, B.R. wrote: > On Mon, Nov 23, 2015 at 9:40 AM, shahzaib shahzaib > wrote: Hi there, [mostly addressed to the original poster] > > Thanks for the reply, now we've tons of these URLs which are not > > properly encoded. > The only solution I find viable

Re: 403 forbidden with lynx www browser

2015-11-23 Thread B.R.
You missed the parts where Francis and I suggested about testing against nginx.org and/or nginx.com websites. Is those reply correctly, the nginx product is definitely not the source of the trouble. I could also provide you with domains I serve with nginx, which do not use any sort of user-agent fi

Re: Complex url rewriting

2015-11-23 Thread B.R.
Hello, You do not necessarily need to *redirect* *per se*, but you wish content to be served by your index.php files. Would location /index.php { location ~* (?:.*/index.php)(.*) { fastcgi_param SCRIPT_FILENAME $document_root$1; fastcgi_pass ; } } do the job? (untested) --

Re: 403 forbidden with lynx www browser

2015-11-23 Thread Francis Daly
On Mon, Nov 23, 2015 at 10:23:20AM +1100, Sylvain BERTRAND wrote: > On Sun, Nov 22, 2015 at 05:25:11PM +, Francis Daly wrote: Hi there, > > Probably they have configured their servers to deny any request that > > includes "libwww" in the User-Agent. > > I'm about to block sending the user ag

Re: 400 Error on % !!

2015-11-23 Thread B.R.
The '%' character has a meaning in the HTTP URI grammar, indicating that the following bytes are hexadecimal value representing a unicode character (see https://tools.ietf.org/html/rfc3986#section-2.1). If you try to implement what you suggest, you will basically corrupt URIs from someone tring to

RE: 403 forbidden with lynx www browser

2015-11-23 Thread Nelson, Erik - 2
B.R. Monday, November 23, 2015 2:26 PM On Mon, Nov 23, 2015 at 12:23 AM, Sylvain BERTRAND wrote: >>That's why I'm posting here: *Only nginx* www sites does block lynx. Something >>is not right there: a default aggressive blocking policy from nginx? >​There is a difference between 'only websites

Re: 403 forbidden with lynx www browser

2015-11-23 Thread B.R.
​Hello,​ On Mon, Nov 23, 2015 at 12:23 AM, Sylvain BERTRAND < sylvain.bertr...@gmail.com> wrote: > That's why I'm posting here: *Only nginx* www sites does block lynx. > Something > is not right there: a default aggressive blocking policy from nginx? > ​There is a difference between 'only websit

Re: Complex url rewriting

2015-11-23 Thread lmauldinpe15
Another note, on some of the application sub directories, I need to emulate this rule from .htaccess: RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php/$1 [QSA,L] Posted at Nginx Forum: https://forum.nginx.org/read.php?2,263024,263026#msg-263026 ___ nginx

Re: bug of discarding request body

2015-11-23 Thread Maxim Dounin
Hello! On Mon, Nov 23, 2015 at 09:26:46AM -0800, Shuxin Yang wrote: > Hi, Maxim: > > Thank you very much for the comment, and sorry for my long previous > email. > > I guess you might misunderstand my previous email. Basically what I try > to say > is that the *OLD* bug (ticket/669 as y

Complex url rewriting

2015-11-23 Thread lmauldinpe15
I have a single Nginx installation and I am using PHP-FPM to serve multiple PHP applications in sub directories. Example: /var/www/ (this is 'root') /var/www/a/foo/index.php /var/www/a/bar/index.php /var/www/b/bar/index.php I want to setup url rewriting so that any request to http://xxx/a/foo/i

Re: bug of discarding request body

2015-11-23 Thread Shuxin Yang
Hi, Maxim: Thank you very much for the comment, and sorry for my long previous email. I guess you might misunderstand my previous email. Basically what I try to say is that the *OLD* bug (ticket/669 as you mentioned) is seen on the *PRISTINE* *NEW* 1.9.7 release. The attached script

[ANN] OpenResty 1.9.3.2 released

2015-11-23 Thread Yichun Zhang (agentzh)
Hi guys, I am glad to announce the new formal release, 1.9.3.2, of the OpenResty bundle: https://openresty.org/#Download The first highlight of this release is the new *_by_lua_block {} directives added in the ngx_http_lua module. For example, instead of writing content_by_lua '

Re: 400 Error on % !!

2015-11-23 Thread shahzaib shahzaib
Hi, Thanks for the reply, now we've tons of these URLs which are not properly encoded. Can we redirect '%' request to the same URL by excluding '%' ? Such as http://domain.com/video/100%-working to http://domain.com/video/100-working Regards. Shahzaib On Mon, Nov 23, 2015 at 1:20 PM, nanaya

Re: 400 Error on % !!

2015-11-23 Thread nanaya
On Mon, Nov 23, 2015, at 05:17 PM, shahzaib shahzaib wrote: > Hi, > >We've encountered with 400 Bad request error on nginx reverse proxy in > front of apache. Here is the attached link : > > http://prntscr.com/95wlsl > > If we remove '%' from the URL, it works fine. What could be the issue

400 Error on % !!

2015-11-23 Thread shahzaib shahzaib
Hi, We've encountered with 400 Bad request error on nginx reverse proxy in front of apache. Here is the attached link : http://prntscr.com/95wlsl If we remove '%' from the URL, it works fine. What could be the issue ? Regards. Shahzaib Need to send me private email? I use Virtru