Uploaded image for project: 'mod_cluster'
  1. mod_cluster
  2. MODCLUSTER-86

Interaction with mod_rewrite looks weird for end-users

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0.1.GA
    • Fix Version/s: 1.1.0.Beta1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Use mod_rewrite and mod_cluster

      Description

      Use mod_cluster with a JBoss with the application myapp (myapp.war) and use the following in httpd.conf:
      RewriteEngine On
      RewriteCond %

      {HTTP_HOST}

      ^cluster\.domain\.com [NC]
      RewriteRule ^/$ /myapp/MyCount [PT]

      As /myapp is mapped to JBoss you would except / on cluster.domain.com to go to /myapp/MyCount in JBoss unfortunately it goes to /.
      You would except it goes to /myapp/MyCount as it does when to you a ProxyPass directive:
      ProxyPass /myapp http://localhost:8080/myapp

      Internals:
      [debug] mod_proxy_cluster.c(1703): proxy_cluster_trans for 0 passthrough:/myapp/MyCount (null) uri: /myapp/MyCount args: (null) unparsed_uri: /
      in get_balancer_by_node() we use r->uri (/myapp/MyCount in the case) to map to the application.
      in proxy_cluster_trans we do: r->filename = apr_pstrcat(r->pool, "proxy:balancer://", balancer, r->unparsed_uri, NULL);

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jfclere Jean-Frederic Clere
                Reporter:
                jfclere Jean-Frederic Clere
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: