• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
route http:// request through proxy server

#1
hi,

we have created an application and have hosted in the clients internal network, we have to use functions for email & SMS in which we have to make a 3rd party web service call for SMTP and SMS api.

The same things are working perfect from public servers.

we have proxy server IP address, but no idea how to make a call through application so that it is routed via proxy server.

- application is made using CI2.2

Thanks,

Bhaumik
Bhaumik Kothari

ADEPTSTATION LLP
https://adeptstation.com
Reply

#2
I think you should address the problem from the server, and not from CodeIgniter. You set the proxy server IP in the Apache httpd-proxy... or something...
Reply

#3
Haven't tried it, but this is at the bottom of config.php.

Code:
/*
|--------------------------------------------------------------------------
| Reverse Proxy IPs
|--------------------------------------------------------------------------
|
| If your server is behind a reverse proxy, you must whitelist the proxy IP
| addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR
| header in order to properly identify the visitor's IP address.
| Comma-delimited, e.g. '10.0.1.200,10.0.1.201'
|
*/
$config['proxy_ips'] = '';
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.