youngj / EnvayaSMS

Simple SMS and MMS gateway running on Android
http://sms.envaya.org
Other
161 stars 177 forks source link

Use the right HTTP header to pull the URL used in computing the signature #29

Open dadicool opened 12 years ago

dadicool commented 12 years ago

HTTP_HOST is not the correct public url when the gateway is running on server behind a Load Balancer. This is particularly useful when deploying gateway.php on a Paas service.

Tested on HTTP and HTTPS traffic with SSL termination on Load Balancer.