Solved

Pointing Red Hat Linux to Proxy Server

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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