- Plesk for Linux
example.com website shows
502 Bad Gatewayerror.
- The following error is recorded in Domains > example.com > Logs or in
/var/www/vhosts/example.com/logs/error_logfile when reproducing the issue:
CONFIG_TEXT: AH01075: Error dispatching request to : (polling)
Website's PHP code is taking too long to execute and exceeds the timeout limit.
Increase the PHP timeout limits:
2. Add the following lines to Domains > example.com > PHP Settings > Additional configuration directives:
CONFIG_TEXT: fastcgi_send_timeout 120s;
Or increase the values if they are already configured