Apache 2.2.3 as proxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

 

I have set up Apache HTTP Server 2.2.3 with mod_proxy as a forward proxy on RHEL 4.0 and I am planning to build a filter.

 

In Apache 2.2.3, when I use ‘mod_case_filter_in.c’ from the experimental modules, I always get r->unparsed_uri, r->uri and r->filename as NULL.

I get r->hostname and r->the_request as expected.

 

static void CaseFilterInInsertFilter(request_rec *r)

{

    CaseFilterInConfig *pConfig=ap_get_module_config(r->server->module_config,

                                                     &case_filter_in_module);

    if(!pConfig->bEnabled)

        return;

 

        ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,

                        "REQUEST : %s", r->the_request);

        ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,

                        "HOSTNAME : %s", r->hostname);

        ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,

                        "UNPARSED URI : %s", r->unparsed_uri);

        ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,

                        "URI : %s", r->uri);

        ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,

                        "FILENAME : %s", r->filename);

 

    ap_add_input_filter(s_szCaseFilterName,NULL,r,r->connection);

}

 

Error Log entries:

 

[Thu Dec 21 10:36:26 2006] [notice] Apache/2.2.3 (Unix) configured -- resuming normal operations

[Thu Dec 21 10:36:36 2006] [error] [client 10.192.70.24] REQUEST : GET http://www.google.com/ HTTP/1.0

[Thu Dec 21 10:36:36 2006] [error] [client 10.192.70.24] HOSTNAME : www.google.com

[Thu Dec 21 10:36:36 2006] [error] [client 10.192.70.24] UNPARSED URI : (null)

[Thu Dec 21 10:36:36 2006] [error] [client 10.192.70.24] URI : (null)

[Thu Dec 21 10:36:36 2006] [error] [client 10.192.70.24] FILENAME : (null)

 

This was not the case with the previous versions of Apache.

 

Thanks in Advance,

Harsha

 

***********************************************************************

The information in this message is confidential and may be legally

privileged. It is intended solely for the addressee. Access to this

message by anyone else is unauthorized. If you are not the

intended recipient, any disclosure, copying, or distribution of the

message, or any action or omission taken by you in reliance on

it is prohibited and may be unlawful. Please immediately contact

the sender if you have received this message in error. This email

does not constitute any commitment from Cordys Holding BV or

any of its subsidiaries except when expressly agreed in a written

agreement between the intended recipient and

Cordys Holding BV or its subsidiaries.

***********************************************************************

 

 


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux