Disable output_buffering in nginx config

2016-12-07 Thread basti
Hallo, for one application i need to disable output_buffering in php.ini. In my opinion there is a better solution to disable it for the special location and not for system wide php. So i try to set fastcgi_param PHP_VALUE "output_buffering=Off"; but when i reload nginx and look at the app/ or

Re: Pretty printer for the Nginx config?

2016-08-27 Thread vasilevich
oops, I ment https://nginxbeautifier.com Posted at Nginx Forum: https://forum.nginx.org/read.php?2,250211,269236#msg-269236 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Pretty printer for the Nginx config?

2016-08-27 Thread vasilevich
well your formatter doesn't work anymore, here is a better one: https://nginxformatter.com and if you want to run it locally and/or view the source: https://github.com/vasilevich/nginxbeautifier available as a npm package. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,250211,269228#

Re: REST URLs and NGINX (config help needed)

2016-06-16 Thread Ben
On 16/06/2016 14:14, Edho Arief wrote: Hi On Thu, Jun 16, 2016, at 22:11, Edho Arief wrote: for /demo/ it prints "/demo/" and for /demo/hello/x it prints "/demo/hello" Which looks like their "auto base-path" is setting moving goalposts !! That doesn't make sense if you actually use my co

Re: REST URLs and NGINX (config help needed)

2016-06-16 Thread Edho Arief
Hi On Thu, Jun 16, 2016, at 22:11, Edho Arief wrote: > > > > for /demo/ it prints "/demo/" > > and > > for /demo/hello/x it prints "/demo/hello" > > > > Which looks like their "auto base-path" is setting moving goalposts !! > > > > That doesn't make sense if you actually use my configuration s

Re: REST URLs and NGINX (config help needed)

2016-06-16 Thread Edho Arief
Hi On Thu, Jun 16, 2016, at 22:06, Ben wrote: > > >> > >> If it helps, I'm using bramus router and my configured paths are as > >> follows : > >> > > > > Looks like the logic for getting base path is a bit interesting. Try > > this for related line: > > > > fastcgi_param SCRIPT_NAME /dem

Re: REST URLs and NGINX (config help needed)

2016-06-16 Thread Ben
>> >> If it helps, I'm using bramus router and my configured paths are as >> follows : >> > > Looks like the logic for getting base path is a bit interesting. Try > this for related line: > > fastcgi_param SCRIPT_NAME /demo/; > That didn't work unfortunatley. Just dug up their code and I see wh

Re: REST URLs and NGINX (config help needed)

2016-06-14 Thread Edho Arief
Hi On Wed, Jun 15, 2016, at 02:28, Ben wrote: > Hi, > > Based on scraps found in the NGINX docs, I have a semi-working config > that looks as follows : > > # > location /demo { > allow 10.0.0.0/8; > deny all; > try_files $uri @pdemo; > }

REST URLs and NGINX (config help needed)

2016-06-14 Thread Ben
owever bramus returns a 404, and it doesn't matter if I prefix the hello path with a forwad slash in bramus. Therefore I am guessing my nginx config is broken ? ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Pretty printer for the Nginx config?

2015-09-10 Thread pcfreak30
After frustration on this, I decided to make a simple web service to solve it. Please see http://www.nginxformatter.com :). Enjoy :) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250211,261555#msg-261555 ___ nginx mailing list nginx@nginx.o

Re: Rewrite rules in nginx config

2015-07-17 Thread dr.net
Hi Mike, thank's for reply. I haven't posted all the config because the server is maintained and I have to send to administrator only che rewrite config The php-fpm works Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260404,260408#msg-260408 _

Re: Rewrite rules in nginx config

2015-07-17 Thread Miguel C
On Fri, Jul 17, 2015 at 4:12 PM, dr.net wrote: > Hi all, > thank's to accept me in this forum. > > I'm a newbie... I have a problem with a rewrite rules that I imported from > apache > > This is my code > > > index home.php index.php; > location / { > rewrite ^/(.*)?$ /categories.php?cat=$1; > rew

Rewrite rules in nginx config

2015-07-17 Thread dr.net
Hi all, thank's to accept me in this forum. I'm a newbie... I have a problem with a rewrite rules that I imported from apache This is my code index home.php index.php; location / { rewrite ^/(.*)?$ /categories.php?cat=$1; rewrite ^/(.*).html?$ /game.php?game=$1; rewrite ^/(.*)/(.*).html?$ /ga

Re: Nginx config for wordpress in subfolder with rewrites for main folder

2015-04-15 Thread itpp2012
sip Wrote: --- > how do i make /blog/ only use its own rules and ignore everything > else.? Have you tried a location block for /blog/ at a position before other blocks start handling things ? Posted at Nginx Forum: http://forum.nginx.org/read

Nginx config for wordpress in subfolder with rewrites for main folder

2015-04-15 Thread sip
ion = /robots.txt { log_not_found off; access_log off; } } I have tried a load of different options to get this to work. I have posted these on stackoverflow which is possibly simpler than posting again here. thats here http://stackoverflow.com/question

Re: Fwd: NGINX config for websocket HA failover

2014-05-26 Thread Maxim Dounin
Hello! On Mon, May 26, 2014 at 05:51:11PM +0530, Hari Poludasu wrote: > Hi, > > > > I would like to use NGINX for failover in my HA setup. I have two VMs > running in Active-Active mode and listening on 9080 port for WebSocket > connections from clients. I would like to use NGINX to route all

Fwd: NGINX config for websocket HA failover

2014-05-26 Thread Hari Poludasu
Hi, I would like to use NGINX for failover in my HA setup. I have two VMs running in Active-Active mode and listening on 9080 port for WebSocket connections from clients. I would like to use NGINX to route all websocket traffic to route to VM1 and must route to VM2 only on failure of VM1. NGINX

Re: nginx config

2014-05-20 Thread B.R.
http://www.catb.org/esr/faqs/smart-questions.html --- *B. R.* On Tue, May 20, 2014 at 9:22 AM, shahin-slt wrote: > hi > i'm looking for best nginx config that work with php scripts. please help > me. > > Posted at Nginx Forum: > http://forum.nginx.org/read.php?2,2

nginx config

2014-05-20 Thread shahin-slt
hi i'm looking for best nginx config that work with php scripts. please help me. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250229,250229#msg-250229 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Pretty printer for the Nginx config?

2014-05-19 Thread Dustin Oprea
On Mon, May 19, 2014 at 7:37 PM, Lord Nynex wrote: > I do something similar to this in some backend config management code I > wrote awhile back. I've created a gist with some code snippets to help > understand how I'm reading/writing the config. > > https://gist.github.com/lordnynex/1a568e54b5d1

Re: Pretty printer for the Nginx config?

2014-05-19 Thread Lord Nynex
I do something similar to this in some backend config management code I wrote awhile back. I've created a gist with some code snippets to help understand how I'm reading/writing the config. https://gist.github.com/lordnynex/1a568e54b5d1af38f549 Obviously this is not what you're looking for, and p

Re: Pretty printer for the Nginx config?

2014-05-19 Thread Dustin Oprea
On Mon, May 19, 2014 at 7:12 PM, Lyle wrote: > It's kind of along the right lines, but I need to keep comments, etc. > Just have consistent whitespace more than anything else. > > You might write your own and make it available. Dustin > > Lyle > > > On 19/05/2014 19:59, Kurt Cancemi wrote:

Re: Pretty printer for the Nginx config?

2014-05-19 Thread Lyle
It's kind of along the right lines, but I need to keep comments, etc. Just have consistent whitespace more than anything else. Lyle On 19/05/2014 19:59, Kurt Cancemi wrote: Hello, Would this suit your needs? And the ngi

Re: Pretty printer for the Nginx config?

2014-05-19 Thread Kurt Cancemi
Hello, Would thissuit your needs? And the nginx configuration files are written in there own language/syntax. On Mon, May 19, 2014 at 2:49 PM, Lyle wrote: > Is there a pretty printer for this file? It doesn't seem to be in

Pretty printer for the Nginx config?

2014-05-19 Thread Lyle
Is there a pretty printer for this file? It doesn't seem to be in any particular language. I tried a JS beautifier but that broke things. Lyle ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: [SHOW'N'TELL] Primitive RBAC/AAA implementation in nginx config

2014-02-26 Thread Jonathan Matthews
On 26 Feb 2014 12:05, "Jonathan Matthews" wrote: > > Hi all - > > I spent some time poking at a interesting problem that came up last > night, and ended up with this primitive RBAC system, implemented in > declarative nginx config. Thanks to the couple of people who r

[SHOW'N'TELL] Primitive RBAC/AAA implementation in nginx config

2014-02-26 Thread Jonathan Matthews
Hi all - I spent some time poking at a interesting problem that came up last night, and ended up with this primitive RBAC system, implemented in declarative nginx config. You might find it useful, or might be able to tell me why it sucks hence how it could be improved ;-) Readme and config

Re: Inconsistency in ability to use variables in nginx config

2013-11-13 Thread Valentin V. Bartenev
On Wednesday 13 November 2013 10:25:44 miguel_hamster wrote: > It seems like it's possible to use variables in some configuration > directives but not in others. This works: > > root /usr/www/$sitename/httpdocs; > > works, while these: > > access_log /var/log/www/$sitename/access.log; This shou

Inconsistency in ability to use variables in nginx config

2013-11-12 Thread miguel_hamster
It seems like it's possible to use variables in some configuration directives but not in others. This works: root /usr/www/$sitename/httpdocs; works, while these: access_log /var/log/www/$sitename/access.log; proxy_cache $sitename; do not, instead generating errors when I try to restart nginx.

Re: nginx config: different projects in different directories

2013-10-06 Thread Jabba Laci
> Maybe try setting location /hello and /world would help? I tried that but it didn't work. Laszlo ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx config: different projects in different directories

2013-10-06 Thread Ruben LZ Tan
Maybe try setting location /hello and /world would help? Thanks, Ruben Tan On Monday, October 7, 2013 at 1:27 PM, Jabba Laci wrote: > Hi, > > I'm new to the list. I started to learn the Python web framework Flask > and I would like to try it in production environment too. I managed to > bring

nginx config: different projects in different directories

2013-10-06 Thread Jabba Laci
Hi, I'm new to the list. I started to learn the Python web framework Flask and I would like to try it in production environment too. I managed to bring Flask together with uwsgi and nginx. My Flask application is available at the address localhost:81 . I would like to add several applications and