0 Replies Latest reply: Aug 27, 2009 9:18 AM by 807573 RSS

    Error 407 with URL mapping

    807573
      Hello,

      I'm a newbie with reverse proxy and I must work on an existing configuration in my new job.

      I have added a new mapping for a URL but it displays systematicaly an error 407 "Proxy Authentication Required" when I try to access this URL.

      Here is the settings of the server :
      Content Settings (obj.conf)
      
      For the entire server:
      match-browser:
           browser: .*MSIE.*
           ssl-unclean-shutdown: true
           Directive: AuthTrans
      Style assignment:
      Name stats-xml
      Directory (/stats-xml|/stats-xml/.*)*
      map:
           from: http://aaa.bbb.ccc.ddd/crmonitor
           to: http://host1:81/CRmonitor/www
           rewrite-host: false
           Directive: NameTrans
      map:**
           from: /crmonitor
           to: http://host1:81/CRmonitor/www
           rewrite-host: false
           Directive: NameTrans
      virt-map:
           host-regex: aaa(|.bbb.ccc.ddd)(|:80)
           to-prefix: http://host2
           Directive: NameTrans
      url-check:
           Directive: PathCheck
           Restrict access: on
      deny-service:
           Directive: Service
      Access log:
      Path $accesslog
      For the style file:
      Index filenames:
      File names index.html
           Default MIME type: pref
      
      For requests matching ftp://.*:*
      *cache-enable:*
      *     query-maxlen: 10*
      *     log-report: off*
      *     Directive: ObjectType*
      *cache-setting:*
      *     lm-factor: 0.10*
      *     max-uncheck: 7200*
      *     Directive: ObjectType*
      *proxy-retrieve:*
      *     Directive: Service*
      
      *For requests matching http://.*:
      cache-enable:
           query-maxlen: 10
           log-report: off
           Directive: ObjectType
      cache-setting:
           lm-factor: 0.10
           max-uncheck: 7200
           Directive: ObjectType
      proxy-retrieve:
           Directive: Service
      
      For requests matching https://.*:*
      *proxy-retrieve:*
      *     Directive: Service*
      
      *For requests matching gopher://.*:
      cache-enable:
           query-maxlen: 10
           log-report: off
           Directive: ObjectType
      cache-setting:
           lm-factor: 0.10
           max-uncheck: 7200
           Directive: ObjectType
      proxy-retrieve:
           Directive: Service
      
      For requests matching connect://.*:443:
      connect:
           method: CONNECT
           Directive: Service
      In the settings, the external IP address has been replaced by aaa.bbb.ccc.ddd

      As you can see it is a virtual hosting mapping for the address "http://aaa.bbb.ccc.ddd" which redirect to the internal machine "http://host2" (this mapping was created before I started to work on this problem and it works fine).

      This virtual hosting mapping requires an authentication based on an ACL defined at the Server level by the group called "ReverseProxy" :
      Access Control Rules for : default
                Action     Users/Groups     From Host         Rights          Extra...     Continue     
      Down Arrow      1      Allow     (ReverseProxy)     anyplace     r-x--i      x            Trash Can 
      Up Arrow      2      Allow     all     anyplace     -w-dl-      x            Trash Can 
       Access control is on    
        Current Access deny response is 
      I want to add a URL mapping that direct the external address "http://aaa.bbb.ccc.ddd/crmonitor" to an other internal machine "http://host1:81/CRmonitor/www" => I create a new URL mapping as seen in the settings.

      When I type the address "http://aaa.bbb.ccc.ddd/crmonitor/" in my browser, I get the following page :
      Proxy Authentication Required
      An error has occurred. 
      What can be the problem ?

      I do not know if it is possible to mix "classic" URL mapping and virtual multihosting mapping.

      Thanks for your help.

      Patrick