2005/11/1, Hendrik Harms <[EMAIL PROTECTED]>:
> proxy_http.c:966
>
> .....
> If this is not possible, it would be nice to have something like
>   ProxyRemote * http://proxy-user:[EMAIL PROTECTED]
>

to add this feature, I think it is necassary to extend the struct
proxy_remote in mod_proxy.h:

  struct proxy_remote {
      const char *scheme;         /* the schemes handled by this
proxy, or '*' */
      const char *protocol;         /* the scheme used to talk to this proxy */
+    const char *auth_name;     /* the userid to authenticate at this proxy */
+    const char *auth_passwd;  /* the passwd to authenticate at this proxy */
      const char *hostname;       /* the hostname of this proxy */
      apr_port_t  port;                /* the port for this proxy */
      regex_t *regexp;               /* compiled regex (if any) for
the remote */
      int use_regex;                  /* simple boolean. True if we
have a regex pattern */
  };


and change the API of the proxy_hook_scheme_handler

APR_DECLARE_EXTERNAL_HOOK(proxy, PROXY, int, scheme_handler, (request_rec *r,
                          proxy_server_conf *conf, char *url,
-                          const char *proxyhost, apr_port_t proxyport))
+                         const struct proxy_remote *proxyremote))


regards,
Hendrik

Reply via email to