Ошибка 502 Bad Gateway возникает при регистрации в приложении Laravel. .
В php-fpm.log я вижу следующее сообщение:
Код: Выделить всё
[09-Jul-2019 16:38:42] ERROR: Another FPM instance seems to already listen on /Users/daniel/.config/valet/valet.sock
[09-Jul-2019 16:38:42] ERROR: FPM initialization failed
Вот мой nginx.conf:
Код: Выделить всё
user "daniel" staff;
worker_processes auto;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
client_max_body_size 128M;
gzip on;
gzip_comp_level 5;
gzip_min_length 256;
gzip_proxied any;
gzip_vary on;
ssi on;
gzip_types
application/atom+xml
application/javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/plain
text/x-component;
include "/Users/daniel/.config/valet/Nginx/*";
include servers/*;
include valet/valet.conf;
}
Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/569 ... ad-gateway