I am using Magento 2 with Nginx for SSL termination with Apache (in DirectAdmin) and PHP-PFM. Everything is working good except when.
- A user creates a new user account
- User update newsletter subscription from its own account.
In the browser shows, 503 service unavailable. In the error log:
[proxy_fcgi:error] [pid 9897:tid 140081599657728] [client 127.0.0.1:48686] AH01067: Failed to read FastCGI header, referer: [url in use]
[proxy_fcgi:error] [pid 9897:tid 140081599657728] (104)Connection reset by peer: [client 127.0.0.1:48686] AH01075: Error dispatching request to : , referer: [url in use]
I have turned of Varnish, I have turned of Redis, I have turned of OPCache, I have tested to add fastcgi to Nginx config (No experience in that).
I have a feeling what happens is some kind of redirect after account is created (emails are sent out, account is created). And then the 503 error shows.
Must be some miss configuration in the nginx config, I assume.
Anybody out there that can help me. I am starting going crazy about this problem. I have have read everything on Google, I think.
Parts of Ngix config:
location ~ \.php$
{
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/nginx_limits.conf;
if (-f $request_filename)
{
fastcgi_pass unix:/usr/local/php|PHP1_RELEASE|/sockets/|USER|.sock;
}
}
location /
{
# access_log off;
proxy_buffering off;
proxy_pass http://xxxx:6081;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port 443;
proxy_set_header Host $host;
}