banner
keney

keney

remain optimistic
twitter

Lan Kong Image Hosting Reverse Proxy Issue

1. Problem Encountered#

The layout became disordered (failed) after reverse proxying,
Reason: Reverse proxy request issue

2. Solution#

Reverse proxy issue.
First, modify /config/app.php
Then, modify the corresponding Proxy Host from NginxProxyManager. Add a header under custom locations with the content: proxy_set_header X-Forwarded-Host $http_host;

As shown in the figure:
image
However, after solving the old problem, a new problem arises. The image path should be bound to the domain name, but it generates the previous IP address + port. However, this can be easily solved by directly modifying it in Lsky Image Hosting. In the storage strategy, there is a field for the access URL, just modify it to the correct domain name.

Attachment#

Reference: Issue with accessing HTTPS+domain name+port, NginxProxyManager reverse proxy
Reference: Frequently Asked Questions
Official Documentation: Lsky Documentation
GitHub Repository: lsky-pro

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.