Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
I am trying to get the OAuth for Gtalk working.
I am hosting the LHC application behind a reverse-proxy (mod_proxy on Apache).
In the configuration screen (Home->System Settings -> XMPP Settings->Use GTalk for messaging)
The Redirect URL shows the IP address of the box instead of the hostname (I'm hosting on internal IP on port 8080).
It's not a problem, I changed the hostname portion of the URL in the google dev console.
When I click on "Grant Permission to send a message" it looks like it's submitting the redirect URL with the local IP:8080 which is not what I want.
Is this a bug, of a mis-configuration of my web container? (I'm using nginx).
Offline
Ok, so lots of digging in the code. it's using the $_SERVER['HTTP_HOST'] header in the request (not sure this is a good idea but that's another discussion).
So, the answer is, since we're using mod_proxy on the SSL_terminator, in the <VirtualHost> tag for this particular server, simple set ProxyPreserveHost On and it seems to fix the problem.
Offline
Thank you for posting your question in the live helper chat forum!
PeopleInside - Live helper chat - free limited forum support!
For commercial support or GitHub [see FAQ here]
If you want to support this open source project, just donate [see support page]
Something wrong with the forum? [contact a superhero]
Offline