Welcome! Log In Create A New Profile

Advanced

Никак не пойму с try_files

chs
January 31, 2010 09:21AM
Не пойму как сделать простую вещь

Хочу чтобы если в папке test_folder нет файла, то отправлялось бы к apache на обработчик test.php

Если так сделать

location ^~ /test_folder/ {
try_files $uri /test_folder/test.php;
}

, то он просто выводит код test.php .

А вот как сделать, чтобы test.php исполнялся - не пойму.
Subject Author Posted

Никак не пойму с try_files

chs January 31, 2010 09:21AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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