Show all posts by user
Discussions in Russian
Page 1 of 1 Pages: 1
Results 1 - 10 of 10
Francis,
That was it! The subsequent, asynchronous AJAX call was responding with a Javascript redirect that was remedied using Nginx's sub_filter directive.
location / {
resolver 103.86.99.100;
proxy_bind $server_addr;
proxy_pass https://$host$request_uri;
proxy_redirect https:// http://;
proxy_set_header Accept-Encodi
by
garycnew@yahoo.com
-
Nginx Mailing List - English
Fancis,
I found the following in the body of the Click-Link 200 HTTP Response:
{"url":"https:\/\/example.com\/download\/2770587","isSuccess":1}
To me, it appears to be a Javascript redirect that Nginx is unaware of and in which the https protocol doesn't get rewritten.
Is it possible for Nginx to evaluate the body of a response and rewrite a given string (
by
garycnew@yahoo.com
-
Nginx Mailing List - English
All:
I've made some more progress in that when I copy/paste the AJAX URL into my browser's address-bar, the MP3 download request is successfully made and the MP3 is downloaded (opposed to the previous examples when I clicked on the MP3 download link).
Interestingly, the copy/paste method yields an initial 302 response opposed to a 200 response with the click link method.
Copy/Paste Method
by
garycnew@yahoo.com
-
Nginx Mailing List - English
Fancis,
Nginx is configured as a reverse proxy server in this architecture. It is successfully working except with this AJAX call.
Client:54454 ==> NginxMaster:80 | NginxWorker:52312 ==> UpstreamServer:443
UpstreamServer:443 ==> NginxWorker:52312 | NginxMaster:80 ==> Client:54454
The requests and responses are as originally provided within the original post of this thread
by
garycnew@yahoo.com
-
Nginx Mailing List - English
All:
I discovered that the failing request is making a subsequent, asynchronous AJAX call to port 443 of Nginx where the connection is failing with "Certificate Unknown" against my self-signed certificate.
GET http://example.com/ajax/inc/1488440 HTTP/1.1
Host: example.com
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
User-Agent: Mozilla/5.0 (Wind
by
garycnew@yahoo.com
-
Nginx Mailing List - English
All:
I am successfully able to browse an MP3 website and play the MP3 streams without issue through Nginx (1.19.2).
However, when attempting to download an MP3 through Nginx, I'm receiving a 206 Partial Content HTTP Response:
192.168.0.154 - - [07/Nov/2020:10:25:22 +0000] "GET music.mp3 HTTP/1.1" 206 1982193 "http://domain.com/" "Mozilla/5.0 (Windows NT 10.0; Win6
by
garycnew@yahoo.com
-
Nginx Mailing List - English
Hi Peter!
The high-level problem was to install Nginx on an Asuswrt-Merlin router to reverse proxy certain websites through an established OpenVPN Split-Tunnel.
To do that, I had to ensure the Nginx Workers were using a specified Source IP and/or Ephemeral Port which could be MARKed by iptables for routing through the established OpenVPN Split-Tunnel.
I was able to get it working, but end
by
garycnew@yahoo.com
-
Nginx Mailing List - English
All:
After reviewing the iptables chains workflow, I discovered that the Nginx Worker (100.64.8.236:12345) outside interface was associated with the OUTPUT chain.
(192.168.0.2:12345) OUTPUT ==>
(192.168.0.154:$port) PREROUTING ==> (100.64.8.236:12345) POSTROUTING ==&g
by
garycnew@yahoo.com
-
Nginx Mailing List - English
All:
I discovered a single SYN packet being sent from 192.168.0.2:12345 (nginx worker) when initiating traffic. Nothing more.
# netstat -anp|grep 12345
tcp 0 1 192.168.0.2:12345 172.64.163.36:443 SYN_SENT 14176/nginx: worker
For whatever reason, that packet isn't showing up in my promiscuous tcpdump.
Question: If 192.168.0.2:12345 doesn't receive a SYN,ACK
by
garycnew@yahoo.com
-
Nginx Mailing List - English
X All:
I'm attempting to configure nginx to reverse proxy requests from (192.168.0.2:12345) the same Internal Host Address that it's listening from (192.168.0.2:443) on separate ports using the listen and proxy_bind directives.
# /opt/sbin/nginx -v
nginx version: nginx/1.19.2 (x86_64-pc-linux-gnu)
# cat nginx.conf
user admin root;
#user nobody;
worker_processes 1;
events {
w
by
garycnew@yahoo.com
-
Nginx Mailing List - English