Re: Custom HTTP protocol response?

2024-06-15 Thread J Carter
ng HTTP manipulation with js_filter here[2], albeit for injecting a custom header, but the same approach would with the 'download' callback. The Stream module itself can do TLS offloading[3], now has Virtual Servers[4], and now has direct pass to http listener feature[5] making such hacks mor

Re: Custom HTTP protocol response?

2024-06-13 Thread Kirill A . Korinsky
On Mon, 10 Jun 2024 09:56:05 +0100, Martin Kjær Jørgensen via nginx wrote: > > > Is this possible without hacking nginx sources or manipulative intermediate > proxies? > As you may see in ngx_http_header_filter_module.c such string is hardcoded. -- wbr, Kirill ___

Custom HTTP protocol response?

2024-06-10 Thread Martin Kjær Jørgensen via nginx
Hi, I'm experimenting with nginx to have it respond in an incompatible wait to a HTTP client. A normal response would be like the usual: HTTP/1.1 200 OK Content-Type: text/plain ... I would like to modify the HTTP response to this instead, using nginx and perhaps some lua scripting if needed:

Re: Custom redirect for one page from https to http with different name.

2024-01-09 Thread Francis Daly
On Mon, Jan 08, 2024 at 02:22:14PM -0500, James Read wrote: Hi there, > how would I redirect https://example.com/oldname.php to > http://example.com/newname.php Within the https server{} block: location = /oldname.php { return 301 http://example.com/newname.php; } should do it. (Other 30x

Custom redirect for one page from https to http with different name.

2024-01-08 Thread James Read
Hi, how would I redirect https://example.com/oldname.php to http://example.com/newname.php Thanks ___ nginx mailing list nginx@nginx.org https://mailman.nginx.org/mailman/listinfo/nginx

Custom scheme/protocol

2023-10-21 Thread Sam Hobbs
Are there any articles and/or samples of a custom scheme or protocol? What I mean by scheme or protocol is the first part of an URL, such as HTTP and FTP. What is necessary to develop a custom protocol in a server? This is not important. It is something I have been curious about for years. I

Re: Running ssl on custom port and its not working

2022-11-17 Thread Sergey A. Osokin
Hi, On Thu, Nov 17, 2022 at 12:58:31PM -0500, blason wrote: > Nothing interesting as such however below is the curl output from nginx > server > > curl -I https://xxx..xxx:8081/neutrino-sso-web > HTTP/1.1 302 Found > Date: Thu, 17 Nov 2022 17:57:10 GMT > Server: JBoss-EAP/7 > Strict-Transport

Re: Running ssl on custom port and its not working

2022-11-17 Thread Francis Daly
On Thu, Nov 17, 2022 at 12:58:31PM -0500, blason wrote: Hi there, > Nothing interesting as such however below is the curl output from nginx > server How sure are you that this response came from your nginx server? > curl -I https://xxx..xxx:8081/neutrino-sso-web The nginx config you showed

Re: Running ssl on custom port and its not working

2022-11-17 Thread blason
Nothing interesting as such however below is the curl output from nginx server curl -I https://xxx..xxx:8081/neutrino-sso-web HTTP/1.1 302 Found Date: Thu, 17 Nov 2022 17:57:10 GMT Server: JBoss-EAP/7 Strict-Transport-Security: max-age=63072000; includeSubDomains; preload X-Powered-By: Underto

Re: Running ssl on custom port and its not working

2022-11-16 Thread Sergey A. Osokin
Hi, thanks for the report. On Wed, Nov 16, 2022 at 01:04:45PM -0500, blason wrote: [...] > My stanza is as below; however this is not working and I am getting > > ## > This site can’t provide a secure connection > xxx...xxx sent an invalid response. > ERR_SSL_PROTOCOL_ERROR > ###

Running ssl on custom port and its not working

2022-11-16 Thread blason
Hi Team, I have current URL as https://xxx.xxx.xxx:8081/neutrino-sso-web/ which is directly natted on firewall on pot 8081 However I now would like to put this URL behind nginx reverse proxy. Since the above URL is given to lot many customers it would not be possible to change the URL. we are plan

Re: Custom 413 error pages when client_max_body_size exceeded

2022-10-21 Thread Dan G. Switzer, II
II wrote: >> Sorry, that was a typo from the tweak to the real file names. The file >> extensions matched in my test and I got the custom 404 error page. > > Dan, > > follow that everything works fine, could you confirm. Thank

