Solved

Pointing Red Hat Linux to Proxy Server

Posted on 2011-09-30
5
418 Views
Last Modified: 2012-05-12
We have a web app installed in Apache-Tomcat 6.0.18.  Apache is installed on Red Hat AS4 u8 server.

The web app has the capability to connect to data on the internet using a http URL.  The problem is the server is behind our firewall and cannot directly access the internet.  The server can reach the internet via the proxy server.  

How do I configure the server so outbound http traffic goes through the proxy server.
0
Comment
Question by:epmmis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 9

Expert Comment

by:svs
ID: 36894440
Does the app support http proxies?
0
 
LVL 23

Accepted Solution

by:
savone earned 500 total points
ID: 36894485
Set the http_proxy variable and export it.

Try these two commands:
http_proxy=http://urltoyourproxy:port
export http_proxy


0
 
LVL 23

Expert Comment

by:savone
ID: 36894508
Set the http_proxy variable and export it.

Try these two commands:
http_proxy=http://urltoyourproxy:port
export http_proxy


0
 
LVL 25

Expert Comment

by:madunix
ID: 36897362
Set the environmental variable HTTP_PROXY in your profile to your proxy:
export HTTP_PROXY=http://host:port
If it requires authentication you can use export HTTP_PROXY="http://username:password@host:port"
0
 

Author Closing Comment

by:epmmis
ID: 37037508
none
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question