Given the error.log file, I think the problem comes from the first location instruction in the HTTPS server (the difference with the HTTP one being ~ \.php$). So I tried to make the exact symetricSo I tried to make the exact symetric (with \.php$ instructions in another location instruction) :