Re: Custom 413 error pages when client_max_body_size exceeded

2022-10-20 Thread Sergey A. Osokin
On Thu, Oct 20, 2022 at 04:25:33PM -0400, Dan G. Switzer, II wrote: > Sorry, that was a typo from the tweak to the real file names. The file > extensions matched in my test and I got the custom 404 error page. Dan, follow that everything works fine, could you confirm. Thank you. -- Se

Re: Custom 413 error pages when client_max_body_size exceeded

2022-10-20 Thread Dan G. Switzer, II
Sorry, that was a typo from the tweak to the real file names. The file extensions matched in my test and I got the custom 404 error page. On 10/20/2022 4:22 PM, Frank Swasey wrote: You do realize you redirected to .htm and specified .html in the location, right? On Thu, Oct 20, 2022 at 14

Re: Custom 413 error pages when client_max_body_size exceeded

2022-10-20 Thread Frank Swasey
ll_put_path on; > dav_access group:rw all:r; > } > > location = /404_status_code.html { > internal; > root /path/to/my/custom/errors; > } > > location = /413_status_code.html { > internal; > root /path

Re: Custom 413 error pages when client_max_body_size exceeded

2022-10-20 Thread Sergey A. Osokin
On Thu, Oct 20, 2022 at 02:01:44PM -0400, Dan G. Switzer, II wrote: > Thanks for taking the time to respond. That's not working for me. I > tried the following: [...] > The 404 works fine, but sending more than 10k to the request still > returns the default nginx page. [...] > Is there a good

Re: Custom 413 error pages when client_max_body_size exceeded

2022-10-20 Thread Dan G. Switzer, II
e.htm;     location /upload {     dav_methods  PUT;     create_full_put_path   on;     dav_access group:rw  all:r;     }     location = /404_status_code.html {     internal;     root /path/to/my/custom/errors;     }     location = /413_status_code.html {     int

Re: Custom 413 error pages when client_max_body_size exceeded

2022-10-20 Thread Sergey A. Osokin
Hi Dan, thanks for the report. On Thu, Oct 20, 2022 at 09:04:31AM -0400, Dan G. Switzer, II wrote: > I'm using nginx/1.20.1 under CentOS Linux release 7.9.2009 (Core) and I > cannot get a custom error page to show when the client_max_body_size > limit has been exceeded. The bro

Custom 413 error pages when client_max_body_size exceeded

2022-10-20 Thread Dan G. Switzer, II
I'm using nginx/1.20.1 under CentOS Linux release 7.9.2009 (Core) and I cannot get a custom error page to show when the client_max_body_size limit has been exceeded. The browser will only return the default nginx error page. I see a number of posts mentioning how there was a bug in ea

Load balancing with custom configuration fields

2022-09-22 Thread Devashi Tandon
Hi, We have a custom configuration for a private server defined as: ext_private_server http://private-server:8050; under the server block. This configuration is parsed by our custom nginx module, and then we create a socket to send packets to the server port. We were wondering if we can

Re: Can't add custom library path while compiling nginx from source on Windows

2021-09-16 Thread Francis Daly
On Wed, Sep 15, 2021 at 11:50:10PM -0400, John Moreira wrote: Hi there, > I'm trying to compile nginx from source code on Windows with xslt support. > I followed all of the directions from the official page > http://nginx.org/en/docs/howto_build_on_win32.html to a tee and it works > when I do not

Can't add custom library path while compiling nginx from source on Windows

2021-09-15 Thread John Moreira
Hello, I'm trying to compile nginx from source code on Windows with xslt support. I followed all of the directions from the official page http://nginx.org/en/docs/howto_build_on_win32.html to a tee and it works when I do not specify --with-http_xslt_module When specifying --with-http_xslt_module a

Re: Custom

2021-09-15 Thread Francis Daly
On Tue, Sep 14, 2021 at 05:04:43PM +, Mohit Joshi wrote: Hi there, >Looking for a custom configuration block for my module, since this needs > to be applied to all servers so wanted to block inside http as in > MY_MODULE_CONFIGURATION below. I suspect that you will find more

Custom

2021-09-14 Thread Mohit Joshi
Dear experts Need a help on a custom configuration block directive. I have created a dynamic module for logging (some specific features). Looking for a custom configuration block for my module, since this needs to be applied to all servers so wanted to block inside http as in

Getting intermediate client certificates with custom module

2021-02-04 Thread bouvierh
Nginx. Digging around a bit, I found out that getting the cert chain through an environment variable is not possible: https://forum.nginx.org/read.php?2,288553,288553#msg-288553. However, if I write a custom module, is it possible to get the intermediate certificate? Would you know which place i

Re: configuration test ignores custom resolver

2020-09-07 Thread Francis Daly
the "resolver"-directive resolver at runtime, to resolve whatever other hostnames apply then. http://nginx.org/r/proxy_pass has some information about when a resolver is used. > But everything go wrong... > > On strace output I see, that on start Nginx uses system resolver, ignor

configuration test ignores custom resolver

2020-09-06 Thread Anton Demenev
And I use proxy_pass directive with DNS name likeproxy_pass http://front-dev.develop; I expect, that Nginx start to use resolver for upstream name resolving on test config stage. But everything go wrong... On strace output I see, that on start Nginx uses system resolver, ignoring c

Using custom glibc for compilation

2020-05-27 Thread Mahmood Naderan
Hi I want to install nginx with a custom glibc version. I have installed that from source and for nginx, I tried $ GLIBCDIR=/opt/glibc-2.23-install $ ./configure --prefix=/home/mahmood/kernel-4.19.119/glibc223/install --with-ld-opt="-Wl,--emit-relocs" $ make && make install

Re: Problem installing in custom folder when Perl is enabled

2020-03-15 Thread Martin Grigorov
Thank you for the answer, Maxim! Regards, Martin On Fri, Mar 13, 2020 at 4:22 PM Maxim Dounin wrote: > Hello! > > On Fri, Mar 13, 2020 at 03:12:35PM +0200, Martin Grigorov wrote: > > > I'm facing the following problem when I try to install Nginx in a custom > > f

Re: Problem installing in custom folder when Perl is enabled

2020-03-13 Thread Maxim Dounin
Hello! On Fri, Mar 13, 2020 at 03:12:35PM +0200, Martin Grigorov wrote: > I'm facing the following problem when I try to install Nginx in a custom > folder: [...] > make[1]: Entering directory '/home/ubuntu/hg/nginx/nginx' > cd objs/src/http/modules/perl &&am

Problem installing in custom folder when Perl is enabled

2020-03-13 Thread Martin Grigorov
Hello Nginx team, I'm facing the following problem when I try to install Nginx in a custom folder: ... objs/ngx_modules.o \ -ldl -lpthread -lcrypt -lpcre -lssl -lcrypto -ldl -lpthread -lz -lxml2 -lxslt -lexslt -lgd -lGeoIP \ -Wl,-E -fstack-protector-strong -L/usr/local/lib -L/usr/lib/aa

Custom Sticky Module development

2019-11-06 Thread bob bob
read the list of availables pods from Redis instead of the in memory list of all upstreams server. Questions : 1. Does it seems feasible ? 2. It is better to overwrite the sticky module and edit its code (seems to be a built-in module) 3. Is it better to develop and load a custom

Re: RE: Setting a custom header based on another upstream/sent header

2019-08-22 Thread fevangelou
Thank you Reinis - that did it :) Posted at Nginx Forum: https://forum.nginx.org/read.php?2,285363,285374#msg-285374 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

RE: Setting a custom header based on another upstream/sent header

2019-08-22 Thread Reinis Rozitis
> Is this expected behaviour? Could there be another way to do this? 'if' (the rewrite module) is executed in early stages when $sent_* variables are not available that’s why the regex doesn't match. What you could do is use 'map' instead: (http://nginx.org/en/docs/http/ngx_http_map_module.html

Setting a custom header based on another upstream/sent header

2019-08-22 Thread fevangelou
Hi there, I'm trying (unsuccessfully) to read an upstream/sent response header and set an additional one based on some regex. Let's say I want to check if the site served is WordPress. WordPress will usually output a link header like this: link: ; rel="https://api

Re: How to configure Nginx LB IP-Transparency for custom UDP application

2019-07-19 Thread Aleksandar Lazic
Am 16.07.2019 um 13:29 schrieb Jeya Murugan: > @all : Can someone help /point-out what i have missed in > proxy_protocol > here?  the proxy protocol is only designed for tcp not udp. > > I am using *NGINX 1.13.5 as a Load Balancer for one of my >

Re: How to configure Nginx LB IP-Transparency for custom UDP application

2019-07-19 Thread Francis Daly
On Fri, Jul 12, 2019 at 11:44:22PM +0530, Jeya Murugan wrote: > On Tue, Jul 9, 2019 at 8:41 PM Roman Arutyunyan wrote: Hi there, > > > I am using *NGINX 1.13.5 as a Load Balancer for one of my > > > CUSTOM-APPLICATION *which will listen on* UDP port 2231,67 and 68.* > &

Re: How to configure Nginx LB IP-Transparency for custom UDP application

2019-07-16 Thread Jeya Murugan
> > @all : Can someone help /point-out what i have missed in proxy_protocol >> here? >> >> > I am using *NGINX 1.13.5 as a Load Balancer for one of my >> > CUSTOM-APPLICATION *which will listen on* UDP port 2231,67 and 68.* >> > >> &g

Re: How to configure Nginx LB IP-Transparency for custom UDP application

2019-07-12 Thread Jeya Murugan
On Tue, Jul 9, 2019 at 8:41 PM Roman Arutyunyan wrote: > Hi, > > On Tue, Jul 09, 2019 at 05:55:39PM +0530, Jeya Murugan wrote: > > Hi all, > > > > > > I am using *NGINX 1.13.5 as a Load Balancer for one of my > > CUSTOM-APPLICATION *which will listen on*

Re: How to configure Nginx LB IP-Transparency for custom UDP application

2019-07-09 Thread Roman Arutyunyan
Hi, On Tue, Jul 09, 2019 at 05:55:39PM +0530, Jeya Murugan wrote: > Hi all, > > > I am using *NGINX 1.13.5 as a Load Balancer for one of my > CUSTOM-APPLICATION *which will listen on* UDP port 2231,67 and 68.* > > I am trying for Load Balancing with IP-Transparency. >

How to configure Nginx LB IP-Transparency for custom UDP application

2019-07-09 Thread Jeya Murugan
Hi all, I am using *NGINX 1.13.5 as a Load Balancer for one of my CUSTOM-APPLICATION *which will listen on* UDP port 2231,67 and 68.* I am trying for Load Balancing with IP-Transparency. When I using the proxy_protocol method the packets received from a remote client is modified and send to

Re: custom 502 error for stacked proxies

2019-05-03 Thread Paul B. Henson
On Fri, May 03, 2019 at 01:47:40PM +0300, Sergey Kandaurov wrote: > you may want to try recursive error pages in location / {} > with error_page 502 in @server_b. Sweet, that did indeed do the trick. Thank you very much for the suggestion. ___ nginx ma

Re: custom 502 error for stacked proxies

2019-05-03 Thread Sergey Kandaurov
; >proxy_redirect http://$host/ /; >proxy_set_header Host $host; >proxy_http_version 1.1; >proxy_connect_timeout 3m; >proxy_read_timeout 3m; >proxy_buffers 1024 4k; > } > > This seems to work *except* when it fails to connect to server B, in whic

custom 502 error for stacked proxies

2019-05-02 Thread Paul B. Henson
rk *except* when it fails to connect to server B, in which case it gives a standard nginx 502 error page rather than a custom page. I've tried all kinds of things, from setting proxy_intercept_errors on for the @server_b location and adding error_page configuration like in the / location, and a

Re: Exposing external JSON API in an Nginx custom path?

2018-11-12 Thread Francis Daly
On Mon, Nov 12, 2018 at 03:03:39AM +, Moorage via nginx wrote: Hi there, > The secret-sauce recipe was: > > in the mesh-ui config > > apiUrl: '/mesh/api/v1/', > > and in nginx > > location ^~ /mesh/ { > ... > proxy_pass http://meshproxy/; >

Re: Exposing external JSON API in an Nginx custom path?

2018-11-11 Thread Moorage via nginx
> Some more 'stuff' to try! > > Let's see how it works ... The secret-sauce recipe was: in the mesh-ui config apiUrl: '/mesh/api/v1/', and in nginx location ^~ /mesh/ { ... proxy_pass http://meshproxy/; proxy_redirect / /mesh/;

Re: Exposing external JSON API in an Nginx custom path?

2018-11-11 Thread Moorage via nginx
Hi, > So you want the request to nginx of "/mesh/" to become a request to your > upstream server of "/"? Initially, that was the idea. For no reason OTHER than out of the box, the upstream UI *is*, by default, available at http://mesh.example.com:8080/ > It can be done; however, I suggest t

Re: Exposing external JSON API in an Nginx custom path?

2018-11-11 Thread Francis Daly
On Sun, Nov 11, 2018 at 03:55:06PM +, Moorage via nginx wrote: Hi there, > curl -i http://mesh.example.com:8080 > HTTP/1.1 302 Found > Location: /mesh-ui/ > Content-Length: 0 > > I want to expose that UI at an Ngin

Exposing external JSON API in an Nginx custom path?

2018-11-11 Thread Moorage via nginx
s expected, correctly rendering/displaying its UI Login Form. With curl, curl -i http://mesh.example.com:8080 HTTP/1.1 302 Found Location: /mesh-ui/ Content-Length: 0 I want to expose that UI at an Nginx site custom path. https://exampl

Custom nginx QoS plugin running before SSL handshake

2018-09-19 Thread Sibin Arsenijevic
Hello everyone, We are using a custom Nginx plugin to tag (setsockopt) response (per domain) traffic from Nginx with QoS DSCP flag and that is working fine, however we are seeing that SSL handshake responses are not getting tagged. Once handshake is done the rest of the responses are tagged as

Re: Custom HTTP code in limit_except

2018-08-13 Thread 5lava
Bump Posted at Nginx Forum: https://forum.nginx.org/read.php?2,280084,280867#msg-280867 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Custom HTTP code in limit_except

2018-06-07 Thread 5lava
I'd like to find an elegant and efficient solution to redirect GET and HEAD requests using code 301, but requests with other methods — using code 308. Intuitively I wrote this: location /foo { limit_except GET { return 301 /bar; } return 308 /bar; } But allowed context for "return" are "serve

Re: large_client_header_buffers: Custom error pages are not working

2018-06-05 Thread prajos
rror-files/; allow all; internal; } } & now I'm able to get my custom message and Header. Cheers Posted at Nginx Forum: https://forum.nginx.org/read.php?2,280035,280044#msg-280044 ___ nginx mailing list nginx@nginx.org http:

Re: large_client_header_buffers: Custom error pages are not working

2018-06-05 Thread Maxim Dounin
oot /etc/nginx/errors-files/; > allow all; > internal; >} > > } > > Then I start testing the nginx with curl and adding a header of size 600 > bytes. > nginx promptly stops the request and dumps a default error page instead of > my custom error page. > > >

large_client_header_buffers: Custom error pages are not working

2018-06-05 Thread prajos
s the request and dumps a default error page instead of my custom error page. 400 Request Header Or Cookie Too Large 400 Bad Request Request Header Or Cookie Too Large nginx How can I get a CUSTOM ERROR page for this situation working instead of the default page. Thanks Cheers prajos Posted at

Re: Nginx thread pool is not working in 1.14 in custom module

2018-05-23 Thread isolomka
Thanks a lot, fix seems to be working fine. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279917,279927#msg-279927 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx thread pool is not working in 1.14 in custom module

2018-05-23 Thread Maxim Dounin
Hello! On Wed, May 23, 2018 at 09:08:08AM -0400, isolomka wrote: > Thanks for the response. > The main issue is that now request is closed before actual task is done in > thread pool. > How can I avoid that? > It worked fine before the upgrade. > What is correct thread po

Re: Nginx thread pool is not working in 1.14 in custom module

