JellyBool 你好
我使用你的配置来配置laravel5.5遇到了一些问题, 我的网站打开总是会502错误
这是我的配置文件:nginx.conf
server
{
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /data/www/hello_laravel/public;
index index.php index.html index.htm;
server_name _;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri /index.php =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
以及报的错误:
502 Bad Gateway
nginx