Solved

Pointing Red Hat Linux to Proxy Server

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

813 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

13 Experts available now in Live!

Get 1:1 Help Now