Welcome! Log In Create A New Profile

Advanced

Re: Complex url rewriting

November 24, 2015 05:53PM
I think this seems to be working for now. Does anyone see a problem with it:

# define web root
root /var/www/html/public;
index index.php default.php index.html;

location / {
try_files $uri $uri/ =404;
}

location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;

# Save the $fastcgi_path_info before try_files clear it
set $path_info $fastcgi_path_info;
fastcgi_param PATH_INFO $path_info;
try_files $fastcgi_script_name =404;

fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
Subject Author Posted

Complex url rewriting

lmauldinpe15 November 23, 2015 12:48PM

Re: Complex url rewriting

lmauldinpe15 November 23, 2015 01:19PM

Re: Complex url rewriting

B.R. November 23, 2015 02:46PM

Re: Complex url rewriting

lmauldinpe15 November 23, 2015 03:34PM

Re: Complex url rewriting

Aleksandar Lazic November 23, 2015 03:52PM

Re: Complex url rewriting

lmauldinpe15 November 24, 2015 05:21PM

Re: Complex url rewriting

lmauldinpe15 November 24, 2015 05:53PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 314
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready