DNS configuration to invoke complete URL

Francis Daly francis at daoine.org
Tue May 26 23:35:31 UTC 2015


On Tue, May 26, 2015 at 10:20:27AM -0400, smsmaddy1981 wrote:

Hi there,

>    server {
>        listen 80;
>        server_name workspace.corp.no;
> 
>        location / {
>           proxy_pass http://workspace.corp.no/workspace/agentLogin;
>        }
>     }
> 
> Expected to see:
> accessing URL: http://workspace.corp.no should result in
> http://workspace.corp.no/workspace/agentLogin

What, specifically, do you mean by that?

You want to see a http redirect to the new url? Or you want to see some
other content?

Where does that other content come from?

> What I see:
> Indefinite requests piled up in the logs as shown below

That infinite loop matches what you have configured (assuming that the
nginx machine resolves the name workspace.corp.no to an address that
this nginx listens on).

> Suggest, how do I achieve invoking the DNS should call the required absolute
> URL?

I'm afraid that I do not know what you mean by that.

After you explain the behaviour you want, it may become clear how to
configure nginx to achieve that behaviour.

Good luck with it,

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list