Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML is built with http and https references and I get a "Mixed content" message #348

Open
marcbria opened this issue Mar 8, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation tip A tip, a workaround or a temporary fix to an issue

Comments

@marcbria
Copy link
Collaborator

marcbria commented Mar 8, 2024

It usually happens when you are behind a reverse proxy and front is httpS, but your container is running as http.

Issue is explained/reported in different posts:

Here ther is a detailed list of solutions:

Easiest one (tested on ojs 3.3) is adding this to your virtual-host:

SetEnvIf X-Forwarded-Proto "https" HTTPS=on

Probably would be nice to document this in readme?

@marcbria marcbria added documentation Improvements or additions to documentation tip A tip, a workaround or a temporary fix to an issue labels Mar 8, 2024
@deusilva
Copy link

Solved with this directive: SetEnvIf X-Forwarded-Proto "https" HTTPS=on

Found this tip here: https://blog.mypapit.net/2023/04/ojs3-behind-nginx-and-apache-proxy.html

But i put this directive on .htaccess in folder /var/www/html instead of change the Virtual Host inside container to keep the change permanent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation tip A tip, a workaround or a temporary fix to an issue
Projects
None yet
Development

No branches or pull requests

2 participants