Re: A single IP address and Domain name serving many servers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can do this with mod proxy.

# Proxy Forwarding
<IfModule !mod_proxy.c>
        LoadModule proxy_module modules/mod_proxy.so
        LoadModule proxy_http_module modules/mod_proxy_http.so
</IfModule>

ProxyRequests Off
<Proxy *>
        Order allow,deny
        Allow from all
</Proxy>

#forward /siteX to backend server
ProxyPass /site1/ http://10.0.0.2/
ProxyPassReverse /site1/ http://10.0.0.2/

ProxyPass /site2/ http://10.0.0.3/
ProxyPassReverse /site2/ http://10.0.0.3/


Alternatively you can use sub-domains too if you have control over
both dns and apache.
site1.example.org ---> WAN IP --> LAN IP where apache does namevirtualhosting
site2.example.org ---> ...

Also support questions should go to users@xxxxxxxxxxxxxxxx and not
dev@, this mailing list is for development related discussion.

Jorge Schrauwen



On Wed, Aug 12, 2009 at 6:01 PM, Branquim<alebrago@xxxxxxxxxxx> wrote:
>
> I want to know if its possible and how to do it...
>
> I have one valid ip address and one internet domain.
>
> What I want to do is:
> - when a client access my domain with: www.mydomain.com on his web browser
> he access my apache server apache1.localnetwork 10.0.0.1 (I already do this
> through nat in iptables).
> - when he types www.mydomain.com/site1 I serve him with another apache
> server inside my local network (apache2.localnetwork 10.0.0.2).
> - when he types www.mydomain.com/site2 he access another server
> apache3.localnetwork 10.0.0.3.
>
> How can I do this redirection with the client passing me just another uri
> and I serving him with different apache servers, having only an external ip
> and domain name?
>
> Thanks.
> --
> View this message in context: http://www.nabble.com/A-single-IP-address-and-Domain-name-serving-many-servers-tp24939564p24939564.html
> Sent from the Apache HTTP Server - Dev mailing list archive at Nabble.com.
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux