Solved

Apache configuration

Posted on 1998-11-30
1
203 Views
Last Modified: 2010-04-09
I have a question regarding configuration of apache and multiple URLS within one organization.  I have three servers running httpd (LINUX) and only one machine has a valid ip address but I am able to get to the other machines via port number that I have setup for the main server, I run ip masquerading.  I was wanting to know if there was a way to configure my main httpd server to be able to access one of the other httpd servers on my network in a config file.

ie.... www.URL.com ( valid ip address ) valid server
       database.URL.com ( invalid ipaddress )internal server

this way I do not have to say www.URL.com:8000 to get to the database and other information that I have made avaliable to use.
0
Comment
Question by:bryanjones
1 Comment
 
LVL 1

Accepted Solution

by:
squimph earned 120 total points
ID: 1840106
If you only have one "valid" (ie. internet routable) IP address, you won't be able to have multiple names to access your non-valid-IP internal web servers.

If I understand what you want to do, though, you could access the internal servers through a reverse proxy server that would forward and rewrite the URLs.

A reverse proxy could sit on your valid IP address pretending to be a web server (on port 80). When a request for www.url.com/database is received the proxy server could rewrite it and send it out to database.url.com. When database.url.com replies, the proxy can rewrite the reply so it looks like it's coming from www.url.com/database

This method is often used so outsiders have controlled access to webservers behind firewall, or to make apps that live on multiple web servers appear to outsiders that they exist all on the same one. You can also do load balancing, caching and other fun stuff with a proxy server.

Squid is a free proxy server that should be able to do this for you (http://squid.nlanr.net/Squid/  See the "http accellerator" section). The proxy built into apache might also be able to function as a reverse proxy server but I suspect a dedicated proxy like squid would be faster and more reliable.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

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

11 Experts available now in Live!

Get 1:1 Help Now