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

Re: apache vhost: remote document root



On 04/01/2012 09:20, Victor Nitu wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I have a minor configuration problem, and I need your help.

On my home network, apache is working fine with vhosts, but I need a
way to redirect inbound traffic requiring a specific address to another
host on my LAN.
The problem seems to be quite simple: from my point of view, it's as
easy as declaring a remote document root for my vhost, but I don't know
if there exists such feature in apache web server.

The setup:

              [system1]   [system2]
INTERNET   - [    NAT]   [       ]
via PPPoE    [gateway] - [ client]
              =domain1=   =domain2=

- - system1 is connected directly to internet via PPPoE, and is acting
like a gateway, with NAT enabled and other network services running
- - I have two domain names (domain1,domain2), both operated by
freedns.afraid.org service which allows me to reach my machines from
the web. Update is done on ifup by inadyn on both systems
- - there I have system2 in my LAN, who needs to be accessed from
exterior via domain2, but the request reaches my system1 first, and I
need to redirect somehow the traffic to domain2

Right now, both domains point to the same IP, which is the way it
should be.
I got myself a bit tangled in this setup, so I need some guidance
please.


TIA,
- -- Victor Nitu
.........................
  victor@debian-linux.ro
sip:victor.nitu@ekiga.net
`````````````````````````
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Debian GNU/Linux - Romania

iQEcBAEBAgAGBQJPBBnQAAoJEMn1b0XNY6wKRf4H+wXOuRJzwY7s7HUzfQ6v/M0X
4elekc7VWqUcuXeVLynWTY7Uvx0uGKpECnzsY2A+o1kZ6TyR1isQkoK/bHptggQr
2FY7IzwWVzSy0V+3ISmqjvD/DfEFlOY5hUvjvMMmcscFzJFyLLTSeCA7w3+NoP3s
XMhSZc3XS8kVQplwiRUWX70mV6npwel8oYUYoxwDAQGHmaYjZetbXgwuzyaS44CP
cizX0gzzhwPhGeJ18h6H14/ZggiCY2Xk7NQSFM/B3zTihZdEAUXErKIfG+Jp8XP7
JLuf3CAgfMY8apY26N+phjpojpzAfuJxdH0DNcEq05128N2h39KDKoZ/y1fTVJE=
=Me41
-----END PGP SIGNATURE-----


do you think redirect system1 "traffic" to system2? because I think this need to you or
something like:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/favicon.ico$ [NC]
RewriteCond %{DOCUMENT_ROOT}/favicon.ico !-f
RewriteRule ^(.*)$ /path_to_system_default_favicon.ico [L]


Reply to: