Too many redirects

2017-09-14 Thread tseveendorj
Hi, I configured http (www, non-www) to https (non-www) and https (www) to https (non-www). It is working fine. But I need to add geoip redirection in location / but I got Too many redirect. This server is behind load balancer. LB is redirecting 80 to 81 and 443 to 80. server { liste

rewrite difficulty

2013-04-29 Thread tseveendorj
Hello, I have difficulty to convert apache like rewrite to nginx. This is my config file of virtualhost on nginx. http://pastebin.com/HTtKXnFy My installed php script should have following rewrite http://pastebin.com/M2h3uAt3 Currently any requested php code displayed it's source on browser

Rewrite

2016-04-05 Thread tseveendorj
Hello, I cannot do following request URL is http://domain.com/x4Zbs5B It should be http://domain.com/index.php?download=x4Zbs5B I tried location / { rewrite ^/([^/][a-zA-Z0-9]+)$ /index.php?download=$1 break; try_files $uri $uri/ /index.php?download=$uri;

Re: Rewrite

2016-04-06 Thread tseveendorj
Thank you Francis. It is working now. Sent from my Samsung device Original message From: Francis Daly Date: 06/04/2016 07:48 (GMT+08:00) To: nginx@nginx.org Subject: Re: Rewrite On Tue, Apr 05, 2016 at 08:11:44PM +0900, tseveendorj wrote: Hi there, > requ

Run time php variable change

2016-09-14 Thread Tseveendorj Ochirlantuu
Hello, I try to explain what I want to do. I have website which is needed php max_execution_time should be different on action. default max_execution_time = 30 seconds but I need to increase execution time 60 seconds on some location or action http://example.com/request Is it possible to do th

Re: Run time php variable change

2016-09-15 Thread Tseveendorj Ochirlantuu
location /foo { > >location ~ ^(.*.\.php)(.*)$ { > fastcgi_buffers 4 256k; > fastcgi_buffer_size 128k; > fastcgi_param PHP_VALUE "max_execution_time = 60"; >} > } > > Best Regards, > Basti > > > On 15.09.2016 02:41, Tseveen

Re: Run time php variable change

2016-09-15 Thread Tseveendorj Ochirlantuu
ls=0 > display_errors=0"; > > or > > fastcgi_param PHP_VALUE "register_globals=0\ndisplay_errors=0"; > > On 15.09.2016 09:26, Tseveendorj Ochirlantuu wrote: > > Hello, > > > > Basti thank you for help. > > > > Does this override syst

specific to index.php rest of them index.html

2016-10-03 Thread Tseveendorj Ochirlantuu
Hello, I need to configure some locations go to index.php rest go to index.html if ($request_uri !~ ^/(location1|location2|location3)$ ) { rewrite ^(.*) /index.html; } but how to else ? if the request contains location1, location2, location3 goes to fastcgi_pass 127.0.0.1:900

Re: specific to index.php rest of them index.html

2016-10-03 Thread Tseveendorj Ochirlantuu
nx.org/en/docs/http/ngx_http_core_module.html#location > > > On Mon, Oct 3, 2016 at 12:28 PM, Tseveendorj Ochirlantuu < > tseveend...@gmail.com> wrote: > >> Hello, >> >> I need to configure some locations go to index.php rest go to index.html >> >

exclude error_page on geoip

2016-11-02 Thread Tseveendorj Ochirlantuu
Hello, I need to use geoip module for allow specific region access to my website. But blocked users should see the error_page. Users are blocked and cannot see custom error_page. I don't want to see error_page from other domain. I need to except only error page which is not applied to geoip block

Re: exclude error_page on geoip

2016-11-04 Thread Tseveendorj Ochirlantuu
Thank you very much. It is working :) On Thu, Nov 3, 2016 at 9:18 PM, Maxim Dounin wrote: > Hello! > > On Thu, Nov 03, 2016 at 02:05:55PM +0800, Tseveendorj Ochirlantuu wrote: > > > Hello, > > > > I need to use geoip module for allow specific region access to my &g

Re: No Source RPMs for rhel package

2017-02-01 Thread Tseveendorj Ochirlantuu
Hi Source oos ni compile hiiheer amar yum shig sanagddag. You can compile from source http://nginx.org/download/nginx-1.10.3.tar.gz On Wed, Feb 1, 2017 at 4:25 PM Natsagdorj, Shagdar wrote: > Hi all, > > > > Is there a particular reason why there are no Source RPMs under > http://nginx.org/

Re: Too many redirects

2017-09-14 Thread Tseveendorj Ochirlantuu
Thank you Francis Daly. It works. On 15 Sep 2017 5:45 am, "Francis Daly" wrote: On Thu, Sep 14, 2017 at 11:54:23PM +0800, tseveendorj wrote: Hi there, > location / { > index index.html; > if ($geoip_country_code != "J

Re: rewrite difficulty

2013-08-01 Thread Tseveendorj Ochirlantuu
^(/.*)$ /index.php?do=$1; } } Is this right ? It works on my server. I'm confusing where I need to put this rewrite. Am I right ? On Tue, Apr 30, 2013 at 10:01 AM, Jonathan Matthews wrote: > On 30 April 2013 03:36, tseveendorj wrote: > > Hello, > > > > I have difficulty to c