Could not determine your IP address

Igor Sysoev is at rambler-co.ru
Sat Oct 28 19:36:37 MSD 2006


On Sat, 28 Oct 2006 MerLIN <IIIEB4YK at ya.ru> wrote:

> Здравствуйте. Есть одна странность при работе с форумом ipb 2.1.7. При
> попытке зайти на главную страницу получаю "Could not determine your IP
> address". И всё. На тот же хост поставил другую версию форума: ipb 2.2 RC1
> - всё отлично, всё работает. Включил запись debug-информации, повторил
> запросы на 2.1.7 и на 2.2. Error логи с debug-информацией, относящиеся к
> этим запросам, во вложении. Сервер под FreeBSD 6.1. Вот конфигурация nginx:
>
> user  www;
> worker_processes  1;
> pid /var/run/nginx.pid;
>
> events {
>     worker_connections  1024;
> }
>
> http {
>     include       /usr/local/etc/nginx/conf/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"';
>
>     access_log  /var/log/nginx.access.log  main;
>     error_log  /var/log/nginx.error.log debug_alloc debug_mutex
> debug_event debug_http;
>
>     sendfile       on;
>     tcp_nopush     on;
>     tcp_nodelay    on;
>
>   server {
>
>         listen       8081;
>         server_name  zibserv;
>
>         location / {
>             root   /usr/local/www/apache22/data/;
>             index  index.html index.htm index.php;
>         }
>
>
>         location ~ \.php$ {
>
>             fastcgi_pass   unix:/tmp/php-fastcgi.sock;
>             fastcgi_index  index.php;
>             fastcgi_param       DOCUMENT_ROOT
> /usr/local/www/apache22/data;
>             fastcgi_param       SCRIPT_FILENAME
> /usr/local/www/apache22/data$fastcgi_script_name;
>             fastcgi_param       PATH_TRANSLATED
> /usr/local/www/apache22/data$fastcgi_script_name;
>             fastcgi_connect_timeout 60;
>             fastcgi_send_timeout 180;
>             fastcgi_read_timeout 180;
>             fastcgi_buffers 4 128k;
>             fastcgi_buffer_size 128k;
>             fastcgi_intercept_errors on;
>             fastcgi_param       SCRIPT_NAME  $fastcgi_script_name;
>             fastcgi_param       QUERY_STRING    $query_string;
>             fastcgi_param       CONTENT_TYPE    $content_type;
>             fastcgi_param       CONTENT_LENGTH  $content_length;
>             fastcgi_param       REDIRECT_STATUS 200;
>             fastcgi_param       SERVER_ADDR     $server_addr;
>             fastcgi_param       SERVER_PORT     $server_port;
>             fastcgi_param       SERVER_PROTOCOL $server_protocol;
>             fastcgi_param       SERVER_SOFTWARE "nginx";
>             fastcgi_param       GATEWAY_INTERFACE       "CGI/1.1";
>             fastcgi_param       SERVER_NAME     $server_name;
>             fastcgi_param       REQUEST_URI     $request_uri;
>             fastcgi_param       REQUEST_METHOD  $request_method;
>             fastcgi_param       REMOTE_USER     $remote_user;

               fastcgi_param       REMOTE_ADDR     $remote_addr;

>         }
>     }
> }


Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list