Home  >  Q&A  >  body text

php - accessed through HTTPS, but HTTPS, HTTP_USESSL, SERVER_PORT in $_SERVER cannot be judged

The return values ​​are null, null, and 80. There are 2 machines for load balancing. What are the possible reasons?

ringa_leeringa_lee2686 days ago800

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-07-04 13:48:00

    It should be that you made https on nginx, and then reverse proxy to the backend nginx+php-fpm, right?

    Your nginx needs to tell

    php-fpm: Hi, I used https. How to tell, see below

    fastcgi_param  HTTPS 'on';

    reply
    0
  • Cancelreply