Welcome! Log In Create A New Profile


/dir/ rewrite to index.php

March 07, 2015 08:18AM
обрабатывается так же как и корень

вот конфиг:

location / {
index index.php;
try_files $uri /index.php$is_args$args;

location ~ ^/(index)\.php(/|$) {
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;

include /etc/nginx/fastcgi_params;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REQUEST_URI $uri;

Subject Author Posted

/dir/ rewrite to index.php

GTAlex March 07, 2015 08:18AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
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