Welcome! Log In Create A New Profile

Advanced

Nginx - Hide Proxy Server url + Header

Sathishkumar Pannerselvam
November 03, 2020 03:52AM
Hello Team,

I am very new to th Nginx. Past 2 days, I have been learning the Nginx from
the Open Forum. I am not familiar with most of the term and key words.
Sorry for that.

I need your support on the below case.

I am using "www.ebay.com" as a proxy server. When I am trying to access the
nginx using my public IP from another machine in port 80. I was able to see
the ebay welcome page . But, when i am trying to visit any sub page in
ebay using hyperlink listed in the ebay home page, its not using my nginx
IP instead of it using the ebay hostname.

My expectation is, In browsers it should always show nginx server IP
instead of proxy server hostname.

Below is the code: Your help is really appreciated and relief for my burden.

worker_processes 1;

events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;

server {
listen 80;
server_name localhost;

location / {
proxy_pass https://www.ebay.com;
index index.html index.htm;
} # end location
} # end server
}

--
Thanks,
Sathish Kumar Pannerselvam
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx - Hide Proxy Server url + Header

Sathishkumar Pannerselvam November 03, 2020 03:52AM

Re: Nginx - Hide Proxy Server url + Header

Anton Luka Šijanec November 03, 2020 09:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 66
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready