httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hendrik Harms <hendrik.ha...@gmail.com>
Subject Re: Proxy-Authorization needed for ProxyRemote
Date Fri, 25 Nov 2005 11:49:41 GMT
2005/11/1, Hendrik Harms <hendrik.harms@gmail.com>:
> proxy_http.c:966
>
> .....
> If this is not possible, it would be nice to have something like
>   ProxyRemote * http://proxy-user:proxy-password@forward.proxy.com
>

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

Mime
View raw message