nginx codeigniter 502 bad gateway

Die config von nginx wie folgt:

server {
        listen       80;
        server_name  www.example.com;

        root   /home/wwwroot/example.com;
        index index.php  index.html index.htm;

        location / {
                index  index.php index.html index.htm;
        }

        location ~ \.php($|/) {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_split_path_info ^(.+\.php)(.*)$;
            fastcgi_param   PATH_INFO $fastcgi_path_info;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }

        if (!-e $request_filename) {
            rewrite ^/(.*)$ /index.php/$1 last;
            break;
        }

        location ~ /\.ht {
                deny  all;
        }
}

bitte geben Sie mir einige Ratschläge, danke~

  • Wo bekommen Sie das 502 bad gateway auf Antrag root?
  • ja, im root der Anwendung
  • bei der Anwendung root
  • Was ist deine Plattform?
  • Centos5.7 X86_64
  • für den Anfang stellen Sie sicher, dass die php-Dienst ausgeführt wird ps -ef | grep php und sudo netstat -ntlp | grep 9000

InformationsquelleAutor Charles0429 | 2014-02-12
Schreibe einen Kommentar