小编use*_*651的帖子

nginx 500内部服务器错误

当我访问127.0.0.1:6789它工作正常,但当我尝试访问127.0.0.1:6789/busca.html?q=a之类的东西时,我得到500内部服务器错误

这是我的nginx配置文件

server {

    listen   88;


    root /vagrant/rizqcursosonline/rizqcursosonline/frontend/wwwpublic;
    index index.php index.html index.htm;

    server_name example.com;

    location / {
            try_files $uri $uri/ /index.html;                
    }

    error_page 404 /404.html;

    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
          root /vagrant/rizqcursosonline/rizqcursosonline/frontend/wwwpublic/;
    }

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    location ~ \.php$ {
            try_files $uri =404;
            fastcgi_pass unix:/var/run/php5-fpm.sock;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;

    }

}
Run Code Online (Sandbox Code Playgroud)

nginx日志错误

2014/04/12 18:16:32 [error] 4165#0: *5 rewrite or internal redirection cycle while internally …
Run Code Online (Sandbox Code Playgroud)

nginx

5
推荐指数
1
解决办法
4万
查看次数

标签 统计

nginx ×1