ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nginx + phpPgAdmin


  • To: nginx-ru@xxxxxxxxx
  • Subject: nginx + phpPgAdmin
  • From: "mj_nooker" <nginx-forum@xxxxxxxx>
  • Date: Sun, 14 Apr 2013 20:21:59 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=helium.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=J6wu0BbjcO497AKK+JftJFjClm9k6jZ02XODEaTLR3Y=; b=d6fkq4WGAeIqQNha1JbyS5KdewNdGxFlOvcjyRlS2GgBXopQeOpNRv51FJZBDq0RaXmohFmOXQXEKZBMUxJoW+lh3R2WJ01YnNCJmbUGlC85EvBVM3deBf0/szxgvQy0rGi8xCMhth0OB76kEqjAxx5Cu7lR8pye6yCe3UKvN7c=;

Привет!

FreeBsd + nginx + php-fpm + phpPgAdmin.

Есть сайт site.com
Он лежит в /var/www/sites/site.com/public

Надо к нему прикрутить phpPgAdmin.
Он лежит в /usr/local/www/phpPgAdmin

Начитался документации и примеров nginx + phpMyAdmin.
Настроил nginx.conf

Сайт работает (blitz, php)
phpPgAdmin - нет. 
Если набираю site.com/pgadmin - пишет No input file specified.
Если набираю site.com/pgadmin/index.html (тестовый статический
/usr/local/www/phpPgAdmin/index.html) - все ок, html отображается.

Конфиг nginx:

user  www www;
worker_processes  2;

error_log  /var/log/nginx/nginx-error.log;

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"';

    server_names_hash_bucket_size 64;
    access_log  /var/log/nginx/access.log;

    sendfile        on;
    client_max_body_size 2000m;
    keepalive_timeout  60;

    include /usr/local/etc/nginx/Include/site.com.conf;

}

Конфиг Include/site.com.conf :

server {
        listen       91.203.31.184:80;
        server_name  site.com www.site.com;

    sendfile             on;
    client_max_body_size 2000m;
    keepalive_timeout    60;

        location / {
                root /var/www/sites/site.com/public;
                try_files $uri $uri/ /index.php?route=$uri&$args;
                index index.html index.php;

               add_header Last-Modified "";
        }

        location /pgadmin/ {
                alias /usr/local/www/phpPgAdmin/;
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $request_filename;
                include /usr/local/etc/nginx/fastcgi_params;
        }

        server_name_in_redirect off;

        location ~ \.php$ {
                fastcgi_pass   127.0.0.1:9000;
                fastcgi_index  index.php;

                fastcgi_param  SCRIPT_FILENAME 
/var/www/sites/site.com/public$fastcgi_script_name;
                fastcgi_param  QUERY_STRING     $query_string;
                fastcgi_param  REQUEST_METHOD   $request_method;
                fastcgi_param  CONTENT_TYPE     $content_type;
                fastcgi_param  CONTENT_LENGTH   $content_length;
                fastcgi_param  REDIRECT_STATUS  200;
                fastcgi_param  REQUEST_URI        $request_uri;
                fastcgi_param  DOCUMENT_URI       $document_uri;
                fastcgi_param  DOCUMENT_ROOT      $document_root;
                fastcgi_param  SERVER_PROTOCOL    $server_protocol;
                fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
                fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;
                fastcgi_param  REMOTE_ADDR        $remote_addr;
                fastcgi_param  REMOTE_PORT        $remote_port;
                fastcgi_param  SERVER_ADDR        $server_addr;
                fastcgi_param  SERVER_PORT        $server_port;
                fastcgi_param  SERVER_NAME        $server_name;

                fastcgi_connect_timeout     60;
                fastcgi_ignore_client_abort on;
                fastcgi_intercept_errors    on;
                fastcgi_read_timeout        60;
                fastcgi_send_timeout        60;

                charset                utf-8;
                fastcgi_cache_valid    200 301 302 304 1m;
                fastcgi_cache_key     
"$request_method|$http_if_modified_since|$http_if_none_match|$host|$request_uri";
                fastcgi_ignore_headers "Cache-Control" "Expires";
                fastcgi_hide_header    "Cache-Control";
                add_header             Cache-Control "no-store, no-cache,
must-revalidate, post-check=0, pre-check=0";
                fastcgi_hide_header    "Pragma";
                add_header             Pragma "no-cache";
                expires                -1;
                add_header             Last-Modified $sent_http_Expires;

                fastcgi_buffer_size          512k;
                fastcgi_buffers              4 512k;
                fastcgi_busy_buffers_size    512k;
                fastcgi_temp_file_write_size 512k;
        }

}

Пожалуйста, подскажите, где может быть ошибка? 
Два дня промучился, глаза красные, а толку нет.

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,238367,238367#msg-238367

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.