Nginx - Hide Proxy Server url + Header

Sathishkumar Pannerselvam sathish046 at gmail.com
Tue Nov 3 08:51:21 UTC 2020


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20201103/be30c157/attachment.htm>


More information about the nginx mailing list