Re: WordPress Website not rendered properly via nginx reverse proxy

2024-10-15 Thread Richard Stanway via nginx
You could consider adding a CSP header to cause clients to automatically fetch those resources over HTTPS: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/upgrade-insecure-requests On Wed, 16 Oct 2024 at 00:06, Nikolaos Milas via nginx wrote: > On 16/10/2024 12

Re: WordPress Website not rendered properly via nginx reverse proxy

2024-10-15 Thread Nikolaos Milas via nginx
On 16/10/2024 12:19 π.μ., Nikolaos Milas via nginx wrote: ... I tried that but no, removing the trailing slash did not change anything. ... I found that the problem is that, as the proxied page is rendered over SSL, browsers are auto-blocking parts of the page as non-secure. This is due, I

Re: WordPress Website not rendered properly via nginx reverse proxy

2024-10-15 Thread Nikolaos Milas via nginx
On 15/10/2024 5:11 μ.μ., Kevin Weis via nginx wrote: have you tried to remove the trailing slash from the upstream url? Hi Kevin, Thanks for the hint. I tried that but no, removing the trailing slash did not change anything. Any other hints will be welcome! Thanks again, Nick smime.p7s

WordPress Website not rendered properly via nginx reverse proxy

2024-10-15 Thread Kevin Weis via nginx
Hi Nick, have you tried to remove the trailing slash from the upstream url? Turning: "proxy_pass http://example.private.noa.gr:80/;"; info: "proxy_pass http://example.private.noa.gr:80;"; If this resloves your issue, you can find the details in the docs here: https://nginx.org/en/docs/http/ngx

WordPress Website not rendered properly via nginx reverse proxy

2024-10-15 Thread Nikolaos Milas via nginx
Hello, We are using nginx on a server as a reverse proxy and it works fine serving multiple websites. Now I am trying to reverse proxy another one, a WP website, in the same way, but it won't render correctly. I can only see the main page areas and only some text at some places, but

Re: nginx/1.26.1 as a reverse proxy strips the Content-Length field from response, no matter what I do

2024-08-11 Thread Tobias Damisch via nginx
I am awfully sorry for spamming this list. I just found out nextcloud starts sending the file several times, sometimes containing "Content-Length" and sometimes not. The one time it actually serves the full download, this is the header: ---

nginx/1.26.1 as a reverse proxy strips the Content-Length field from response, no matter what I do

2024-08-11 Thread Tobias Damisch via nginx
Hi everyone, first-time poster here. I am trying to run nextcloud AIO behind a nginx/1.26.1 reverse proxy. When I download a file from the nextcloud, in the answer there is no Content-Length field coming out of nginx, while it was there when nextcloud AIO sent it (I have sniffed the traffic with

Eprints (using PERL CGI)over NGINX reverse proxy

2024-05-07 Thread zen zenitram
Good day! We have Institutional Repository that is made with the use of Eprints, It has no problem uploading file up to 1 gb as default when in local access. but when we use NGINX as the reverse proxy it only accept up to 128 kb file. Does PERL CGI affects the upload limit over NGINX? we

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-26 Thread Kin Seng
Hi J Carter, Thank you so much for your suggestions, I did tcpdump concurrently on both nginx and client app host as well and able to find out that F5 device in between is sending out RST to both side. Now i am able to exclude Nginx's configuration as part of the investigation. On Thu, Feb 22, 20

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-21 Thread J Carter
Hello, On Tue, 20 Feb 2024 11:57:27 +0800 Kin Seng wrote: > Hi J Carter, > > Thank you for your reply. > I am capturing the packet from firewall, and the filtering is as per below > for the previously attached pcap. I see, I assumed you had run tcpdump on the nginx host. I'd reccomend doing th

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-19 Thread Kin Seng
Hi J Carter, Thank you for your reply. I am capturing the packet from firewall, and the filtering is as per below for the previously attached pcap. Source : client app -- Dest : nginx proxy , any port to any port Source : public server -- Dest : nginx proxy , any port to any port Source : nginx

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-19 Thread J Carter
Hello, On Tue, 20 Feb 2024 09:40:13 +0800 Kin Seng wrote: > Hi J Carter, > > This is the only results from the whole 5 minutes session (intentionally > without any transaction to create inactivity). Is there any symptoms which > can prove that other parties are the one who Initiate the closing?

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-19 Thread Kin Seng
Hi J Carter, This is the only results from the whole 5 minutes session (intentionally without any transaction to create inactivity). Is there any symptoms which can prove that other parties are the one who Initiate the closing? On Tue, Feb 20, 2024, 9:33 AM J Carter wrote: > Hello, > > On Mon,

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-19 Thread Kin Seng
work [server]. It only > > use TCP ports (not http/https) and establish with a server located at > > public network. The client application does not support TLS1.2 connection > > hence the introduction of nginx proxy/reverse proxy for TLS wrapping > > purpose. You may

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-19 Thread J Carter
Hello, On Mon, 19 Feb 2024 16:24:48 +0800 Kin Seng wrote: [...] > Please refer to the attachments for reference. > > On Mon, Feb 19, 2024 at 4:24 PM Kin Seng wrote: > > After capturing the tcp packet and check via wireshark, I found out that > > the nginx is sending out the RST to the public s

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-19 Thread Roman Arutyunyan
rom my > internal network [client application] to public network [server]. It only > use TCP ports (not http/https) and establish with a server located at > public network. The client application does not support TLS1.2 connection > hence the introduction of nginx proxy/reverse proxy for

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-19 Thread Kin Seng
ion does not support TLS1.2 connection > hence the introduction of nginx proxy/reverse proxy for TLS wrapping > purpose. You may refer below : > >Internal Network > | INTERNET/Public > [Client Application] <->

NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-19 Thread Kin Seng
application] to public network [server]. It only use TCP ports (not http/https) and establish with a server located at public network. The client application does not support TLS1.2 connection hence the introduction of nginx proxy/reverse proxy for TLS wrapping purpose. You may refer below

Re: Problem using nginx as reverse proxy server on Windows Server 2016

2024-02-03 Thread Victor Oppenheimer
"Percentage of time the processor is idle" with a PID of 0. This is typically the Web Deployment Agent Service (MsDepSvc) (this often uses PID4) or Host Network Service - both stoppable from from services.msc Let us know how you get on! On Sat, 3 Feb 2024 at 18:51, Victor Opp

Re: Problem using nginx as reverse proxy server on Windows Server 2016

2024-02-03 Thread Jeremy Cocks via nginx
t; with a PID of 0. This is typically the Web Deployment Agent Service (MsDepSvc) (this often uses PID4) or Host Network Service - both stoppable from from services.msc Let us know how you get on! On Sat, 3 Feb 2024 at 18:51, Victor Oppenheimer wrote: > I am trying to run nginx as a reverse pr

Re: Problem using nginx as reverse proxy server on Windows Server 2016

2024-02-03 Thread Sam Hobbs
insecure HTML and secure HTTPS webpage requests Did you mean to say insecure HTTP and secure HTTPS webpage requests? process secure HTMLS requests as well Did you mean to say process secure HTTPS requests as well? ___ nginx mailing list nginx@nginx.

Problem using nginx as reverse proxy server on Windows Server 2016

2024-02-03 Thread Victor Oppenheimer
I am trying to run nginx as a reverse proxy server on my Microsoft Windows Server 2016 Standard computer. I previously have used Microsoft IIS and Apache Tomcat on this computer to serve webpages on port 80 and port 8080 respectively. However, I want to have some of my websites use SSL and be

Re: Forcing incognito mode on a reverse proxy

2023-12-20 Thread Constantine A. Murenin
On 16/12/2023, Saint Michael wrote: > I have a reverse proxy but for security reasons, I need to force the > client to work the closest to an Incognito session as possible. > I tried adding the following: > > proxy_set_header Cookie ""; > add_header Set-Cookie "

Re: Forcing incognito mode on a reverse proxy

2023-12-20 Thread Francis Daly
On Sat, Dec 16, 2023 at 02:16:45PM -0500, Saint Michael wrote: Hi there, > I have a reverse proxy but for security reasons, I need to force the > client to work the closest to an Incognito session as possible. I suspect that that can only reliably be done by telling the client to

RE: Capture full request/response body logging in nginx configured in reverse proxy mode reports nginx: [emerg] unknown directive "log_by_lua_block"

2023-12-19 Thread Reinis Rozitis
> nginx: [emerg] unknown directive "log_by_lua_block" in > /etc/nginx/conf.d/microservice.conf:8 > nginx: configuration file /etc/nginx/nginx.conf test failed You need nginx lua/openresty module, but I'm not sure if Centos (community version) repository has it. You might need to build it yourse

Re: Capture full request/response body logging in nginx configured in reverse proxy mode reports nginx: [emerg] unknown directive "log_by_lua_block"

2023-12-18 Thread Kaushal Shriyan
On Mon, Dec 18, 2023 at 11:19 PM Sergey A. Osokin wrote: > Hi Kaushal, > > On Mon, Dec 18, 2023 at 10:24:14PM +0530, Kaushal Shriyan wrote: > > > > I am running nginx version: nginx/1.24.0 as reverse proxy on CentOS Linux > > release 7.9.2009 (Core). I have the below

Re: Capture full request/response body logging in nginx configured in reverse proxy mode reports nginx: [emerg] unknown directive "log_by_lua_block"

2023-12-18 Thread Sergey A. Osokin
Hi Kaushal, On Mon, Dec 18, 2023 at 10:24:14PM +0530, Kaushal Shriyan wrote: > > I am running nginx version: nginx/1.24.0 as reverse proxy on CentOS Linux > release 7.9.2009 (Core). I have the below config > file /etc/nginx/conf.d/microservice.conf > I want to capture full reques

Capture full request/response body logging in nginx configured in reverse proxy mode reports nginx: [emerg] unknown directive "log_by_lua_block"

2023-12-18 Thread Kaushal Shriyan
Hi, I am running nginx version: nginx/1.24.0 as reverse proxy on CentOS Linux release 7.9.2009 (Core). I have the below config file /etc/nginx/conf.d/microservice.conf I want to capture full request/response body logging in nginx. # cat /etc/nginx/conf.d/microservice.conf server

Forcing incognito mode on a reverse proxy

2023-12-16 Thread Saint Michael
I have a reverse proxy but for security reasons, I need to force the client to work the closest to an Incognito session as possible. I tried adding the following: proxy_set_header Cookie ""; add_header Set-Cookie "cookie_name=; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"; } b

Re: Nginx as reverse proxy - proxy_ssl_x questions

2023-11-19 Thread Maxim Dounin
Hello! On Sun, Nov 19, 2023 at 12:41:11PM +0300, Mark wrote: > Hello Mr. Maxim, thank you very much for your reply. > > Things are much clearer now, thanks! > > One, last question; > > I have implemented nginx as a reverse proxy with TLS termination in my > FreeBSD h

Re: Nginx as reverse proxy - proxy_ssl_x questions

2023-11-19 Thread Mark
Hello Mr. Maxim, thank you very much for your reply. Things are much clearer now, thanks! One, last question; I have implemented nginx as a reverse proxy with TLS termination in my FreeBSD host machine, and another nginx instance running in my jail, in; 10.10.10.2. So, the host machine does

Re: Nginx as reverse proxy - proxy_ssl_x questions

