dqj96395 2016-08-09 09:28
浏览 1207
已采纳

nginx GET HTTP / 1.1“500 5

What's the problem?

I access the page without problems but when I try to access a link with jQuery, error 500 appears

195.16.143.6 - XXXXX [09/Aug/2016:08:54:12 +0000] "GET /XXXX.php HTTP/1.1" 500 5 "http://XXXXXX/" "Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"

My conf:

server {
            ## Escucha en el puerto 80 (HTTP)
            listen 80;

            ## Raíz donde se encuentra la página Web
            root /srv/www/arbol/;

            ## Orden de prioridad de los archivos index
            index index.php index.html index.htm;

            server_name arbol.bichomen.com;
            access_log /var/log/nginx/arbol.log;

            try_files $uri $uri/ =404;
            auth_basic "Restricted";
            auth_basic_user_file /etc/nginx/.htpasswd;

            location / {
                    ## try_files $uri $uri/ =404;
            }

            location ~ \.php$ {
                   root /srv/www/arbol;
                   try_files $uri =404;
                   fastcgi_split_path_info ^(.+\.php)(/.+)$;
                   fastcgi_pass unix:/var/run/php5-fpm/arbol.sock;
                   fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
                   fastcgi_index index.php;
                  ##  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                   include fastcgi_params;
            }
    }
  • 写回答

1条回答 默认 最新

  • drpph80800 2016-08-09 12:10
    关注

    I found the error, it is a problem with PHP, and I generated another question:

    Call to undefined function

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 需要跳转番茄畅听app的adb命令
  • ¥50 寻找一位有逆向游戏盾sdk 应用程序经验的技术
  • ¥15 请问有用MZmine处理 “Waters SYNAPT G2-Si QTOF质谱仪在MSE模式下采集的非靶向数据” 的分析教程吗
  • ¥50 opencv4nodejs 如何安装
  • ¥15 adb push异常 adb: error: 1409-byte write failed: Invalid argument
  • ¥15 nginx反向代理获取ip,java获取真实ip
  • ¥15 eda:门禁系统设计
  • ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页
  • ¥15 376.1电表主站通信协议下发指令全被否认问题
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证