Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Apache configuration

Posted on 1998-11-30
1
Medium Priority
?
222 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

916 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