Welcome! Log In Create A New Profile


Nginx proxy_pass + Query String Arguments

Posted by Abson 
Nginx proxy_pass + Query String Arguments
April 04, 2019 10:16AM
Good Day;

I am working a project to execute proxy_pass of query strings. I managed to proxy pass say www.examplexyz.com to www.testxyz.com however anything after ? on www.testxyz.com?money=value&net=ip does not display.

Can you kindly advise who i can achieve this:-

Below are my configs for examplexyz.com
server {
listen 443 default_server;
listen [::]:443 ssl default_server;
include snippets/self-signed.conf;
include snippets/ssl-params.conf;

server_name www.examplexyz.com;
root /var/www/examplexyz.com
index index.html;

location /{
proxy_pass http://www.testxzy.com/money/get.html?money=value&net=ip
try_files $uri $uri/ =404;

You help is highy appreaciated.
Re: Nginx proxy_pass + Query String Arguments
April 05, 2019 10:32AM
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 106
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready