phpMyFAQ requires HTTP even though the Browser uses HTTPS (behind a proxy)
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:
- 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
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
Did you configured the https URL in the phpMyFAQ admin configuration?
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!
@trienow do you have database access via e.g. phpMyAdmin?
Hi, yes I do via the postgre SQL shell.
Look for the entry "main.referenceURL" in the table "faqconfig" and add "https" to the URL.
Hi Thorsten, thank you very much! It now works perfectly :)