Welcome! Log In Create A New Profile

Advanced

Re: Incorrect $request_filename in 1.0.5?

August 28, 2011 02:27AM
$request_filename will change when you rewrite the request, even if you just do an internal rewrite.
$request_filename is defined as root or alias directive + current URI.

So if you have a root defined as /var/www/testsite and you redirect to index.php then you'll get /var/www/testsiteindex.php

URIs in Nginx always start with a / so it's generally a good idea to rewrite to /index.php instead of index.php
Subject Author Posted

Incorrect $request_filename in 1.0.5?

Roger Smith August 27, 2011 07:21PM

Re: Incorrect $request_filename in 1.0.5?

Ensiferous August 28, 2011 02:27AM

Re: Incorrect $request_filename in 1.0.5?

Roger Smith August 28, 2011 10:18AM

Re: Incorrect $request_filename in 1.0.5?

Igor Sysoev August 28, 2011 01:50PM

Re: Incorrect $request_filename in 1.0.5?

Roger Smith August 28, 2011 03:17PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 83
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready