![]() |
|
![]() | ||
|
Subject:
Hostname forward
Category: Computers > Internet Asked by: salman1-ga List Price: $10.00 |
Posted:
16 Feb 2004 23:05 PST
Expires: 01 Mar 2004 11:40 PST Question ID: 307552 |
At this moment, any requests to: www.setcomputing.com is served by my personal Linux machine with Apache (machine name: setcomputing). What I want to be able to do is the following: when a user types: dev.setcomputing.com I want to be able to forward this request to a windows machine (singularity). My setup is the following. Both setcomputing and singularity are connected using a NETGEAR RP614 router. Each machine therefore is assigned a private IP address. What I want to do is any requests to: dev.setcomputing.com to be forwarded to 192.168.0.2 (singularity or the windows machine). NOTE: The primary web-server is: Apache. Is this possible? I know how to setup VirtualHosts which can map hostnames to Directories but is mapping from hostnames to IP addresses (or machines) possible? The solution must be interenet based not intranet. Since this is a rather complicated issue, I may not have been as succinct as I would like to be; so please let me know if you have any questions. | |
| |
|
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
Subject:
Re: Hostname forward
From: brunson-ga on 21 Feb 2004 00:42 PST |
This can be accomplished using the reverse proxy capabilities of mod_proxy. Update your DNS zone to include dev.setcomputing.com and have it resolve to the address of your routers public interface so both dev and www point to it. Then, in your apache config (after loading the module) include the following: <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass http://dev.setcomputing.com http://localname ProxyPassReverse http://localname http://dev.setcomputing.com Fairly straightforward. |
Subject:
Re: Hostname forward
From: majortom-ga on 22 Feb 2004 07:59 PST |
I am doing this successfully for many sites using blocks like this: <VirtualHost *> ServerName dev.setcomputing.com ProxyPass / http://192.168.0.2/ ProxyPassReverse http://192.168.0.2/ <Location /> order allow,deny allow from all </Location> </VirtualHost> Give that a try; it's certainly working for me. I assume you have done "AddModule mod_proxy.c" as well, and LoadModule if you are loading it dynamically. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |