php - accessed through HTTPS, but HTTPS, HTTP_USESSL, SERVER_PORT in $_SERVER cannot be judged
ringa_lee
ringa_lee 2017-07-04 13:46:00
0
1
769

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

ringa_lee
ringa_lee

ringa_lee

reply all(1)
大家讲道理

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';
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!