2018-05-23 Thread isolomka
Thanks for the response. The main issue is that now request is closed before actual task is done in thread pool. How can I avoid that? It worked fine before the upgrade. What is correct thread pool usage in custom module in 1.14? Here is my request handler for reference: static ngx_int_t

Re: Nginx thread pool is not working in 1.14 in custom module

2018-05-23 Thread Maxim Dounin
Hello! On Wed, May 23, 2018 at 05:33:51AM -0400, isolomka wrote: > Hi, > I have custom nginx module which uses thread pool to serve blocking > synchronous calls to our library. > It worked fine with nginx version 1.12.1. > > Now we've tried to upgrade nginx to latest 1.

Nginx thread pool is not working in 1.14 in custom module

2018-05-23 Thread isolomka
Hi, I have custom nginx module which uses thread pool to serve blocking synchronous calls to our library. It worked fine with nginx version 1.12.1. Now we've tried to upgrade nginx to latest 1.14 version and it seems thread pool is not working with that version. After some debugging we

Re: custom log_format not inherited by server block

2018-05-18 Thread Maxim Dounin
u have to define log_format before access_log which uses it. > If my `log_format` directive appears before the `access_log` > directive in nginx.conf, the default server block will not > validate, stating: > > nginx: [emerg] unknown log format "ipscrubbed" in > /et

