Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emerg] 83583#0: unknown directive "server_tokens"
- To: nginx-ru@xxxxxxxxx
- Subject: [emerg] 83583#0: unknown directive "server_tokens"
- From: Khalidov Magomed <kmb@xxxxxxxxxxxx>
- Date: Thu, 1 Nov 2007 10:30:15 +0300
- Organization: ДагЭнерго
Hello nginx-ru,
nginx -V
nginx version: nginx/0.5.32
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt=-I
/usr/local/include --with-ld-opt=-L /usr/local/lib
--conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx
--pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log
--user=www --group=www
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
--http-log-path=/var/log/nginx-access.log --with-http_addition_module
--with-http_flv_module --with-http_perl_module --with-http_realip_module
--with-http_ssl_module --with-http_stub_status_module --with-http_sub_module
uname -rs
FreeBSD 6.2-RELEASE
less nginx.conf
user www;
worker_processes 2;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include 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 /var/log/apache/nginx_access.log main;
error_log /var/log/apache/nginx_error.log;
sendfile on;
keepalive_timeout 65;
gzip on;
server {
#server_tokens off;
listen www.abc.ru:80;
server_name www.abc.ru;
location /
{
# Максимальный размер отдаваемого файла
client_max_body_size 20M;
# Адрес, на который будем проксировать
proxy_pass http://www.abc.ru:8080;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_send_lowat 12000;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_temp_path /var/tmp/nginx;
}
}
}
--
Best regards,
Khalidov Magomed mailto:kmb@xxxxxxxxxxxx
|