will request_uri get passed from cookieless server to 403 page on main server?

Ian Evans ianevans at digitalhit.com
Mon Nov 18 00:21:02 UTC 2013

On 17/11/2013 3:16 PM, Ian M. Evans wrote:
> Migrating to a new server and thought I'd take the time to set up a
> cookieless subdomain on it for static files.
> In my current setup, 403 errors are sent to a php file which grabs the
> $_SERVER["REQUEST_URI"], locates the page of the photo on the site, and
> redirects the person to that page so they see it in our context.
> So now I'm going to set up static.example.com.
> If I set the 403 error page to go to
> error_page 403 http://www.example.com/dhe403.shtml;
> in order to run the PHP on the 403 error, does the REQUEST_URI get passed
> between servers or do I have to do some rewrite magic that I currently
> don't do?
> Thanks.

Just trying to think this through on my own...is it possible to pass the 
request_uri as a variable to the error page on the new server?


error_page 403 http://www.example.com/dhe403.shtml?req=$request_uri;

More information about the nginx mailing list