Closed sigulete closed 1 year ago
Can you check the content of your apache site enabled for Lychee ? I am using docker, but the process is probably similar for yours:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName photography.viguier.nl
# DocumentRoot /var/www/Lychee
ProxyPass / http://localhost:90/
ProxyPassReverse / https://photography.viguier.nl/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
Header always set Strict-Transport-Security "max-age=31536000"
BrowserMatch "MSIE [2-6]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME}
RequestHeader set X-Forwarded-SSL expr=%{HTTPS}
SSLCertificateFile /etc/letsencrypt/live/<some site>/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/<some site>/privkey.pem
</VirtualHost>
</IfModule>
and I also have the TRUSTED_PROXIES=*
set.
I added the following configuration based on your setup, and it worked:
RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME}
RequestHeader set X-Forwarded-SSL expr=%{HTTPS}
I'm having a strange problem that happens only when I connect to my server using
HTTPS
protocol.Explanation of my setup
.env
sets:TRUSTED_PROXIES=*
What is working?
http
(port 80) andhttps
(port 443). Hence the redirection is OK and Lychee behaves as expected behind the proxy server.http
, and I click on Show Logs. It opens a new window and works as expected.What is not working?
https
, and I click on Show Logs, the new window doesn't load and the browser displays a message informing that app.css & app.js can't be loaded. Message below.