httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Massimiliano Panichi <m.pani...@infogroup.it>
Subject [users@httpd] Problem using mod_rewrite and mod_proxy
Date Mon, 26 Jul 2004 15:48:55 GMT
Hi,

I would like to configure my reverse proxy in order to
display different pages for some ip addresses. This is my configuration

    RewriteEngine on
    RewriteLog "/home/panik/tmp/apache/logs/rewrite.log"
    RewriteLogLevel 9

    RewriteCond /workInProgress.jpg -U
    RewriteRule /workInProgress.jpg  /lavori/workInProgress.jpg [P,L]

    RewriteCond /logo.gif -U
    RewriteRule /logo.gif  /lavori/logo.gif [P,L]

    RewriteCond /c-ghss-1.gif -U
    RewriteRule /c-ghss-1.gif  /lavori/c-ghss-1.gif [P,L]

    RewriteCond /c-ghse-1.gif -U
    RewriteRule /c-ghse-1.gif  /lavori/c-ghse-1.gif [P,L]

    RewriteCond /c-ghsc-1.gif -U
    RewriteRule /c-ghsc-1.gif  /lavori/c-ghsc-1.gif [P,L]

    RewriteCond /c-ghe-1.gif -U
    RewriteRule /c-ghe-1.gif  /lavori/c-ghe-1.gif [P,L]

    RewriteCond /c-ghc-1.gif -U
    RewriteRule /c-ghc-1.gif  /lavori/c-ghc-1.gif [P,L]

    RewriteCond /transparent.gif -U
    RewriteRule /transparent.gif  /lavori/transparent.gif [P,L]

    RewriteCond %{REMOTE_ADDR}      ^192\.168\.52\.131$  [OR]
    RewriteCond %{REMOTE_ADDR}      ^192\.168\.52\.25$  [OR]
    RewriteCond %{REMOTE_ADDR}      ^192\.168\.52\.36$
    RewriteRule ^.*  /lavori/Lav_in_corso_eProc_prod.htm  [P,L]

    ProxyPass           /       http://www.sun.com/
    ProxyPassReverse    /       http://www.sun.com/

But it works only when I delete ProxyPass and ProxyPassReverse lines ?

./httpd -l
Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_access.c
  mod_auth.c
  mod_proxy.c
  mod_setenvif.c


Someone have a solution ?


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message