Welcome! Log In Create A New Profile

Advanced

проблема с каталогами

February 15, 2011 03:05AM
Привет, есть такой конфиг
[code]
worker_processes 1;

events {
worker_connections 1024;
}


http {
include mime.types;
default_type application/octet-stream;

sendfile on;
keepalive_timeout 65;

proxy_buffers 8 32k;
proxy_buffer_size 64k;




server {
listen 127.0.0.77;

server_name yii-loc.com;
charset utf-8;

root "f:/Dropbox/web/yii-loc.com";

location / {
try_files $uri @php;
}

location @php {
fastcgi_pass 127.0.0.1:9123;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param QUERY_STRING $uri;
include fastcgi_params1;
}
}
[/code]
файл fastcgi_params1:
[code]
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;

fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;

fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;

fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;


# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;


fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;
[/code]

Как сделать, чтобы когда я захожу в yii-loc.com/requrements или любую другую папку, чтобы оно искало там index.php и запускало его на выполнение?
В настройке nginx очень мало понимаю, посоветуйте что можно почитать чтобы лучше разобраться. В документации ничего не понятно.
Subject Author Posted

проблема с каталогами

smack87 February 15, 2011 03:05AM

Re: проблема с каталогами

Igor Sysoev February 15, 2011 03:18AM

Re: проблема с каталогами

smack87 February 15, 2011 03:36AM

Re: проблема с каталогами

smack87 February 15, 2011 03:45AM

Re: проблема с каталогами

Igor Sysoev February 15, 2011 03:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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