Welcome! Log In Create A New Profile


Re: спрятать index.php

April 12, 2011 09:59AM
лучше покажу location корневой

location / {
if ($request_filename != "index.php") {
rewrite ^(.*)$ /index.php break;

fastcgi_pass phpfarm;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/vhost/site$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT /home/vhost/site;
include /etc/nginx/fastcgi_params;
proxy_redirect off;
client_body_buffer_size 128k;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 4M;
fastcgi_buffers 4 4M;
fastcgi_busy_buffers_size 8M;
fastcgi_temp_file_write_size 50M;
fastcgi_param COBNUT_PATH /home/vhost/Cobnut/;
fastcgi_param SITE_PATH /home/vhost/site/;
fastcgi_param SITE_CONFIG_MAIN config/conf.ini;
fastcgi_param SITE_CONFIG_REWRITE config/prod.ini;
fastcgi_param SITE_NAME site;
fastcgi_param TMP /home/vhost/site/tmp/;
fastcgi_temp_path /home/vhost/site/tmp/;
fastcgi_param NGINX_UPLOAD_PROGRESS_URL http://site_name/progress;
track_uploads proxied 30s;

nginx + php-fpm.

Ваш вариант не подойдёт из за вот таких вот конфигов =(
Subject Author Posted

спрятать index.php

kirpich April 12, 2011 08:59AM

Re: спрятать index.php

Sergey Shepelev April 12, 2011 09:18AM

Re: спрятать index.php

kirpich April 12, 2011 09:59AM

Re: спрятать index.php

Slava Kokorin April 12, 2011 10:06AM

Re: спрятать index.php

Sergey Shepelev April 12, 2011 10:34AM

Re: спрятать index.php

Igor Sysoev April 12, 2011 11:00AM

Re: спрятать index.php

Alexander Moskalenko April 12, 2011 11:46AM

Re: спрятать index.php

migosm April 12, 2011 12:13PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

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