Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: невидит root
On Sun, Apr 01, 2007 at 08:40:49PM +0300, deniswork@xxxxxxxxxxxxx wrote:
> Здравстуйте, nginx root не видит...
> задаю root /var/www/server.org;
>
> i делаю проверку,
> if (!-f "$request_filename") {
> fastcgi_pass 127.0.0.1:11000;
> }
>
> server:8181/index.html у меня загружается index.html из
> /usr/local/nginx/html/, а не из /var/www/server.org/
>
>
> Помогите найти ошибку.
>
>
>
> worker_processes 4;
>
> events {
> worker_connections 4096;
> use epoll;
> }
>
> http {
> include /usr/local/nginx/conf/mime.types;
> default_type application/octet-stream;
> access_log off;
>
> server_names_hash_max_size 64;
> server_names_hash_bucket_size 64;
>
> client_body_buffer_size 128k;
> client_body_temp_path /usr/local/nginx;
- client_body_temp_path /usr/local/nginx;
+ client_body_temp_path /usr/local/nginx/client_temp;
> client_body_timeout 30;
> client_header_buffer_size 2k;
> client_header_timeout 120;
> client_max_body_size 1m;
> # client_max_body_size 16m;
> keepalive_timeout 65;
> large_client_header_buffers 2 4k;
> send_timeout 60;
> sendfile on;
> tcp_nodelay on;
> tcp_nopush on;
>
> proxy_buffer_size 2k;
> proxy_buffering off;
> proxy_buffers 32 8k;
> proxy_intercept_errors off;
> proxy_redirect off;
> proxy_connect_timeout 2;
> proxy_read_timeout 120;
> proxy_send_timeout 30;
> proxy_temp_path /usr/local/nginx;
- proxy_temp_path /usr/local/nginx;
+ proxy_temp_path /usr/local/nginx/proxy_temp;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header Host $host;
> proxy_set_header Connection close;
> fastcgi_buffer_size 2k;
> fastcgi_buffers 32 8k;
> fastcgi_intercept_errors off;
> fastcgi_connect_timeout 2;
> fastcgi_read_timeout 120;
> fastcgi_send_timeout 30;
> fastcgi_temp_path /usr/local/nginx/fastcgi_temp;
>
> fastcgi_param REQUEST_METHOD $request_method;
> fastcgi_param CONTENT_TYPE $content_type;
> fastcgi_param CONTENT_LENGTH $content_length;
> fastcgi_param REQUEST_URI $request_uri;
> fastcgi_param QUERY_STRING $query_string;
> fastcgi_param REMOTE_ADDR $remote_addr;
> fastcgi_param SERVER_ADDR $server_addr;
>
> server {
> listen 212.26.141.121:8181;
> server_name server.org
> root /var/www/server.org;
Это не "root /var/www/server.org", а
server_name server.org root /var/www/server.org;
> location / {
> if (!-f "$request_filename") {
> fastcgi_pass 127.0.0.1:11000;
> }
> }
>
> }
> }
--
Игорь Сысоев
http://sysoev.ru
|