You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Apache Wiki <wi...@apache.org> on 2005/04/19 14:31:10 UTC

[Lenya Wiki] Trivial Update of "HowToModProxy" by WolfgangKaltz

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change notification.

The following page has been changed by WolfgangKaltz:
http://wiki.apache.org/lenya/HowToModProxy

The comment on the change is:
add P (proxy) flag to all rewrite rules redirecting to port 8080

------------------------------------------------------------------------------
      RewriteRule      ^/static/(.*)  $0 [L]
      
      RewriteRule      ^/$ /index.html  [R]
-     RewriteRule      ^/(.*\.css$) http://cms.live.ch:8080/$1  [L]
+     RewriteRule      ^/(.*\.css$) http://cms.live.ch:8080/$1  [P,L]
-     RewriteRule      ^/(.*/authoring/.*) http://cms.live.ch:8080/$1  [L]
+     RewriteRule      ^/(.*/authoring/.*) http://cms.live.ch:8080/$1  [P,L]
      RewriteRule      ^/[^/]+/live/(.*)$ /$1 [R,L]
      
      # If you use Lenya-wide resources (e.g. in the 404 page), this rule is needed as well:
@@ -168, +168 @@

      RewriteEngine On
  
      # RewriteRules for css and images
-     RewriteRule      ^/lenya/unizh/(.*)/images/(.*)$ http://cms.live.ch:8080/lenya/unizh/$1/images/$2 [L]
+     RewriteRule      ^/lenya/unizh/(.*)/images/(.*)$ http://cms.live.ch:8080/lenya/unizh/$1/images/$2 [P,L]
-     RewriteRule      ^/(.*\.css$) http://cms.live.ch:8080/$1  [L]
+     RewriteRule      ^/(.*\.css$) http://cms.live.ch:8080/$1  [P,L]
  
      RewriteRule      ^/(lenya/[^/]+)/(.*)$   http://cms.live.ch:8080/$1/live/$2  [P,L]
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org