httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michelle Konzack <linux4miche...@freenet.de>
Subject [users@httpd] apache proxy behind dynamic IP (using dyndns.org)
Date Sun, 12 Sep 2004 11:45:28 GMT
*************************************************************************
* Do not Cc: me, because I am on THIS list, if I write here             *
* Keine Cc: am mich senden, bin auf DIESER Liste wenn ich hier schreibe *
*************************************************************************

Hello all, 

I am connected to the Internet via an ADSL 1024/256 kBit and have 
four physical Virtual-Servers in my Network. I have setup the host 
<http://tamy-dogan.homelinux.net/> at <http://www.dyndns.org/>

Wildcards for my "host" is activated. 

The four Virtual-Servers are:

  ____ ( '/etc/hosts' ) ________________________________________________
 /
|  127.0.0.1                                            localhost
|  192.168.1.10                     doc.tamay-dogan.homelinux.net                     doc
|  192.168.1.10                     www.tamay-dogan.homelinux.net                     www
|  192.168.1.10                    home.tamay-dogan.homelinux.net                    home
|  192.168.1.10                   music.tamay-dogan.homelinux.net                   music
|  192.168.1.10                     dos.tamay-dogan.homelinux.net                     dos
|  192.168.1.10                hardware.tamay-dogan.homelinux.net                hardware
|  192.168.1.10             onlinestore.tamay-dogan.homelinux.net             onlinestore
|  
|  192.168.1.14              www.debian.tamay-dogan.homelinux.net              www.debian
|  192.168.1.14             xmms.debian.tamay-dogan.homelinux.net             xmms.debian
|  192.168.1.14            devel.debian.tamay-dogan.homelinux.net            devel.debian
|  192.168.1.14            lists.debian.tamay-dogan.homelinux.net            lists.debian
|  192.168.1.14            slink.debian.tamay-dogan.homelinux.net            slink.debian
|  192.168.1.14           potato.debian.tamay-dogan.homelinux.net           potato.debian
|  192.168.1.14            woody.debian.tamay-dogan.homelinux.net            woody.debian
|  192.168.1.14            sarge.debian.tamay-dogan.homelinux.net            sarge.debian
|  192.168.1.14             etch.debian.tamay-dogan.homelinux.net             etch.debian
|  192.168.1.14              sid.debian.tamay-dogan.homelinux.net              sid.debian
|  
|  192.168.1.60         www.cybercenter.tamay-dogan.homelinux.net         www.cybercenter
|  192.168.1.60     marocco.cybercenter.tamay-dogan.homelinux.net     marocco.cybercenter
|  192.168.1.60      turkia.cybercenter.tamay-dogan.homelinux.net      turkia.cybercenter
|  192.168.1.60        iran.cybercenter.tamay-dogan.homelinux.net        iran.cybercenter
|  192.168.1.60 afghanistan.cybercenter.tamay-dogan.homelinux.net afghanistan.cybercenter
|  
|  192.168.1.69   michelle.home.private.tamay-dogan.homelinux.net   michelle.home.private
|  192.168.1.69      tamay.home.private.tamay-dogan.homelinux.net      tamay.home.private
|  192.168.1.69      fayah.home.private.tamay-dogan.homelinux.net      fayah.home.private
|  
 \______________________________________________________________________

and I have setup my bind9 with and 
all is working fine in the local network.

Now I like to install on computer apache-rproxy...

My ADSL-Router forward the Incoming HTTP-Traffic to port 9999

I have setup the httpd.conf following:

  ____ ( '/etc/apache/httpd.conf' ) _______________________
 /
|  ##
|  ##  apache-rproxy.conf -- Apache configuration for Reverse Proxy Usage
|  ##
|  
|  #   server type
|  ServerType           standalone
|  Port                 9999
|  MinSpareServers      5
|  StartServers         5
|  MaxSpareServers      5
|  MaxClients           5
|  MaxRequestsPerChild  25
|  
|  #   server operation parameters
|  KeepAlive            on
|  MaxKeepAliveRequests 100
|  KeepAliveTimeout     15
|  Timeout              300
|  IdentityCheck        off
|  HostnameLookups      off
|  
|  #   paths to runtime files
|  PidFile              /var/run/rproxy.pid
|  LockFile             /var/lock/rproxy.lock
|  ErrorLog             /var/log/apache/errors-rproxy.log
|  CustomLog            /var/log/apache/access-rproxy.log "%{%v/%T}t %h -> %{SERVER}e URL:
%U"
|  
|  #   unused paths
|  ServerRoot           /tmp
|  DocumentRoot         /tmp
|  CacheRoot            /tmp
|  RewriteLog           /dev/null
|  TransferLog          /dev/null
|  TypesConfig          /dev/null
|  AccessConfig         /dev/null
|  ResourceConfig       /dev/null
|  
|  #   speed up and secure processing
|  <Directory />
|  Options -FollowSymLinks -SymLinksIfOwnerMatch
|  AllowOverride None
|  </Directory>
|  
|  #   the status page for monitoring the reverse proxy
|  <Location /apache-rproxy-status>
|  SetHandler server-status
|  </Location>
|  
|  #   enable the URL rewriting engine
|  RewriteEngine        on
|  RewriteLogLevel      0
|  
|  #   define a rewriting map with value-lists where
|  #   mod_rewrite randomly chooses a particular value
|  RewriteMap     server  rnd://etc/apache/rproxy-servers.conf
|  
|  #   make sure the status page is handled locally
|  #   and make sure no one uses our proxy except ourself
|  RewriteRule    ^/apache-rproxy-status.*  -  [L]
|  RewriteRule    ^(http|ftp)://.*          -  [F]
|  
|  #   now choose the possible servers for particular URL types
|  RewriteRule       ^(http://(.*).debian.tamay-dogan.homelinux.net/(.*)$ to://$(server:debian)/$1
|  RewriteRule      ^(http://(.*).private.tamay-dogan.homelinux.net/(.*)$ to://$(server:private)/$1
|  RewriteRule  ^(http://(.*).cybercenter.tamay-dogan.homelinux.net/(.*)$ to://$(server:cybercenter)/$1
|  RewriteRule              ^(http://(.*).tamay-dogan.homelinux.net/(.*)$ to://$(server:public)/$1
|  
|  #   and delegate the generated URL by passing it 
|  #   through the proxy module
|  RewriteRule    ^to://([^/]+)/(.*)    http://$1/$2   [E=SERVER:$1,P,L]
|  
|  #   and make really sure all other stuff is forbidden 
|  #   when it should survive the above rules...
|  RewriteRule    .*                    -              [F]
|  
|  #   enable the Proxy module without caching
|  ProxyRequests        on
|  NoCache              *
|  
|  #   setup URL reverse mapping for redirect reponses
|  proxyPassReverse /                      http://doc.tamay-dogan.homelinux.net
|  proxyPassReverse /                      http://www.tamay-dogan.homelinux.net
|  proxyPassReverse /                     http://home.tamay-dogan.homelinux.net
|  proxyPassReverse /                    http://music.tamay-dogan.homelinux.net
|  proxyPassReverse /                      http://dos.tamay-dogan.homelinux.net
|  proxyPassReverse /                 http://hardware.tamay-dogan.homelinux.net
|  proxyPassReverse /              http://onlinestore.tamay-dogan.homelinux.net
|  
|  proxyPassReverse /               http://www.debian.tamay-dogan.homelinux.net
|  proxyPassReverse /              http://xmms.debian.tamay-dogan.homelinux.net
|  proxyPassReverse /             http://devel.debian.tamay-dogan.homelinux.net
|  proxyPassReverse /             http://lists.debian.tamay-dogan.homelinux.net
|  proxyPassReverse /             http://slink.debian.tamay-dogan.homelinux.net
|  proxyPassReverse /            http://potato.debian.tamay-dogan.homelinux.net
|  proxyPassReverse /             http://woody.debian.tamay-dogan.homelinux.net
|  proxyPassReverse /             http://sarge.debian.tamay-dogan.homelinux.net
|  proxyPassReverse /              http://etch.debian.tamay-dogan.homelinux.net
|  proxyPassReverse /               http://sid.debian.tamay-dogan.homelinux.net
|  
|  proxyPassReverse /         http://michelle.private.tamay-dogan.homelinux.net
|  proxyPassReverse /       http://tamay.home.private.tamay-dogan.homelinux.net
|  proxyPassReverse /       http://fayah.home.private.tamay-dogan.homelinux.net
|  
|  proxyPassReverse /          http://www.cybercenter.tamay-dogan.homelinux.net
|  proxyPassReverse /      http://marocco.cybercenter.tamay-dogan.homelinux.net
|  proxyPassReverse /        http://tukia.cybercenter.tamay-dogan.homelinux.net
|  proxyPassReverse /         http://iran.cybercenter.tamay-dogan.homelinux.net
|  proxyPassReverse /  http://afghanistan.cybercenter.tamay-dogan.homelinux.net
 \______________________________________________________________________

and my Server list is:

  ____ ( '/home/FLOPPY/etc/apache/rproxy-servers.conf' ) _______________
 /
|  debian      192.168.1.14
|  cybercenter 192.168.1.60
|  private     192.168.1.69
|  public      192.168.1.10
 \______________________________________________________________________

But it does not work...

Can anyone help me please ?

Nice Sunday
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Mime
View raw message