Pointing Red Hat Linux to Proxy Server

Posted on 2011-09-30
Medium Priority
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.
Question by:epmmis
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

Expert Comment

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

Accepted Solution

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

Try these two commands:
export http_proxy

LVL 23

Expert Comment

ID: 36894508
Set the http_proxy variable and export it.

Try these two commands:
export http_proxy

LVL 25

Expert Comment

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"

Author Closing Comment

ID: 37037508

Featured Post

Linux Academy Android App Now Supports Chromecast

We have some fantastic news for our Android fans. We’re so excited to announce that the Linux Academy Android app is now available with Chromecast support. That’s right – simply download the latest update of the Linux Academy App and start casting your favorite course videos!

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month14 days, 14 hours left to enroll

771 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