Welcome! Log In Create A New Profile

Advanced

auth_basic ошибка 500

Андрей Василишин
September 04, 2011 12:48PM
Добавил такой локейшн в конфиг

location /munin {
auth_basic "closed site";
auth_basic_user_file /var/www/x.x.x.x/munin/.htpasswd;
root /var/www/x.x.x.x;
index index.html;
}


и начали выскакивать 500 ошибки в других местах
77.105.184.18 - - [04/Sep/2011:19:26:43 +0300] 500 "GET
/download/2b425cd6e19c88a060693763cbc8233e/110901-n.flv?start=0
HTTP/1.1" 594 "http://video-dom2.ru/onlinetv/player/player.swf"
"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.1 (KHTML, like Gecko)
Chrome/13.0.782.220 Safari/535.1" "http_x_forwarded_for"
195.16.88.124 - - [04/Sep/2011:19:26:43 +0300] 500 "GET
/pl_dom2_host.php HTTP/1.0" 192 "-" "-" "http_x_forwarded_for"
178.134.251.152 - - [04/Sep/2011:19:26:43 +0300] 500 "GET
/download/443239198338db091563639f3d01a0aa/110902-v.flv?start=0
HTTP/1.1" 594 "http://tv-tube.ru/onlinetv/player/player.swf"
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7
(KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7" "http_x_forwarded_for"

x# cat /etc/nginx/nginx.conf
user www-data www-data;
worker_processes 40;
worker_rlimit_nofile 65535;
worker_priority 0;

error_log /var/log/nginx/error_log crit;

pid /var/run/nginx.pid;

events {
worker_connections 65535;
debug_connection 77.47.176.189;
}

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

log_format main '$remote_addr - $remote_user [$time_local] $status '
'"$request" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;
# client_max_body_size 2005m;
#server_names_hash_bucket_size 64;
#client_body_temp_path /tmp;
#client_body_in_file_only clean;
#limit_zone one $binary_remote_addr 10m;
#send_timeout 30;
keepalive_timeout 65;
#proxy_buffering off;
#tcp_nopush on;
tcp_nodelay on;
log_not_found on;
sendfile on;

server {
listen x.x.x.x:80;
server_name x.x.x.x;
access_log /var/log/nginx/x.x.x.x.access.log main;
error_log /var/log/nginx/x.x.x.x.error.log crit;
location ~ \.php$ {
#rewrite ^/download/(\w+)/(.*)
/download.php?hash=$1&filename=$2 last;
proxy_pass http://127.0.0.1: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;
#client_max_body_size 10m;
#client_body_buffer_size 128k;
#proxy_connect_timeout 20;
#proxy_send_timeout 20;
#proxy_read_timeout 20;

}

location /dom_2_filesspisok {
root /var/www/;
open_file_cache max=3000 inactive=120s;
open_file_cache_valid 30s;
open_file_cache_min_uses 2;
open_file_cache_errors off;
try_files
/x.x.x.x-st1$uri
/x.x.x.x-st2$uri
=404;
internal;
flv;
limit_rate_after 640k;
limit_rate 64k;
output_buffers 1 128k;
# aio on;
# directio 4m;
# set $limit_rate 256k;

}
location / {
rewrite ^/download/(\w+)/(.*)
/download.php?hash=$1&filename=$2 last;
root /var/www/x.x.x.x;
}

#location /munin {
# auth_basic "closed site";
# auth_basic_user_file /var/www/x.x.x.x/munin/.htpasswd;
# root /var/www/x.x.x.x;
# index index.html;
#}

location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
allow y.y.y.y;
}

}

}



# nginx -V
nginx: nginx version: nginx/1.1.0
nginx: configure arguments: --prefix=/etc/nginx
--conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-client-body-temp-path=/var/lib/nginx/body
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi
--http-log-path=/var/log/nginx/access.log
--http-proxy-temp-path=/var/lib/nginx/proxy
--lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid
--with-debug --with-file-aio --with-http_flv_module
--with-http_geoip_module --with-http_realip_module
--with-http_secure_link_module --with-http_stub_status_module
--without-http_memcached_module --without-http_scgi_module
--without-http_split_clients_module --without-http_uwsgi_module


--
WBR, Andrey Vasilishin CDIG1-UANIC, CDIG1-RIPE

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

auth_basic ошибка 500

Андрей Василишин September 04, 2011 12:48PM

Re: auth_basic ошибка 500

Maxim Dounin September 04, 2011 01:14PM

Re: auth_basic ошибка 500

Андрей Василишин September 04, 2011 01:42PM

[BUG] sendfile on; & output_buffers 1 128k;

Андрей Василишин September 05, 2011 11:20AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Igor Sysoev September 05, 2011 11:48AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Андрей Василишин September 08, 2011 08:46AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Maxim Dounin September 08, 2011 09:22AM

Re: [BUG] sendfile on; & output_buffers 1 128k; Attachments

Андрей Василишин September 09, 2011 04:00AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Maxim Dounin September 09, 2011 05:02AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Андрей Василишин September 09, 2011 05:18AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Igor Sysoev September 09, 2011 05:56AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Maxim Dounin September 09, 2011 06:18AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Maxim Dounin September 09, 2011 06:58AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Андрей Василишин September 09, 2011 09:28AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Igor Sysoev September 09, 2011 09:30AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Igor Sysoev September 09, 2011 05:58AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Maxim Dounin September 12, 2011 05:54PM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Maxim Dounin September 05, 2011 01:02PM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Андрей Василишин September 05, 2011 01:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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