HTTPS error #348

Closed
opened 2026-02-04 18:38:33 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @Pokamaka on GitHub (Aug 10, 2023).

Hello!
I installed and configured the bar as written in the manuals, but ran into the following problem.
When setting up a virtual host, specifying port 443 and adding a SSL certificate in the site console, it displays the following error
Mixed Content: The page at 'https://domain//' was loaded over HTTPS, but requested an insecure script 'http://localhost(ip)1337/static/js/main.5cf99e6c.js'. This request has been blocked; the content must be served over HTTPS.

I am attaching the descriptions of the virtual host on Apache2

<VirtualHost *:443>

    ServerName domain

    SSLProxyEngine on
    SSLCertificateFile ///
    SSLCertificateKeyFile ///
    SSLCACertificateFile ////

    Protocols h2 http/1.1

    RewriteEngine On
    RewriteCond %{HTTP:Upgrade} =websocket [NC]
    RewriteRule /(.*)            ws://localhost:1337/$1 [P,L]

    ProxyPreserveHost On
    ProxyRequests Off
            ProxyPass /.well-known !
            ProxyPassReverse /.well-known !
            ProxyPass /robots.txt !
            ProxyPassReverse /robots.txt !
            ProxyPass / http://localhost:1337/
            ProxyPassReverse / http://localhost:1337/

</VirtualHost>

Thank you in advance

Originally created by @Pokamaka on GitHub (Aug 10, 2023). Hello! I installed and configured the bar as written in the manuals, but ran into the following problem. When setting up a virtual host, specifying port 443 and adding a SSL certificate in the site console, it displays the following error Mixed Content: The page at 'https://domain//' was loaded over HTTPS, but requested an insecure script 'http://localhost(ip)1337/static/js/main.5cf99e6c.js'. This request has been blocked; the content must be served over HTTPS. I am attaching the descriptions of the virtual host on Apache2 ``` <VirtualHost *:443> ServerName domain SSLProxyEngine on SSLCertificateFile /// SSLCertificateKeyFile /// SSLCACertificateFile //// Protocols h2 http/1.1 RewriteEngine On RewriteCond %{HTTP:Upgrade} =websocket [NC] RewriteRule /(.*) ws://localhost:1337/$1 [P,L] ProxyPreserveHost On ProxyRequests Off ProxyPass /.well-known ! ProxyPassReverse /.well-known ! ProxyPass /robots.txt ! ProxyPassReverse /robots.txt ! ProxyPass / http://localhost:1337/ ProxyPassReverse / http://localhost:1337/ </VirtualHost> ``` Thank you in advance
OVERLORD added the help wanted label 2026-02-04 18:38:33 +03:00
Author
Owner

@daniel-hiller commented on GitHub (Sep 23, 2023):

Hi,
it seems you forgot to change the BaseURL in the docker-compose or .env file

The BaseURL must match the domain, you want to use including http:// or https://

@daniel-hiller commented on GitHub (Sep 23, 2023): Hi, it seems you forgot to change the BaseURL in the docker-compose or .env file The BaseURL must match the domain, you want to use including http:// or https://
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#348