Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-620

ProxyPass worker name (http://localhost:3128/...) too long

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • JWS 3.0.3 SP1 GA
    • httpd
    • None

      This is a clone of https://bz.apache.org/bugzilla/show_bug.cgi?id=53218
      The below is the copy from the problem description of the original bug 53218.

      ------
      Hi.

      I'm tring to change apache from 2.2 to 2.4.2.
      And apachectl reports there is error in my configuration file about proxypass.

      # /usr/local/apache24/bin/apachectl -t
      AH00548: NameVirtualHost has no effect and will be removed in the next release /usr/local/apache24/conf/httpd.conf:101
      AH00526: Syntax error on line 615 of /usr/local/apache24/conf/httpd.conf:
      ProxyPass worker name (http://localhost:3128/VirtualHostBase/http/www.hogefuga.com:80/fugafugafile/VirtualHostRoot/++resource++Products.HOGEHOGE.public.stylesheets) too long
      

      I read some sorce files and found there is length limit in worker name.
      In mod_proxy.h:305 there is define of length of proxy worker name.

      #define PROXY_WORKER_MAX_NAME_SIZE      96
      

      I think in some casees this size is not enough.
      In my case (legth is 177 chars.), I doubled this number and works fine.
      Would you please increase this size.

      Thank you.
      ------

            [JWS-620] ProxyPass worker name (http://localhost:3128/...) too long

            moved to JBCS-298

            Jean-Frederic Clere added a comment - moved to JBCS-298

            THERE IS NO WORKAROUND.

            Jean-Frederic Clere added a comment - THERE IS NO WORKAROUND.

            The customer does not want to use the mod_rewrite black magic.

            Hisanobu Okuda added a comment - The customer does not want to use the mod_rewrite black magic.

            https://bz.apache.org/bugzilla/show_bug.cgi?id=53218 Rainer proposed a work-around does that help?

            Jean-Frederic Clere added a comment - https://bz.apache.org/bugzilla/show_bug.cgi?id=53218 Rainer proposed a work-around does that help?

            Jean-Frederic, Sorry it is a bad example. How about:

            ProxyPass /examples/ http://veryloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooonghostname:80/jsp-examples/
            

            I got :

            AH00526: Syntax error on line 16 of /opt/jws-3.0/httpd/conf.d/proxy.conf:
            ProxyPass worker name (http://veryloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooonghostname/jsp-examples/) too long
            

            Hisanobu Okuda added a comment - Jean-Frederic, Sorry it is a bad example. How about: ProxyPass /examples/ http: //veryloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooonghostname:80/jsp-examples/ I got : AH00526: Syntax error on line 16 of /opt/jws-3.0/httpd/conf.d/proxy.conf: ProxyPass worker name (http: //veryloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooonghostname/jsp-examples/) too long

            http://localhost:3128/VirtualHostBase/http/www.hogefuga.com:80/fuga that doesn't look like a vaild url isn't the :80 a typo triggering a parser error?

            Jean-Frederic Clere added a comment - http://localhost:3128/VirtualHostBase/http/www.hogefuga.com:80/fuga that doesn't look like a vaild url isn't the :80 a typo triggering a parser error?

              rhn-engineering-jclere Jean-Frederic Clere
              rhn-support-hokuda Hisanobu Okuda
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: