HTTPS behind another reverse proxy #54
Replies: 6 comments 3 replies
-
Hm yeah that kind of makes sense... the I haven't used this behind a proxy myself. Does anything in this article help? https://cylab.be/blog/122/using-https-over-a-reverse-proxy-in-laravel |
Beta Was this translation helpful? Give feedback.
-
Hello, this isn't working :( |
Beta Was this translation helpful? Give feedback.
-
same issue here |
Beta Was this translation helpful? Give feedback.
-
I am also having this occur to my instance. |
Beta Was this translation helpful? Give feedback.
-
I've had this same issue across many Laravel apps, and the fix I've used in the past has worked here as well. You need to configure your webserver to tell PHP-FPM that the connection is HTTPS, and if I understand correctly, that overrides the URL generation stuff that Laravel uses and forces all URLs to be HTTPS. I don't know how that would work with NGINX or Apache, but this is the entirety of my Caddy config. :8080 {
encode zstd gzip
root * /var/www/kcal/public/
php_fastcgi unix//run/php/php8.3-fpm.sock {
env HTTPS true
}
file_server
} And I just reverse proxy port 8080. |
Beta Was this translation helpful? Give feedback.
-
Please see pull request I convertert @T012m3n7oR into a PR. @cdubz |
Beta Was this translation helpful? Give feedback.
-
Hello, I have deployed your app in a proxmox container and set it up behind a reverse proxy (nginx proxy manager) with SSL connection but when I go on the link, the CSS and the JS doesn't load... if I go directly on the ip adress this works perfectly. There is a screenshot of the chromium error logs in attached files. Can you help me ?
Beta Was this translation helpful? Give feedback.
All reactions