Solved

Apache configuration

Posted on 1998-11-30
1
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Powershell script does not exit 4 45
HTML5 storage and web apps 11 44
Allow a tab area under the contents 1 24
Accordion won't close correctly 5 12
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

740 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