Cloak a hostname

justink101 nginx-forum at nginx.us
Wed Mar 12 04:04:35 UTC 2014


Is it possible assuming I have a domain and uri:

    http://foo.bar/candy

To have the browser location still show http://foo.bar/candy but actually
fetch the content from:

    http://newdomain.com/candy

I.E. simply replace the host. Assume I have:

server {
    listen 443;
    server_name foo.bar;

    root /srv/www/domains/foo.bar;
    index index.html;

    location / {

    }
}

Thanks.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248288,248288#msg-248288



More information about the nginx mailing list