Search code examples
phpsslnginxtimeout

PHP and Nginx, suddenly extremely slow over SSL but perfect over HTTP


A site of mine just started responding painfully slow over HTTPS, TTFB is upwards of 20 seconds, and every 3rd load or so, I receive a 504 Gateway Time-Out.

Without SSL, whole site loads in sub 1 second.

I cannot find anything that would be causing this, and I'm at a loss as to why SSL-only would be timing out. Looking for direction for investigation.


Solution

  • This was a DNS misconfiguration; the web host corrected their own mistake and now everything is fine.