Thank you Francis Daly. It works. On 15 Sep 2017 5:45 am, "Francis Daly" <francis@daoine.org> wrote: On Thu, Sep 14, 2017 at 11:54:23PM +0800, tseveendorj wrote: Hi there, > location / { > index index.html; > if ($geoip_country_code != "JP") { return 301 > https://example.com/en/; } > } > locatby Eberx - Nginx Mailing List - English
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 { listen 81; server_name www.example.com example.com; return 301 https://example.com$requeby Eberx - Nginx Mailing List - English
Thank you very much. It is working :) On Thu, Nov 3, 2016 at 9:18 PM, Maxim Dounin <mdounin@mdounin.ru> 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 > website. > > But blocked users should see the error_page. Users areby Eberx - Nginx Mailing List - English
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. How do this BR, Tseveen _______________________________________________ nginx mailing list nginx@by Eberx - Nginx Mailing List - English
This is for symfony2 project. location ~ /location1 { fastcgi things; } location ~ /location2 { fastcgi things; } location ~ /location3 { fastcgi things; } location / { index index.html; } Above examples how fit to symfony2 below. Mine is # dev location ~ ^(app_dev|config)\.php$ { fastcgi things; } # prod location ~ ^app.php { fastcgi things; } location ~ \.php {by Eberx - Nginx Mailing List - English
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:9000; if not contain go to /index.html regards, tseveen _______________________________________________by Eberx - Nginx Mailing List - English
Great. Thank you. On Thu, Sep 15, 2016 at 4:45 PM, basti <black.fledermaus@arcor.de> wrote: > It should work per location. I have nothing found in the docs at the > moment. > But be warned if you use more than one value here you must do something > like > > fastcgi_param PHP_VALUE "register_globals=0 > display_errors=0"; > > or > > fastcgi_paramby Eberx - Nginx Mailing List - English
Hello, Basti thank you for help. Does this override system wide or it applied to /foo location ? Best regards, Tseveen On Thu, Sep 15, 2016 at 4:20 PM, basti <black.fledermaus@arcor.de> wrote: > Hello, > > you can use "fastcgi_param PHP_VALUE" to change PHP values. > > For example: > > location /foo { > > location ~ ^(.*.\.php)(.*)$ { > fby Eberx - Nginx Mailing List - English
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 that on nginx to php-fpm ? Regards _______________________________________________ nginx mailing listby Eberx - Nginx Mailing List - English
Hello, Thank you for reply. I'm using round robin load balancing on nginx. I can see the how many connection is established on backend server. It shows for example backend server 1 = 100 connection backend server 2 = 99 connection Does it mean unique 199 connection ? or unique ~100 connection ? Is only ip_hash method for unique connection ?by Eberx - Nginx Mailing List - English
Hello, I would like to know how nginx proxy_pass works with upstream. I have 2 backend servers running. 1 nginx proxy running in front of them. My question is if one user connects to nginx proxy then nginx forward it to first backend ? or it forward it to both backend ?by Eberx - Nginx Mailing List - English
Hello, Thank you for advice. It is my fault. I did not define any default_server in my config.by Eberx - Nginx Mailing List - English
Francis Daly Wrote: ------------------------------------------------------- > On Mon, Aug 03, 2015 at 12:12:54AM -0400, Eberx wrote: > > Hi there, > > > I have many subdomains which is created into > /etc/nginx/sites-enabled. For > > example > > Your nginx.conf presumably has "include /etc/nginx/sites-enabled/*;" > so that these files areby Eberx - Nginx Mailing List - English
Hello, I have many subdomains which is created into /etc/nginx/sites-enabled. For example 1. www.example.com 2. music.example.com 3. video.example.com are already enabled. and working fine. But I tried to remove music.example.com from public access. Then I did music.example.com from sites-enabled folder but I can access to music.example.com. Site is still there. How do I fix this ?by Eberx - Nginx Mailing List - English
Hello, My understanding is on Apache rules like follow and convert it to nginx If anyone request anything except follow URI /file/, /install/, /design/, /plugins/, /phpmyadmin/ then nginx will forward anything to /index.php?do=anything RewriteCond %{REQUEST_URI} !^/file/.* RewriteCond %{REQUEST_URI} !^/install/.* RewriteCond %{REQUEST_URI} !^/design/.* RewriteCond %{REQUEST_URI} !^/plugins/.* Rby Eberx - Nginx Mailing List - English
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. How could I migrate ? Thanks. _______________________________________________ nginx mailing list nby Eberx - Nginx Mailing List - English
Hello, I have always difficulty with rewrite translating apache to nginx. <IfModule mod_rewrite.c> RewriteEngine On # # Full path to your site # RewriteBase / # Rename Photo Names RewriteRule ^file/pic/photo/([0-9]+)/([0-9]+)/({32}+)\-(.*?)([_0-9]*?)\.(.*)$ file/pic/photo/$1/$2/$3$5.$6 # # Rulesby Eberx - Nginx Mailing List - English
Dear Igor, You have converted apache rewrite to nginx. I appreciated very much for you. But I need redirecting request www to non-www in my rewrite. Please see your converted rewrite below. Any help will be appreciated. server { ... root /path/to/files; error_page 403 /index.php?do=/public/error/403/; error_page 404 /index.php?do=/public/error/404/; location /file/ { }by Eberx - Nginx Mailing List - English
On 11.07.23 23:05, Edho Arief wrote: > On Sat, Jul 23, 2011 at 9:33 PM, Tseveendorj Ochirlantuu > <tseveendorj@gmail.com> wrote: >> Dear Igor, >> I just tested rewrite but one thing did not work. When I'm >> accessing http://www.xac.mn/index.php?do=/mytunes/view/song_40/module_popout/ this >> popup but I got >> >> 404 Not Found >> >> ___by Eberx - Nginx Mailing List - English
Dear Igor, I just tested rewrite but one thing did not work. When I'm accessing http://www.xac.mn/index.php?do=/mytunes/view/song_40/module_popout/ this popup but I got 404 Not Found ------------------------------ nginx/0.7.65 on the screen.Above url is working on Apache with rewrite. I do not know difference between these two rewrites. ApacheRewriteRule ^(.*)$ /index.php?do=/$1 Nginxlocation ~by Eberx - Nginx Mailing List - English
Dear Igor, I have faced trouble on rewrite when new site installed on nginx. Most script has pre-configured rewrite on apache. Do you know what document is very useful for converting apache rewrite to nginx ? I will try learn for myself. Thank you. Tseveen. On Sat, Jul 23, 2011 at 4:31 PM, Tseveendorj Ochirlantuu < tseveendorj@gmail.com> wrote: > Dear Igor, > > Thank you for yby Eberx - Nginx Mailing List - English
Dear Igor, Thank you for your conversion. It is working now. I never imagine this apache rewrite would be like this. Thank you very much again. Tseveen. On Sat, Jul 23, 2011 at 4:18 PM, Igor Sysoev <igor@sysoev.ru> wrote: > On Sat, Jul 23, 2011 at 04:07:27PM +0900, Tseveendorj Ochirlantuu wrote: > > Hello, > > > > I'm trying to convert from apache to nginx rewrite.by Eberx - Nginx Mailing List - English
Hello, I'm trying to convert from apache to nginx rewrite. ErrorDocument 403 /index.php?do=/public/error/403/ ErrorDocument 404 /index.php?do=/public/error/404/ RewriteEngine On RewriteCond %{REQUEST_URI} !^/file/.* RewriteCond %{REQUEST_URI} !^/install/.* RewriteCond %{REQUEST_URI} !^/design/.* RewriteCond %{REQUEST_URI} !^/plugins/.* RewriteRule ^index.php(/.*)$ /index.php?do=$1 RewriteConby Eberx - Nginx Mailing List - English
On 2/28/2011 2:05 AM, Aditya Herlambang wrote: > I am getting the following error log: > > PHP Warning: Unknown: Failed to write session data (files). Please > verify that the current setting of session.save_path is correct > (/var/lib/php/session) in Unknown on line 0" while reading upstream, > client: 70.176.18.156, server: localhost, request: "POST > /phpMyAdby Eberx - Nginx Mailing List - English
Oh my bad. I did not input correct path of document root. I changed below config from fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name; to fastcgi_param SCRIPT_FILENAME /var/www/nginx-default $fastcgi_script_name; nginx-default is my document root. Thank you guys. On Feb 19, 12:26 pm, Eberx <tseveend...@gmail.com> wrote: > Thank you for information. :) > > On Fby Eberx - Php-fpm Mailing List - English
Oh God. I did wrong configuration on nginx. that was from fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name; to fastcgi_param SCRIPT_FILENAME /var/www/nginx-default $fastcgi_script_name; I did not input the correct path. Now phpinfo(); function working. Thank you guys. On Feb 3, 4:12 pm, "myuniverso.com" <khizars...@gmail.com> wrote: > please anyone reply mby Eberx - Php-fpm Mailing List - English
Thank you for information. :) On Feb 18, 10:48 pm, Jérôme Loyet <m...@fatbsd.com> wrote: > moreover since 5.3.5 libevent is no more used in FPM > > 2011/2/18 陈智宏 <zhihong.chen...@gmail.com>: > > > > > > > > > It's better to upgrade to 5.3.5, php-fpm is shipped. > > And upgrade from 5.2.x to 5.3.x is easy. > > > On Fri, Feb 18by Eberx - Php-fpm Mailing List - English
I faced trouble that do not make upgrade to 5.3.3 because I've a site that is very old CMS. I read most familiar function of PHP session_start(); deprecated since on release note of PHP 5.3.3 but my CMS has many session_start(); function. On Feb 18, 10:35 pm, 陈智宏 <zhihong.chen...@gmail.com> wrote: > It's better to upgrade to 5.3.5, php-fpm is shipped. > > And upgrade from 5.by Eberx - Php-fpm Mailing List - English
I have trouble cannot upgrade to 5.3.x because I've a site that is very old CMS. I read most familiar function of PHP session_start(); deprecated on the release note of php 5.3.3. My CMS has too many session_start(); . On Feb 18, 10:35 pm, 陈智宏 <zhihong.chen...@gmail.com> wrote: > It's better to upgrade to 5.3.5, php-fpm is shipped. > > And upgrade from 5.2.x to 5.3.x is eaby Eberx - Php-fpm Mailing List - English
I'm using Ubuntu 8.04.4. On Feb 18, 8:25 pm, Michael Shadle <mike...@gmail.com> wrote: > what OS? > > i don't have to feed --with-libevent on my setup, never have - using > the 5.2.x patch on Ubuntu and CentOS systems. > > > > > > > > On Fri, Feb 18, 2011 at 3:50 AM, Eberx <tseveend...@gmail.com> wrote: > > Hello, > > > I'm newbie onby Eberx - Php-fpm Mailing List - English