What server do you use on your VPS ?
Have you set up the right configuration to use https ?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey trying to access my app through vps server but it won't works with https but work fine with http.
https://karachicargoservices.co/login
http://karachicargoservices.co/login
I'm Using cloudflare the server also have another virtual host named which works fine both with or without https.
http://pfslogistics.co/
Please let me know what is causing this issue
you only have a virtual host entry listening on port 80
you need one for port 443 only
Alternatively you can have cloudflare provide the ssl and terminate it so that your server only gets http.
Please or to participate in this conversation.