Solved

Apache configuration

Posted on 1998-11-30
1
204 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

911 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

18 Experts available now in Live!

Get 1:1 Help Now