Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm new to nginx and am trying to figure out an issue with redirection. I'm trying to redirect a website from a host running a web application to another domain. That part I've done but I'm looking to mask it. When it redirects, I don't want the user to know they've gone to another domain.

I've substituted the domain names for privacy of my client. But, they are on a Linode at that's running a web application that's at All I want is for any user visiting to be redirected to a temporary site hosted on but without exposing the domain.

Previously, someone had shown me how to do it but it was a long time ago and I no longer have the information to reference. Can someone help me out? I don't want to expose the domain of the testing environment.

server {

    listen       80;

    rewrite ^ permanent;

    #location / {
    #    root     /srv/http/;
    #    index    index.html;

share|improve this question
So, you want to proxy it instead of redirecting? – Dennis Kaarsemaker Nov 11 '12 at 0:24
That would work. I'm not sure the best way to do this really. I'm not very savvy with administration work as I am just taking over a project from someone else who used nginx. – user144992 Nov 11 '12 at 0:44

1 Answer 1

The usual solution is to stick the destination site in a frame. But keep in mind that anyone with half a clue can figure out what the site actually is.

share|improve this answer
I'm not sure how to handle putting the destination site in a frame. Also, it's not that i'm worried about it for the sake of security, it's just for presentation purposes. – user144992 Nov 11 '12 at 0:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.