httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject [users@httpd] How to retrieve the real URL in case of Proxy
Date Fri, 24 Sep 2004 11:19:09 GMT

Hi ,

I am having a proxy server which does authentication and if successful
proxies the request. The control is working fine.

Mentioned below is the httpd.conf setting

<IfModule mod_proxy.c>
	ProxyRequests Off

	<Directory "proxy:">
		AuthType Basic
		require valid-user
		Options Indexes FollowSymLinks MultiViews ExecCGI
		AllowOverride None
		Order allow,deny
		Allow from all

ProxyPass /basic
ProxyPassReverse /basic


Now assuming I am accessing i would be
redirected to

My Question is how do I retrieve the proxied URL i.e. in my module.

Apache it seems is doing a internal redirect to get the contents.

I even tried getting the handle of the proxy module and then obtain the
ent[i].real (as mentioned in proxy_trans function)

But I wasn't able to retireve the handle of the module.


FILE *infile = NULL;
	static module *pModule = NULL;

	void *sconf = r->server->module_config;

	proxy_server_conf *conf;
    int i, len;
    struct proxy_alias *ent = (struct proxy_alias *)conf->aliases->elts;
	if(pModule == NULL)
		pModule = ap_find_linked_module("mod_proxy.c");
		fprintf(infile,"Module proxy Not Loaded !!!.\n");
		return DECLINED;

	conf = (proxy_server_conf *)ap_get_module_config(sconf,


but the compilation gives me the error in (conf = (proxy_server_conf
*)ap_get_module_config(sconf, &pModule);)

left of ->module_index' must point to struct/union

Can anyone help me

Thanks in advance

Confidentiality Notice

The information contained in this electronic message and any attachments to this message are
for the exclusive use of the addressee(s) and may contain confidential or privileged information.
you are not the intended recipient, please notify the sender at Wipro or
and destroy all copies of this message and any attachments.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message