Solved

Pointing Red Hat Linux to Proxy Server

Posted on 2011-09-30
5
358 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
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now