Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
проблема с каталогами
- To: nginx-ru@xxxxxxxxx
- Subject: проблема с каталогами
- From: "smack87" <nginx-forum@xxxxxxxx>
- Date: Tue, 15 Feb 2011 03:05:55 -0500
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=sk6hEDlrBtpTONDuXO336c3XKPLkOpc5ifToQY4RUto=; b=tOuzkGfGWkRDYGf2P9mSACkgBy6Z1n7p2+ZTbIpAEWpS5Lb7fbUgTpn45rdcZrNa6Do2HXaYOwS11dXGk/kD1au+HG35Hkz5TqKE5oxzQqyCmoxoCiAnRZ4wTVxAhvJb;
Привет, есть такой конфиг
[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 очень мало понимаю,
посоветуйте что можно почитать чтобы
лучше разобраться. В документации
ничего не понятно.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,175310,175310#msg-175310
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|