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

phpMyFAQ requires HTTP even though the Browser uses HTTPS (behind a proxy) #2760

Closed
trienow opened this issue Dec 14, 2023 · 6 comments
Closed
Assignees
Labels
Milestone

Comments

@trienow
Copy link

trienow commented Dec 14, 2023

Describe the bug
I am running multiple services on the host and have phpMyFAQ in a docker container.

"User" <=HTTPS=> "nginx proxy" <=INTERNAL HTTP=> "apache for phpMyFAQ"

Between the User and my host, I have got HTTPS activated.
However, internally inside my host, I use HTTP for performance.

phpMyFAQ instructs my Browser to load the assets via HTTP (see screenshot below).
This does not work, as the site was loaded via HTTPS initially.

I was unable to log in yet.

To Reproduce
Steps to reproduce the behavior:

  1. Open the site and try to log in

Expected behavior
Would it be possible to use relative paths instead, so the Browser can decide which scheme to use?

Screenshots
grafik

phpMyFAQ:

  • phpMyFAQ version: 3.2.3
  • PHP version: 8.3
  • Database: PostgreSQL
  • Elasticsearch yes/no: No

Desktop:

  • OS: Windows
  • Browser: Tested in Chrome and Firefox
  • Version: Chrome 120.0.6099.110, Firefox 120.0.1

Smartphone:
N/A

Additional context
None

@thorsten
Copy link
Owner

Did you configured the https URL in the phpMyFAQ admin configuration?

@thorsten thorsten added this to the 3.2.4 milestone Dec 15, 2023
@trienow
Copy link
Author

trienow commented Dec 18, 2023

Hi Thorsten, thanks for getting back to me.

Unfortunately, I cannot log in to change the configuration. Is there a way to set a config file to make it work?
I went through the config directory and the documentation, but did not spot any setting. I am sorry if I missed it. Would you mind pointing me into the right direction?

Cheers!

@thorsten
Copy link
Owner

@trienow do you have database access via e.g. phpMyAdmin?

@trienow
Copy link
Author

trienow commented Dec 23, 2023 via email

@thorsten
Copy link
Owner

Look for the entry "main.referenceURL" in the table "faqconfig" and add "https" to the URL.

@trienow
Copy link
Author

trienow commented Dec 27, 2023

Hi Thorsten, thank you very much! It now works perfectly :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants