mod_rewrite not work in hardware cluster env.?

Discussion in 'Apache' started by magicboo, Jun 12, 2008.

  1. #1
    I have a testing env. with following rewrite code in my httpd.conf that work fine:

    ScriptAlias /twiki/bin/ /filesystem/path/to/twiki/bin/
    Alias /twiki/pub/ /filesystem/path/to/twiki/pub/

    RewriteEngine on
    RewriteCond %{REQUEST_URI} !^/+twiki/+pub/+TWiki/+.+
    RewriteRule ^/+twiki/+pub/+([^/]+)((/+([^/]+))+)/+(.+) /twiki/bin/viewfile/$1/$2?filename=$5 [L,PT]

    And I have another 2 production servers with a ServerIron (hardware cluster) that dispatch http request with a primary/backup policy. Apache on these 2 production servers have the same rewrite configuration but they don't do anything. The server doesn't report any error when startup; and I added a RewriteLog but the log file always keep 0 bytes!

    Any hint will be a great help to me! Thanks in advance!
     
    magicboo, Jun 12, 2008 IP
  2. magicboo

    magicboo Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Some additional information:
    • The DNS name http://wiki.company.com is setup to ServerIron
    • 2 production servers have DNS name http://s1.company.com & http://s2.company.com
    • No matter which DNS name I used as my URL, my mod_rewrite doesn't do anything!
     
    magicboo, Jun 12, 2008 IP