-
-
Notifications
You must be signed in to change notification settings - Fork 52
How to use a proxy / baseUrl? #251
-
My setup:
Apache SSL Proxy is running on port 1234 with TLS 1.3
Apache forwards to 127.0.0.1 port 8080 (podman container with WikiDocs).
Expected behavior:
Click on login button calls "https://example.com:1234/homepage?auth"
Actual behavior:
Click on login button calls "http://127.0.0.1:8080/homepage?auth"
Cause:
From the podman apps perspective apache calls service with "http://127.0.0.1:8080".
Solution:
Do not detect path, set baseUrl in app and use "$baseUrl/homepage?auth"
Issue:
href="<?= $DOC->URL."?auth" ?>"
Alternative: use relative paths "/homepage?auth"
or better "http://127.0.0.1:8080/custompath/homepage?auth" -> "/custompath/homepage?auth"
Hint: setting button works, as it does not use path parsing.
href="<?= $APP->PATH ?>settings.php"
Is this already supported? Do you know a workaround?
Thanks a lot!
Beta Was this translation helpful? Give feedback.