Different PHP version on HTTP and HTTPS
Posted: Mon Jun 14, 2021 6:24 am
Vesta CP is behaving weird, I were not able to set certificate using Lets encrypt or by copying 3 certificates to SSL input.
I have put certificates manually and set them in /etc/httpd/conf.d/secure.mikrobak.httpd.ssl.conf and opened 443 port in ip.conf file.
This at least opened the 443 port and now https opening with right certificate. But on https and without https it is taking different PHP version
7.4 -> http://secure.mikrobak.com/uploads/
5.4 -> https://secure.mikrobak.com/uploads/
I am out of ideas. I have forced to load specific php version through HTaccess but didn't worked. Neither setting set handler from dns.conf file worked
OS is Centos 7 + Vesta CP Nginx
Please guide.
Thanks
I have put certificates manually and set them in /etc/httpd/conf.d/secure.mikrobak.httpd.ssl.conf and opened 443 port in ip.conf file.
This at least opened the 443 port and now https opening with right certificate. But on https and without https it is taking different PHP version
7.4 -> http://secure.mikrobak.com/uploads/
5.4 -> https://secure.mikrobak.com/uploads/
I am out of ideas. I have forced to load specific php version through HTaccess but didn't worked. Neither setting set handler from dns.conf file worked
OS is Centos 7 + Vesta CP Nginx
Please guide.
Thanks