Hello,
I have some problem with some pages like:
https://domain.com/invoiceplane/payments/form
https://domain.com/invoiceplane/payments/form/46
https://domain.com/invoiceplane/quotes/view/14
https://domain.com/invoiceplane/invoices/view/30
I get 502 errors only on this kind of pages, in all the other pages (dashboard, settings, invoices/quotes lists, etc) everything works like a charm.
Logs says:
2017/10/16 10:31:07 [error] 29401#29401: *21892 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 195.62.161.225, server: domain.com, request: "GET /invoiceplane/invoices/view/70 HTTP/2.0", upstream: "fastcgi://127.0.0.1:8000", host: "domain.com", referrer: "https://domain.com/invoiceplane/dashboard"
My nginx config is:
server {
server_name domain.com www.domain.com;
listen xxx.xxx.xxx.xxx;
root /home/domain/public_html;
index index.html index.htm index.php;
access_log /var/log/virtualmin/domain.com_access_log;
error_log /var/log/virtualmin/domain.com_error_log;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_FILENAME /home/domain/public_html$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT /home/domain/public_html;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param HTTPS $https;
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass localhost:8000;
}
location /invoiceplane {
try_files $uri $uri/ /invoiceplane/index.php?q=$uri;
}
listen 164.132.102.240:443 ssl;
ssl_certificate /home/domain/ssl.cert;
ssl_certificate_key /home/domain/ssl.key;
fastcgi_read_timeout 30;
}
have you any ideas about it?
Regards