Группа fastcgi-server'ов, не работают параметры серверов
Vladislav V. Prodan
universite at ukr.net
Fri Jun 1 16:07:56 MSD 2007
Igor Sysoev пишет:
> On Thu, May 31, 2007 at 03:54:36PM +0300, Vladislav V. Prodan wrote:
>> В /usr/local/nginx/conf/sitebuilder и описана секция server.
> Что показывают
> /usr/local/nginx/sbin/nginx -V
nginx version: nginx/0.5.20
built by gcc 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
configure arguments: --prefix=/usr/local/nginx
--http-proxy-temp-path=/usr/local/nginx/tmp/proxy
--http-fastcgi-temp-path=/usr/local/nginx/tmp/fastcgi
--http-client-body-temp-path=/usr/local/nginx/tmp/client-body
--with-http_ssl_module --with-http_stub_status_module
--with-pcre=pcre-7.1 --with-zlib=zlib-1.2.3 --with-openssl=openssl-0.9.8e
> /usr/local/nginx/sbin/nginx -c
2007/06/01 04:56:07 [emerg] 10646#0: the option: "-c" requires file name
Наверное, хотите увидеть конфиг?
cat nginx.conf
user apache;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include conf/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] $request '
'"$status" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
include /usr/local/nginx/conf/sitebuilder;
upstream fast-cgi-backend {
server 127.0.0.1:1089;
server 127.0.0.1:1088;
# server 127.0.0.0:1084;
# server 127.0.0.0:1085;
server 127.0.0.1:1090;
#
# server 127.0.0.1:1088 weight=5;
#
# server 127.0.0.1:1089 max_fails=3 fail_timeout=30s;
# server unix:/tmp/backend3;
}
# }
}
#cat sitebuilder
server {
listen YY.YY.YY.68:80;
listen 8080;
server_name sitebuilder sitebuilder.*;
charset utf-8;
#access_log logs/host.access.log main;
error_log logs/error_debug.log debug;
root /usr/local/sitebuilder/htdocs;
server_name www.XXXXXbuilder.com XXXXXbuilder.com;
location / {
root /usr/local/sitebuilder/htdocs;
index index.php index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
root /usr/local/sitebuilder/htdocs;
# fastcgi_pass 127.0.0.1:1088;
fastcgi_pass fast-cgi-backend;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
/usr/local/sitebuilder/htdocs$fastcgi_script_name;
fastcgi_param PHPRC /usr/local/sitebuilder;
include conf/fastcgi_params;
}
# location ~ /\.ht {
# root /usr/local/nginx/conf/html;
# deny all;
# }
}
P.S. Пока оставили 3 fast-cgi сервера, потому что при большем их числе,
появляются неответы на запросы и таймауты. И каждый сервер два раза в
час рестартует.
--
_____________________
Век живи - век учись!
Think different!
universite[a]ukr.net
ICQ UIN# 38217626
VVP24-UANIC
tel.: 38 (0482) 42-89-43
mobile: 38 (067) 558-73-63
More information about the nginx-ru
mailing list