2023-11-18 Thread Maxim Dounin
Hello! On Sat, Nov 18, 2023 at 01:54:21PM +0300, Mark wrote: > Hello there. > > Having a proxy directive like; > > location / { > proxy_pass http://10.10.10.4:4020; > ... > > I wonder when using proxy_pass http://... (not httpS), > are these directives effective, under the proxy_pass?

Nginx as reverse proxy - proxy_ssl_x questions

2023-11-18 Thread Mark
Hello there. Having a proxy directive like; location / { proxy_pass http://10.10.10.4:4020; ... I wonder when using proxy_pass http://... (not httpS), are these directives effective, under the proxy_pass? proxy_ssl_name $host; proxy_ssl_server_name on; proxy_ssl_session_reus

RE: Reverse proxy with URLs replacement

2023-06-18 Thread Reinis Rozitis
> Is it possible to use Nginx as a proxy for another website, while also having > the ability to replace absolute paths in CSS, JS, and HTML content? One way for that is to use proxy http://nginx.org/en/docs/http/ngx_http_proxy_module.html + sub module http://nginx.org/en/docs/http/ngx_http_sub

Reverse proxy with URLs replacement

2023-06-17 Thread Jose David Bravo A
http://192.168.10.10 (private IP). The web server could be any server such as Apache, LiteSpeed, IIS, etc. I can achieve this using an Nginx reverse proxy, but I would also like to rewrite the absolute URLs within the CSS, JS, and HTML files from http://192.168.10.10/file.css to http://proxy1

Re: Reverse proxy to forward proxy to internet access

2023-05-29 Thread Miten Mehta
Hi Francis Daly, client -> reverse proxy: https://myreverseproxy.com/https://mypub/somepath reverse proxy to forward proxy: I'm not sure how https://forwardproxy.com/ https://mypub/somepath <https://myreverseproxy.com/https://mypub/somepath> I was trying to append the actual url in

Re: Reverse proxy to forward proxy to internet access

2023-05-28 Thread Francis Daly
On Sat, May 27, 2023 at 10:42:01AM -0400, Saint Michael wrote: Hi there, > Please look at the links. > All those links are a live digital tunnel to each website. Yes; it looks like you are making "normal" use of nginx's proxy_pass directive, to provide indirect access for clients, to some conten

Re: Reverse proxy to forward proxy to internet access

2023-05-27 Thread Saint Michael
> On Sat, May 27, 2023, 12:21 AM Miten Mehta wrote: > >> I consider from your reply that niginx reverse proxy cannot provide >> internet access through a forward proxy like squid, websense or alike. >> >> I understand you mentioned that nginx cannot be used as forward p

Re: Reverse proxy to forward proxy to internet access

2023-05-27 Thread David Siembab
What does the project do for you and what would you like it do for you. Share ideas On Sat, May 27, 2023, 12:21 AM Miten Mehta wrote: > I consider from your reply that niginx reverse proxy cannot provide > internet access through a forward proxy like squid, websense or alike. > >

Re: Reverse proxy to forward proxy to internet access

2023-05-27 Thread Saint Michael
eb site > through a proxy server". > > Or "here is how nginx is configured to be accessed as if it were a > proxy server". > > (It does seem to indicate "this server acts as a reverse proxy > for some specific remote web sites"; but that's pretty

Re: Reverse proxy to forward proxy to internet access

2023-05-27 Thread Francis Daly
nginx is configured to be accessed as if it were a proxy server". (It does seem to indicate "this server acts as a reverse proxy for some specific remote web sites"; but that's pretty much what http://nginx.org/r/proxy_pass does. No doubt there is extra cleverness to hand

Re: Reverse proxy to forward proxy to internet access

2023-05-27 Thread Francis Daly
On Sat, May 27, 2023 at 09:51:10AM +0530, Miten Mehta wrote: Hi there, > I consider from your reply that niginx reverse proxy cannot provide > internet access through a forward proxy like squid, websense or alike. "http through a proxy" uses a different form of requests from &qu

Re: Reverse proxy to forward proxy to internet access

2023-05-27 Thread Francis Daly
On Fri, May 26, 2023 at 04:18:59PM +0530, Miten Mehta wrote: Hi there, > Thanks for guidance. If i enable direct internet access from reverse proxy > then can i just use proxy_pass $request_uri and have user format his url as > https://myreverseproxy.com/https://mypub/somepa

Re: Reverse proxy to forward proxy to internet access

2023-05-26 Thread Saint Michael
Check https://1eye.us 100% Nginx On Sat, May 27, 2023 at 12:21 AM Miten Mehta wrote: > I consider from your reply that niginx reverse proxy cannot provide > internet access through a forward proxy like squid, websense or alike. > > I understand you mentioned that nginx canno

Re: Reverse proxy to forward proxy to internet access

2023-05-26 Thread Miten Mehta
I consider from your reply that niginx reverse proxy cannot provide internet access through a forward proxy like squid, websense or alike. I understand you mentioned that nginx cannot be used as forward proxy. There are many blogs on net claiming to use nginx as forward proxy and also using

Re: Reverse proxy to forward proxy to internet access

2023-05-26 Thread Miten Mehta
Hi, Thanks for guidance. If i enable direct internet access from reverse proxy then can i just use proxy_pass $request_uri and have user format his url as https://myreverseproxy.com/https://mypub/somepath. Regards, Miten On Fri 26 May, 2023, 4:39 AM Francis Daly, wrote: > On Thu, May

Re: Reverse proxy to forward proxy to internet access

2023-05-25 Thread Francis Daly
On Thu, May 25, 2023 at 05:12:26PM +0530, Miten Mehta wrote: Hi there, > Can you guide to configuration to put in reverse proxy config file to use > forward internet proxy? nginx does not talk to a proxy server. If you need to talk to a proxy server, you need something other than "s

Reverse proxy to forward proxy to internet access

2023-05-25 Thread Miten Mehta
Hi, Can you guide to configuration to put in reverse proxy config file to use forward internet proxy? I have case to use reverse proxy to access intranet urls which is usual configuration but for certain resources i guess its called tunneling or proxying i need to use internet proxy. Ex. Https

Reverse proxy for upload

2023-03-16 Thread Marcin Wanat
Hi, i am working on nginx reverse proxy for upload gateway to speed up things worldwide. Infrastructure schema looks like this: Main upload server - EU Upload proxy servers in Asia, Australia, North America etc Upload proxy servers will be connected to main upload servers via Long Fat Network

Aw: Re: Reverse Proxy 502 Bad Gateway

2023-03-04 Thread Hans Müller
´t find a contact adress.   Greetings Hans     Gesendet: Freitag, 03. März 2023 um 21:45 Uhr Von: "Maxim Dounin" An: nginx@nginx.org Betreff: Re: Reverse Proxy 502 Bad Gateway Hello! On Fri, Mar 03, 2023 at 04:33:25PM +0100, Hans Müller wrote: > Hello, > I am working in a pro

Re: Reverse Proxy 502 Bad Gateway

2023-03-03 Thread Maxim Dounin
Hello! On Fri, Mar 03, 2023 at 04:33:25PM +0100, Hans Müller wrote: >Hello, >I am working in a proxmox environment, setting up a ngnix reverse proxy >(192.168.178.103) forwarding requests via https to a nginx backend >server (192.168.178.105). On the backend server sh

Reverse Proxy 502 Bad Gateway

2023-03-03 Thread Hans Müller
Hello, I am working in a proxmox environment, setting up a ngnix reverse proxy (192.168.178.103) forwarding requests via https to a nginx backend server (192.168.178.105). On the backend server shellinabox is installed. Request from the internet are secured via a Letsentcrypt certificate. For the

Reverse proxy

2023-02-26 Thread Saint Michael
In a location, ai need to use proxy_redirext to send the inbound cljent to the second leg, another htpps. But hiw do I tell nginx to follow an http_proxy? I can test from a terninal session and the proxy workds fine. ___ nginx mailing list nginx@nginx.org

Re: Connecting a reverse proxy to an http proxy service

2023-02-25 Thread Saint Michael
nt from my Galaxy >>> >>> >>> >>> Original message >>> From: Francis Daly >>> Date: 2/25/23 15:31 (GMT-05:00) >>> To: nginx@nginx.org >>> Subject: Re: Connecting a reverse proxy to an http proxy service >>>

Re: Connecting a reverse proxy to an http proxy service

2023-02-25 Thread Payam Chychi
> >> Sent from my Galaxy >> >> >> >> Original message >> From: Francis Daly >> Date: 2/25/23 15:31 (GMT-05:00) >> To: nginx@nginx.org >> Subject: Re: Connecting a reverse proxy to an http proxy service >> >> On Sat,

Re: Connecting a reverse proxy to an http proxy service

2023-02-25 Thread Saint Michael
From: Francis Daly > Date: 2/25/23 15:31 (GMT-05:00) > To: nginx@nginx.org > Subject: Re: Connecting a reverse proxy to an http proxy service > > On Sat, Feb 25, 2023 at 02:10:46PM -0500, Saint Michael wrote: > > Hi there, > > > that there exist private HTTP proxy

RE: Connecting a reverse proxy to an http proxy service

2023-02-25 Thread Thomas Ward
As Francis said, NGINX does not speak proxy protocols. NGINX is the wrong tool for this job. Sent from my Galaxy Original message From: Francis Daly Date: 2/25/23 15:31 (GMT-05:00) To: nginx@nginx.org Subject: Re: Connecting a reverse proxy to an http proxy service On

Re: Connecting a reverse proxy to an http proxy service

2023-02-25 Thread Francis Daly
On Sat, Feb 25, 2023 at 02:10:46PM -0500, Saint Michael wrote: Hi there, > that there exist private HTTP proxy services, like webshare.io > the question is how I use them from nginx, and how do I add a pool of HTTP > proxies to the configuration? Stock nginx does not use the correct protocol to

Connecting a reverse proxy to an http proxy service

2023-02-25 Thread Saint Michael
I have a problem reaching a news service that is protected by the evil CF. I found out that there exist private HTTP proxy services, like webshare.io the question is how I use them from nginx, and how do I add a pool of HTTP proxies to the configuration?

Re: website/admin behind my reverse proxy doesn't work

2022-12-29 Thread Maxim Dounin
Hello! On Wed, Dec 28, 2022 at 11:01:11PM +, Mik J via nginx wrote: > Hello, > I have a website hosted on a server using nginx behind a nginx > reverse proxy but things don't work properly. > https://mywebsite.org => works > https://mywebsite.org/admin => doe

website/admin behind my reverse proxy doesn't work

2022-12-28 Thread Mik J via nginx
Hello, I have a website hosted on a server using nginx behind a nginx reverse proxy but things don't work properly. https://mywebsite.org => workshttps://mywebsite.org/admin => doestn't work it redirects to https://mywebsite.org On my backend serverserver {  

Re: reverse proxy with mTLS does not send client certificate to upstream

2022-10-27 Thread Aleksandar Lazic
Hi. On 27.10.22 13:56, Andrej van der Zee wrote: Dear, I am trying to setup an TLS auth reverse proxy with proxy_ssl_certificate and proxy_ssl_certificate_key like below: http { server { listen 8080; resolver 8.8.8.8; location ~ /mimir/(.*)$ { proxy_pass

Re: reverse proxy with mTLS does not send client certificate to upstream

2022-10-27 Thread Maxim Dounin
Hello! On Thu, Oct 27, 2022 at 01:56:25PM +0200, Andrej van der Zee wrote: > I am trying to setup an TLS auth reverse proxy with proxy_ssl_certificate > and proxy_ssl_certificate_key like below: > > http { > server { > listen 8080; > resolver 8.8.8

reverse proxy with mTLS does not send client certificate to upstream

2022-10-27 Thread Andrej van der Zee
Dear, I am trying to setup an TLS auth reverse proxy with proxy_ssl_certificate and proxy_ssl_certificate_key like below: http { server { listen 8080; resolver 8.8.8.8; location ~ /mimir/(.*)$ { proxy_passhttps:///$1; proxy_ssl_certificate_key

Re: help with https to http and WSS to WS reverse proxy conf

2022-09-15 Thread Michael Williams
Francis, WIth your help and suggestions of starting with the simplest and slowly adding steps, it is working. Here is the working config below. I started by getting the web server part only working well. You suggested not to use scheme=http for redirect, so I'm listening on 80 and redirecting. I p

Re: help with https to http and WSS to WS reverse proxy conf

2022-09-15 Thread Francis Daly
On Mon, Sep 12, 2022 at 05:46:21PM -0700, Michael Williams wrote: Hi there, > Wow thank you. This really helps all the guidance and instruction. I really > appreciate your time. No worries. > One thing to clarify, is that if I turn off NGINX, the client page works > fine and connects to the app

Re: help with https to http and WSS to WS reverse proxy conf

2022-09-12 Thread Francis Daly
On Sun, Sep 11, 2022 at 11:53:43AM -0700, Michael Williams wrote: Hi there, > Francis thanks very much for taking the time to look at this. > Based on your suggestion, I commented out these 3 lines and it got rid of > the looping. I thought the same process that wants the WS feed also looked > f

Re: help with https to http and WSS to WS reverse proxy conf

2022-09-11 Thread Michael Williams
Francis thanks very much for taking the time to look at this. Based on your suggestion, I commented out these 3 lines and it got rid of the looping. I thought the same process that wants the WS feed also looked for inbound on port 80, but that is not the case after all. location @ {

Re: help with https to http and WSS to WS reverse proxy conf

2022-09-11 Thread Francis Daly
On Sat, Sep 10, 2022 at 05:47:29PM -0700, Michael Williams wrote: Hi there, > Can someone with fresh eye please review this config and tell me why > requests are infinite redirection to https? I suspect that whatever you are proxy_pass'ing to is seeing that it is getting a http connection, and i

help with https to http and WSS to WS reverse proxy conf

2022-09-10 Thread Michael Williams
Hi All, Can someone with fresh eye please review this config and tell me why requests are infinite redirection to https? I'm trying to forward inbound requests on port 443 either to the localhost port 80 or the localhost port 25565, depending if it is a request for a WSS or for HTTP (files) Many

Re: 2 x Applications using the same domain behind a reverse proxy

2022-07-26 Thread Ian Hobson
hp code is not being processed. Does anyone has a idea ? Le mardi 19 juillet 2022 à 16:32:05 UTC+2, Mik J via nginx a écrit : Hello Ian, Thank you for your answer. I did what you told me Now I have on my reverse proxy location / {     proxy_pass  http://10.10.10.10:80;   

Re: 2 x Applications using the same domain behind a reverse proxy

2022-07-26 Thread Francis Daly
t; :-( In this case, you have moved away from proxy_pass to a backend server, towards fastcgi_pass to a local socket; so I guess it doe not really matter here and now. The more important thing is: does your application allow itself to be (reverse-proxy) accessed or installed in a "subdirect

Re: 2 x Applications using the same domain behind a reverse proxy

2022-07-25 Thread Mik J via nginx
p code is not being processed. Does anyone has a idea ? Le mardi 19 juillet 2022 à 16:32:05 UTC+2, Mik J via nginx a écrit : Hello Ian, Thank you for your answer. I did what you told me Now I have on my reverse proxy location / {     proxy_pass  h

Re: Reverse proxy forcing language in cookies

2022-07-22 Thread Francis Daly
, maybe something else -- then you can start to configure your nginx to include those things in the requests that it makes to its upstream. I guess it will involve proxy_set_header, but I do not know what your upstream requirements are. (Typically, you reverse-proxy to a thing that you control, s

Reverse proxy forcing language in cookies

2022-07-19 Thread Saint Michael
I was asked to proxy google.com through https://ГУГЛЭ.pl but I need to make Google believe that clients are behind a computer with the Russian language, not English. Now I have this: proxy_cookie_domain https://google.com https://xn--c1aay4a4c.pl; (xn--c1aay4a4c is latin representation of ГУГЛЭ)

Re: 2 x Applications using the same domain behind a reverse proxy

2022-07-19 Thread Mik J via nginx
Hello Ian, Thank you for your answer. I did what you told me Now I have on my reverse proxy location / {     proxy_pass  http://10.10.10.10:80;     proxy_redirect  off;     proxy_set_header    Host    $http_host;     proxy_set_header

Re: 2 x Applications using the same domain behind a reverse proxy

2022-07-18 Thread Ian Hobson
hing works although it's probably a classic for Nginx users. I have a domain https://example.org What I want is this https://example.org goes on reverse proxy => server1 (10.10.10.10) to the application /var/www/htdocs/app1 https://example.org/app2 goes on reverse proxy => server1

2 x Applications using the same domain behind a reverse proxy

2022-07-17 Thread Mik J via nginx
Hello, I don't manage to make my thing works although it's probably a classic for Nginx users. I have a domain https://example.org What I want is thishttps://example.org goes on reverse proxy => server1 (10.10.10.10) to the application /var/www/htdocs/app1https://example.org/

gzip recompression on nginx in reverse proxy mode

2022-07-14 Thread cw318
Faced with strange behavior of nginx in reverse proxy mode. There is web server 1 - the original source. web server 2 on nginx caching data in reverse proxy mode between web server 1 and users. Web server 1 delivers content in maximum gzip compression: gzip compressed data, max compression, from

Re: reverse proxy

2022-07-11 Thread Jessica Dooley
Seconding Thomas's reply - Optimally, this should be done at the application layer. Configure proxy_set_header to send the clients' real public IPs from the reverse proxy to the upstream application. That way, your destination site will see the real IP of every visitor, rather than t

Re: reverse proxy

2022-07-11 Thread Thomas Ward
'on connect' in that approach.  You can still extract IPs, hostnames requested, URIs, etc. from the logs if you configure it right. On 7/11/22 16:22, Saint Michael wrote: I did not explain myself well. My reverse proxy is at https://bellingcat.oneye.us/ it goes to https://www.bellingcat.co

Re: reverse proxy

2022-07-11 Thread Saint Michael
I did not explain myself well. My reverse proxy is at https://bellingcat.oneye.us/ it goes to https://www.bellingcat.com so, every time somebody opens Chrome and goes to https://belloingcat.oneye.us somewhere in my definition I need to fire a bash script (or any script) with some parameters to

Re: reverse proxy

2022-07-11 Thread Thomas Ward
Ideally you would have your reverse proxy hand off to an application that does this.  I don't think there's an inbuilt way to execute a given script every time someone connects via Bash.  This is something your backend application should really be handling. On 7/11/22 15:13, Sai

reverse proxy

2022-07-11 Thread Saint Michael
I have a reverse proxy and need to execute a bash script each time somebody connects to it. What is the right way to do it? I need to update a database. A parameter must be the public IP of the client. ___ nginx mailing list -- nginx@nginx.org To

Re: Reverse proxy to traefik

2022-07-08 Thread Francis Daly
On Thu, Jul 07, 2022 at 11:17:03AM -0300, Daniel A. Rodriguez wrote: Hi there, > Nginx is actually working as RP for several subdomains for which is also SSL > termination. The traefik box is out of my scope, but it has the ability to > negotiate TLS certificates for its own. That's why I need to

Re: Reverse proxy to traefik

2022-07-07 Thread Daniel A. Rodriguez
El 6/7/22 a las 10:47, Francis Daly escribió: On Tue, Jul 05, 2022 at 12:53:05PM +, Daniel Armando Rodriguez via nginx wrote: El 2022-07-02 08:24, Francis Daly escribió: On Fri, Jun 24, 2022 at 04:23:54PM -0300, Daniel Armando Rodriguez wrote: Hi there, Made this representation to illu

Re: Reverse proxy to traefik

2022-07-06 Thread Francis Daly
On Tue, Jul 05, 2022 at 12:53:05PM +, Daniel Armando Rodriguez via nginx wrote: > El 2022-07-02 08:24, Francis Daly escribió: > > On Fri, Jun 24, 2022 at 04:23:54PM -0300, Daniel Armando Rodriguez > > wrote: Hi there, > > > Made this representation to illustrate the situation. > > > https://

Re: Reverse proxy to traefik

2022-07-05 Thread Daniel Armando Rodriguez via nginx
El 2022-07-02 08:24, Francis Daly escribió: On Fri, Jun 24, 2022 at 04:23:54PM -0300, Daniel Armando Rodriguez wrote: Hi there, I need to forward HTTP/HTTPS stream to a traefik within docker container. Additionally, this traefik is also SSL termination. And just at this point where I am stuc

Re: Reverse proxy question

2022-07-02 Thread Francis Daly
On Thu, Jun 23, 2022 at 08:19:06AM +0300, Saint Michael wrote: Hi there, > I have these substitution rules: > subs_filter "https://www.postimees.ee"; "https://postimees.oneye.us"; gir break; > subs_filter "www.postimees.ee" "postimees.oneye.us" gir break; > subs_filter "http://(.*).postimees.ee/(

Re: Reverse proxy to traefik

2022-07-02 Thread Francis Daly
On Fri, Jun 24, 2022 at 04:23:54PM -0300, Daniel Armando Rodriguez wrote: Hi there, > I need to forward HTTP/HTTPS stream to a traefik within docker container. > Additionally, this traefik is also SSL termination. And just at this point > where I am stuck, as the SSL management against Let's Encr

Re: Real client IP in the error logs when a server is behind a reverse proxy

2022-06-30 Thread Mik J via nginx
, You need to set the reverse proxy ip in the www server: https://nginx.org/r/set_real_ip_from Also note this will replace $remote_addr with the value from X-Real-IP header (the original value is in $realip_remote_addr). On Thu, Jun 30, 2022, at 21:56, Mik J via nginx wrote: > Hello, >

Re: Real client IP in the error logs when a server is behind a reverse proxy

2022-06-30 Thread nanaya
Hello, You need to set the reverse proxy ip in the www server: https://nginx.org/r/set_real_ip_from Also note this will replace $remote_addr with the value from X-Real-IP header (the original value is in $realip_remote_addr). On Thu, Jun 30, 2022, at 21:56, Mik J via nginx wrote: > He

Re: Real client IP in the error logs when a server is behind a reverse proxy

2022-06-30 Thread Matthew J Black
Email in error, please notify the author and delete this message immediately. On 30/06/2022 22:56, Mik J via nginx wrote: Hello, I have a real server placed behing my reverse proxy www server 192.168.1.10 <---> 192.168.1.20 reverse proxy <---> NAT Firewall <---> Interrnet <---&

Real client IP in the error logs when a server is behind a reverse proxy

2022-06-30 Thread Mik J via nginx
Hello, I have a real server placed behing my reverse proxywww server 192.168.1.10 <---> 192.168.1.20 reverse proxy <---> NAT Firewall <---> Interrnet <---> Client on Internet My configuration on my reverse proxy (192.168.1.20) looks like that location ^

Re: Is it possible to configure socket connection(not web) in Nginx reverse proxy server

2022-06-27 Thread Sergey A. Osokin
Hi there, hope you're doing well. On Mon, Jun 27, 2022 at 12:47:04AM -0400, mikecon wrote: > > stream { > server { > auth_basic off; The auth_basic directive is a part of http_auth_basic module, [2] so it's not related to a stream modules family. > proxy_ssl off; Th

Is it possible to configure socket connection(not web) in Nginx reverse proxy server

2022-06-26 Thread mikecon
Hi all, I have a CLI client and server written in Go Currently, they are communicating via a socket connection and it's a server streaming connection Now I want to have an Nginx proxy between these two Is it possible to configure the normal socket connection in Nginx? How do that, and what all cod

Reverse proxy to traefik

2022-06-24 Thread Daniel Armando Rodriguez
Hi there I need to forward HTTP/HTTPS stream to a traefik within docker container. Additionally, this traefik is also SSL termination. And just at this point where I am stuck, as the SSL management against Let's Encrypt needs both HTTP and HTTPS traffic. I would appreciate any further guidan

Reverse proxy question

2022-06-22 Thread Saint Michael
I am proxying a website where there is a link like this: https://arvamus.postimees.ee/7550782/lauri-vahtre-tead-kull-kes-utles-n-tahega-sona-ja-siis-juhtus-ei-voi-oelda-mis#_ga=2.218428057.1478980589.1655961279-1635368780.1655961270 my new site is https://postimees.oneye.us I have these substituti

Re: Nginx reverse proxy gzip for json payload

2022-05-28 Thread blason
This is fine - I need a part from Nginx to client. And thanks for clarifying about nginx compressing the request which are only in responses. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,294276,294305#msg-294305 ___ nginx mailing list -- n

Re: Nginx reverse proxy gzip for json payload

2022-05-27 Thread Francis Daly
On Fri, May 27, 2022 at 05:31:10AM -0400, blason wrote: Hi there, note that you have the request from the client to nginx, the request from nginx to the upstream, the response from upstream to nginx, and the response from nginx to the client. "gzip" and friends deal with the response from nginx

  1   2   3   4   5   6   7   8   9   10   >