DNS configuration to invoke complete URL

Francis Daly francis at daoine.org
Mon Jun 8 22:49:40 UTC 2015


On Mon, Jun 08, 2015 at 08:39:51AM -0400, smsmaddy1981 wrote:

Hi there,

> Yes, the absolute URL http://workspace.corp.no/workspace/agentLogin works
> fine
> 
> I just need to understand the configuration approach to redirect the URL
> request (http://workspance) to absolute url
> (http://workspace.corp.no/workspace/agentLogin)

Was this not answered in http://forum.nginx.org/read.php?2,258982,259381 ?

If the servers workspace.corp.no and workspance are the same, then

  location = / { return 301 /workspace/agentLogin; }

and if they are two different servers, then on the workspance one:

  location = / { return 301 http://workspace.corp.no/workspace/agentLogin; }

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list