Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Никак не пойму с try files
 
 
Hello chs,
Sunday, January 31, 2010, 8:21:20 PM, you wrote:
> Не пойму как сделать простую вещь
> Хочу чтобы если в папке test_folder нет файла, то отправлялось бы к apache на 
> обработчик test.php
> Если так сделать
> location ^~ /test_folder/ {
-             try_files      $uri /test_folder/test.php;
+             try_files      $uri @test_php;
> }
+location @test_php {
+    fastcgi_pass ...;
+    fastcgi_param SCRIPT_FILENAME $document_root/test_folder/test.php;
+}
> , то он просто выводит код test.php .
> А вот как сделать, чтобы test.php исполнялся - не пойму.
-- 
Best regards,
 Denis                            mailto:denis@xxxxxxxxxx
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
 
 |