Re: Using the mirror module

2018-03-13 Thread Roman Arutyunyan
On Tue, Mar 13, 2018 at 06:58:25PM -0300, Kenny Meyer wrote: > Hi Roman, > > > Are there any errors in error.log? > No errors… > > > And what happens if you switch www.example.com and staging.example.com? > Then I get redirected to staging.example.com and I don’t see any requests > being logged

Re: Using the mirror module

2018-03-13 Thread Peter Booth
This is the point where I would jump to using the debug log. You need to build you nginx binary with —with-debug switch and change the log level to debug innginx.conf. Debug generates a *huge* amount of logs but it really is invaluable. I would also want to double check what is actually happen

Re: Using the mirror module

2018-03-13 Thread Kenny Meyer
Hi Roman, > Are there any errors in error.log? No errors… > And what happens if you switch www.example.com and staging.example.com? Then I get redirected to staging.example.com and I don’t see any requests being logged on example.com > On 13 Mar, 2018, at 18:34, Roman Arutyunyan wrote: > >

Re: Using the mirror module

2018-03-13 Thread Roman Arutyunyan
Hi Kenny, On Tue, Mar 13, 2018 at 05:37:52PM -0300, Kenny Meyer wrote: > Hi, > > I’m having trouble using the new mirror module. I want to mirror incoming > requests from Nginx to other upstream servers. 1) a production server 2) a > staging server > > This is my config: > > server { >

Using the mirror module

2018-03-13 Thread Kenny Meyer
Hi, I’m having trouble using the new mirror module. I want to mirror incoming requests from Nginx to other upstream servers. 1) a production server 2) a staging server This is my config: server { listen 80 default_server; listen [::]:80 default_server; location / {

Re: I can not configure the python module through the official Nginx Unit documentation?

2018-03-13 Thread Valentin V. Bartenev
On Tuesday 13 March 2018 13:25:47 avpdnepr wrote: > root@instance-1:~# cat /root/unit_json/start.json > { > "listeners": { > "*:8300": { > "application": "blogs" > }, > "*:8301": { > "application": "cart" > } > }, > > "application

Handling URL with the percentage character

2018-03-13 Thread Anoop Alias
Hi, Is there a way URL like http://domain.com/%product_cat%/myproduct + to be passed as is to an Apache proxy backend. Currently, Nginx is throwing a 400 bad request error (which is correct), but the Apache httpd using a p

Re: I can not configure the python module through the official Nginx Unit documentation?

2018-03-13 Thread avpdnepr
root@instance-1:~# cat /var/www/app/index.py import sys def application(environ, start_response): body = sys.version.encode("utf-8") status = "200 OK" headers = [('Content-type','text/plain')] start_response(status, headers) return body root@instance-1:~# curl -X PUT -d @/roo

Re: I can not configure the python module through the official Nginx Unit documentation?

2018-03-13 Thread avpdnepr
root@instance-1:~# cat /root/unit_json/start.json { "listeners": { "*:8300": { "application": "blogs" }, "*:8301": { "application": "cart" } }, "applications": { "blogs": { "type": "php", "processes

Re: One upstream connection blocks another upstream connection

2018-03-13 Thread Maxim Dounin
Hello! On Tue, Mar 13, 2018 at 12:39:05PM +, l...@napatech.com wrote: > IБ─≥m investing a problem where I get delays in requests that is > proxied to an upstream service. > By looking at the debug log it seems that one request is > blocking the worker so it canБ─≥t complete another requests

Re: I can not configure the python module through the official Nginx Unit documentation?

2018-03-13 Thread Valentin V. Bartenev
On Tuesday 13 March 2018 12:43:10 avpdnepr wrote: > root@instance-1:~# ls -l /var/www/app > total 0 > root@instance-1:~# > So, you have no Python application in /var/www/app. What are you trying to run then and where it is? wbr, Valentin V. Bartenev ___

Re: I can not configure the python module through the official Nginx Unit documentation?

2018-03-13 Thread avpdnepr
root@instance-1:~# ls -l /var/www/app total 0 root@instance-1:~# Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279020,279027#msg-279027 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: I can not configure the python module through the official Nginx Unit documentation?

2018-03-13 Thread Valentin V. Bartenev
On Tuesday 13 March 2018 12:28:00 avpdnepr wrote: > { > "listeners": { > "*:8300": { > "application": "blogs" > }, > "*:8301": { > "application": "cart" > } > }, > > "applications": { > "blogs": { > "type": "ph

Re: I can not configure the python module through the official Nginx Unit documentation?

2018-03-13 Thread avpdnepr
{ "listeners": { "*:8300": { "application": "blogs" }, "*:8301": { "application": "cart" } }, "applications": { "blogs": { "type": "php", "processes": 20, "user": "www-php",

Re: I can not configure the python module through the official Nginx Unit documentation?

2018-03-13 Thread avpdnepr
Valentin V. Bartenev Wrote: --- > On Tuesday 13 March 2018 11:46:48 avpdnepr wrote: > > 2018/03/13 12:10:37 [info] 2220#2220 "example_python" application > started > > 2018/03/13 12:10:37 [emerg] 2220#2220 Python failed to import module > "wsgi" >

Re: I can not configure the python module through the official Nginx Unit documentation?

2018-03-13 Thread Valentin V. Bartenev
On Tuesday 13 March 2018 11:46:48 avpdnepr wrote: > 2018/03/13 12:10:37 [info] 2220#2220 "example_python" application started > 2018/03/13 12:10:37 [emerg] 2220#2220 Python failed to import module "wsgi" > 2018/03/13 12:10:37 [notice] 1625#1625 process 2220 exited with code 1 > 2018/03/13 12:10:37

I can not configure the python module through the official Nginx Unit documentation?

2018-03-13 Thread avpdnepr
2018/03/13 12:10:37 [info] 2220#2220 "example_python" application started 2018/03/13 12:10:37 [emerg] 2220#2220 Python failed to import module "wsgi" 2018/03/13 12:10:37 [notice] 1625#1625 process 2220 exited with code 1 2018/03/13 12:10:37 [warn] 1632#1632 failed to start application "example_pyth

Re: 1.13.9 compile errors

2018-03-13 Thread shiz
Maxim Dounin Wrote: --- > > The following patch should fix this, please test if it works for > you: > > # HG changeset patch > # User Maxim Dounin > # Date 1520919437 -10800 > # Tue Mar 13 08:37:17 2018 +0300 > # Node ID 649427794a74c74eca

One upstream connection blocks another upstream connection

2018-03-13 Thread Lars Jeppesen
Hi, I’m investing a problem where I get delays in requests that is proxied to an upstream service. By looking at the debug log it seems that one request is blocking the worker so it can’t complete another requests. If you look at the log below request *352 is handled by worker 18728. This wo

One upstream connection blocks another upstream connection

2018-03-13 Thread lje
Hi, I’m investing a problem where I get delays in requests that is proxied to an upstream service. By looking at the debug log it seems that one request is blocking the worker so it can’t complete another requests. If you look at the log below request *352 is handled by worker 18728. This

Upstream requests via proxies

2018-03-13 Thread Andrei
Hello everyone, I ran into a corner case with a project I'm fiddling with which requires making upstream requests via IP restricted 3rd party proxies (no auth). Would this, or anything similar even be possible? ___ nginx mailing list nginx@nginx.org http

Re: Routing based on ALPN

2018-03-13 Thread Roman Arutyunyan
Wiktor, On Wed, Mar 07, 2018 at 12:38:51PM +0100, Wiktor Kwapisiewicz via nginx wrote: > > below is the initial version of patch that creates the > > "$ssl_preread_alpn_protocols" variable; the content is a comma-separated > > list of protocols, sent by client in ALPN extension, if present. > > >