custom log_format not inherited by server block

2018-05-17 Thread Pete Cooper
log_format` directive appears before the `access_log` directive in nginx.conf, the default server block will not validate, stating: nginx: [emerg] unknown log format "ipscrubbed" in /etc/nginx/sites-enabled/default:2 …implying that although my custom `log_format` is valid, the d

Re: Custom error_page

2018-05-14 Thread Friscia, Michael
"nginx@nginx.org" Date: Monday, May 14, 2018 at 1:26 PM To: "nginx@nginx.org" Subject: Custom error_page I’m not sure if I’m using error_page correctly. I’m trying to set this up so that if the upstream server returns a 500, then I show a custom error page. Is this possible? I have

Custom error_page

2018-05-14 Thread Friscia, Michael
I’m not sure if I’m using error_page correctly. I’m trying to set this up so that if the upstream server returns a 500, then I show a custom error page. Is this possible? I have a custom error setup that works just fine using the instructions from this site: https://www.digitalocean.com

Can I update a custom dynamic module after the NGINX binary has been compiled?

2017-10-25 Thread Helen Weng
Hello! Early last year, dynamic modules were released. In the notes, it was mentioned that eventually "the ability to compile modules after the NGINX binary has been compiled" would be added. I was wondering if this has been added yet, and if so, which version? Thank you!

Re: HTTP/2 custom status codes

2017-08-09 Thread Maxim Dounin
Hello! On Wed, Aug 09, 2017 at 09:56:26PM +0530, Sharan J wrote: > Thanks for the response. > > > ... [error] ... upstream sent no valid HTTP/1.0 header while reading > response header from upstream ... > > This is logged in the error log for both HTTP/1.1 and HTTP/2. May I know > why everythin

Re: HTTP/2 custom status codes

2017-08-09 Thread Sharan J
particular request, my back-end server sends a custom 4 digit status code > > (say ). > > > > When connecting via HTTP/1.1, the exact status code is returned to the > > client but, when connection via HTTP/2, the response headers along with > the > > status()

Re: HTTP/2 custom status codes

2017-08-09 Thread Maxim Dounin
Hello! On Wed, Aug 09, 2017 at 08:46:41PM +0530, Sharan J wrote: > Hello, > > I am using Nginx as a reverse proxy and have enabled HTTP/2. For a > particular request, my back-end server sends a custom 4 digit status code > (say ). > > When connecting via HTTP/1.1, the

HTTP/2 custom status codes

2017-08-09 Thread Sharan J
Hello, I am using Nginx as a reverse proxy and have enabled HTTP/2. For a particular request, my back-end server sends a custom 4 digit status code (say ). When connecting via HTTP/1.1, the exact status code is returned to the client but, when connection via HTTP/2, the response headers

Custom error_log format

2017-07-03 Thread Georgi Georgiev
Hello, I would like to have / to add the $request_id variable in the error_log, but I read that the only possible way is to add it to the source code. Has anyone here an experience with that, which file and what should I add? Or some other workaround?

Re: Proxy_cache_key based on custom header

2017-06-30 Thread Peter Booth
I had best caching experience when I started using the openresty nginx bundle. It's a build of nginx that contains a bunch of Lua modules that make it a lean application server. With that I could create cache keys that exactly matched my (complex) business requirements Sent from my iPhone > O

Re: Proxy_cache_key based on custom header

2017-06-30 Thread Francis Daly
On Tue, Jun 27, 2017 at 05:43:22PM -0400, deivid__ wrote: Hi there, You will probably change your setup so that the default proxy_cache_key works for you; but for information: > If `proxy_cache` is set to `$sent_http_x_test_header`: > - Every request gets cached (good) > - All URLs map to the sa

Proxy_cache_key based on custom header

2017-06-27 Thread deivid__
Hi. I'm trying to use 2 level proxying to cache files delivered with X-Accel-Redirect. This kinda works, the only thing missing is getting the cache_key to be the filename. If `proxy_cache` is unset (or set to the default), the caching mechanism "works": - Every request gets cached (good) - Diff

rewrite in custom 404 location

2017-06-27 Thread Артём Томюк
is it possible to create "if" rule with rewrite action inside custom 404 location? the task is fallback to jpg if upstream returns 404 for .webp request. i've double-checked regexp's - they seems to be write location ~* \.(jpg|mp4|svg|jpeg|gif|png|css|bmp|js|swf|webp|

Re: nginx as reverse proxy and custom 500 error

2017-06-23 Thread ManuelRighi
Hello, anyone know how to help me? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,273081,275116#msg-275116 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: custom ip address on port 80 not listening

2017-04-08 Thread Francis Daly
On Sat, Apr 08, 2017 at 08:46:57AM +0100, Musta Fa wrote: Hi there, > but i can not make it listen on custom_ip:80 > port 80 is always 0.0.0.0:80 > > cd /etc/nginx > grep listen -r * > only "listen custom_ip:80;" > > why is that?? Any server{} without an explicit "listen" has an implicit "list

custom ip address on port 80 not listening

2017-04-08 Thread Musta Fa
nginx/1.11.13 i have 4 server IPs, all registered in network interface and many domains and apps, also on different ports. all other ports are ok: custom_ip1:443, custom_ip1:5000, custom_ip1:81 custom_ip2:443, custom_ip2:5000, custom_ip2:81 custom_ip3:443, custom_ip3:5000, custom_ip3:81 but i c

Custom Error pages

2017-03-23 Thread Alex Samad
Hi I got something like this error_page 404 /stderror404.html; location = /stderror400.html { root /var/www/error; content_by_lua_file /var/www/error/stderror400.lua; internal; allow all; } and the lua file has ngx.say( "Your source ip address

302 301 redirect custom HTML content

2017-03-23 Thread Eugene Piatenko
ysite/myhomepage.html Connection: keep-alive 302 Found 302 Found nginx/1.10.3 Is it possible to send custom page content? My config: server { listen 80; root /somewhere/mysite; location @redirect_to_home { error_page 302 /custom_302_page.html; return 302 /myhomepage.html; } error_pag

Re: Question about custom error pages

2017-03-22 Thread Alex Samad
017 at 11:18 PM, Alex Samad wrote: > >> Hi >> >> How would I added custom info to the error page. >> >> Say like for 400 if its a cert error, how can I add that to the page and >> maybe to add in the clients ip address as well >> >> A >> >

Re: Question about custom error pages

2017-03-22 Thread B.R. via nginx
RTFM? :o) https://nginx.org/en/docs/http/ngx_http_core_module.html#error_page --- *B. R.* On Tue, Mar 21, 2017 at 11:18 PM, Alex Samad wrote: > Hi > > How would I added custom info to the error page. > > Say like for 400 if its a cert error, how can I add that to the page and &g

Question about custom error pages

2017-03-21 Thread Alex Samad
Hi How would I added custom info to the error page. Say like for 400 if its a cert error, how can I add that to the page and maybe to add in the clients ip address as well A ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman

nginx as reverse proxy and custom 500 error

2017-03-21 Thread ManuelRighi
Hello, I use nginx as reverse proxy for my IIS web server. I have custom error page when 500 error occours. My goal is to have custom error page for all but detailed error (no custom error essentially) from my specific ip. It's possible to have detailed error page from my specific ip and c

Re: limit_req based on custom code

2017-02-23 Thread yarix
anyone, please? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272281,272590#msg-272590 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Cache based on custom header

2017-02-09 Thread Chad Hansen via nginx
Thanks! What part of openresty supplies that? For instance, it includes more-set-headers: if I include that, could i rewrite the incoming cache-related headers before cache layer processes them? On Wed, Feb 8, 2017 at 7:10 PM Peter Booth wrote: > Yes you can. For some subtle custom cache lo

Re: Cache based on custom header

2017-02-08 Thread Peter Booth
Yes you can. For some subtle custom cache logic I needed to use openresty, which is an nginx bundle that adds a lot of customization points. Sent from my iPhone > On Feb 8, 2017, at 5:47 PM, Chad Hansen via nginx wrote: > > I use nginx as a reverse proxy, and upstream clients have a

Cache based on custom header

2017-02-08 Thread Chad Hansen via nginx
I use nginx as a reverse proxy, and upstream clients have a need for my service to cache differently than downstream servers. Is there a way to change what header nginx uses to accept cache settings? Or a way to re-write cache headers before the cache settings take affect? For example, I could ha

Custom Error Log Format

2016-11-20 Thread Cox, Eric S
Has anyone done anything with using a lua script, third party module etc to be able to define a customer log error format? Currently the log format I believe is /MM/DD HH:MM:SS [LEVEL] PID#TID: *CID MESSAGE Parsing/rewriting this is possible with some custom scripts but I would like to do

Re: custom logic after connection is closed

2016-11-14 Thread nemster
Hi Maxim, Maxim Dounin Wrote: --- > Hello! > > On Mon, Nov 14, 2016 at 05:08:33AM -0500, nemster wrote: > > > Hi! > > Is it possible to write a plugin that does some additional stuff > after a TLS > > (http/1.1, http/2.0) TCP connection. > > I

Re: custom logic after connection is closed

2016-11-14 Thread Maxim Dounin
Hello! On Mon, Nov 14, 2016 at 05:08:33AM -0500, nemster wrote: > Hi! > Is it possible to write a plugin that does some additional stuff after a TLS > (http/1.1, http/2.0) TCP connection. > I would want to keep some extra struct for each TLS connection and > manipulated it with every request, th

custom logic after connection is closed

2016-11-14 Thread nemster
Hi! Is it possible to write a plugin that does some additional stuff after a TLS (http/1.1, http/2.0) TCP connection. I would want to keep some extra struct for each TLS connection and manipulated it with every request, then once the TLS (or TCP) connection closes i would want to do some processin

Re: Problems with custom log file format

2016-08-23 Thread lists
To: nginx@nginx.org Subject: Re: Problems with custom log file format > Without the specified format so ses the default. .. it uses the default. rr ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/l

Re: Problems with custom log file format

2016-08-23 Thread Reinis Rozitis
Without the specified format so ses the default. .. it uses the default. rr ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Problems with custom log file format

2016-08-23 Thread Reinis Rozitis
Link goes to conf file https://www.dropbox.com/s/1gz5139s4q3b7e0/nginx.conf?dl=0 On line 324 you have (for the lazygranch.xyz virtualhost): access_log /var/log/nginx/access.log; Without the specified format so ses the default. rr ___ nginx mailing

Re: Problems with custom log file format

2016-08-23 Thread li...@lazygranch.com
Link goes to conf file https://www.dropbox.com/s/1gz5139s4q3b7e0/nginx.conf?dl=0 On Tue, 23 Aug 2016 20:51:55 +0300 "Reinis Rozitis" wrote: > > Configuration file included in the post. I already checked it. > > You have shown only few excerpts (like there might be other > access_log directives

Re: Problems with custom log file format

2016-08-23 Thread Reinis Rozitis
Configuration file included in the post. I already checked it. You have shown only few excerpts (like there might be other access_log directives in other parts included config files (easily missed when doing include path/*.conf) etc). For example if you can reproduce the issue with such conf

Re: Problems with custom log file format

2016-08-23 Thread Lucas Rolff
nginx@nginx.org Subject: Re: Problems with custom log file format Hello! On Tue, Aug 23, 2016 at 10:07:56AM -0700, li...@lazygranch.com wrote: Looks like I have no takers on this problem. Should I filed a bug report? If so, where? I would recommend you to start with double-checking your configur

Re: Problems with custom log file format

2016-08-23 Thread lists
Configuration file included in the post. I already checked it.   Original Message   From: Maxim Dounin Sent: Tuesday, August 23, 2016 10:10 AM To: nginx@nginx.org Reply To: nginx@nginx.org Subject: Re: Problems with custom log file format Hello! On Tue, Aug 23, 2016 at 10:07:56AM -0700, li

Re: Problems with custom log file format

2016-08-23 Thread Maxim Dounin
Hello! On Tue, Aug 23, 2016 at 10:07:56AM -0700, li...@lazygranch.com wrote: > Looks like I have no takers on this problem. Should I filed a > bug report? If so, where? I would recommend you to start with double-checking your configuration instead. -- Maxim Dounin http://nginx.org/

Re: Problems with custom log file format

2016-08-23 Thread lists
Looks like I have no takers on this problem. Should I filed a bug report? If so, where?   Original Message   From: li...@lazygranch.com Sent: Sunday, August 21, 2016 7:02 PM To: nginx@nginx.org Reply To: nginx@nginx.org Subject: Problems with custom log file format Nginx 1.10.1,2 FreeBSD 10.2

  1   2   >