RE: Issue with ap_get_module_config in Apache 2.4 module on 32 bit

2015-01-23 Thread George V Thomas
Please ignore my previous mail. It seem to be that I had been compiling with wrong version of apache header files. From: George V Thomas Sent: Thursday, January 22, 2015 4:02 PM To: 'modules-dev@httpd.apache.org' Subject: Issue with ap_get_module_config in Apache 2.4 module on 32 bit Hi, My

Apache 2.4: Segmentation fault with wrong reference from ap_get_module_config

2014-05-26 Thread shiva prasad
Hello All, OS: RHEL 6 64 bit machine. Getting segmentation fault with the wrong reference pointer from ap_get_module_config. here while creating the ga_vs_config for module config in the code below(vs_config apr_palloc (p, s), it's returning the address 0x8477930, but while getting

one problem when calling ap_get_module_config

2012-02-29 Thread Rui Hu
I use r-request_config to store module data as a substitute for global vars. One type_checker_hook function uses ap_get_module_config at its beginning. But what I got is NULL. Strangely, post_read_request_hook function works fine, whose codes is basically the same. Is there any caution in calling

Re: one problem when calling ap_get_module_config

2012-02-29 Thread Nick Kew
On 29 Feb 2012, at 10:47, Rui Hu wrote: I use r-request_config to store module data as a substitute for global vars. One type_checker_hook function uses ap_get_module_config at its beginning. But what I got is NULL. Strangely, post_read_request_hook function works fine, whose codes

Re: one problem when calling ap_get_module_config

2012-02-29 Thread Rui Hu
thanks! Problem solved. It the problem with internal redirects. 2012/2/29 Nick Kew n...@apache.org On 29 Feb 2012, at 10:47, Rui Hu wrote: I use r-request_config to store module data as a substitute for global vars. One type_checker_hook function uses ap_get_module_config at its

Re: modules + callbacks = ap_get_module_config(r-per_dir_config,var)

2007-01-26 Thread Joe Lewis
Mike wrote: Hi, The Subject here may be completely wrong, so I will describe what I am doing. Some years ago I hacked together an authentication module which uses the c-client imap lib. I decided to take a look at porting it to 2.0 only to realize that the code is complete crap,thus I am

Re: modules + callbacks = ap_get_module_config(r-per_dir_config,var)

2007-01-26 Thread Mike
Joe Lewis wrote: Mike wrote: Hi, The Subject here may be completely wrong, so I will describe what I am doing. Some years ago I hacked together an authentication module which uses the c-client imap lib. I decided to take a look at porting it to 2.0 only to realize that the code is complete

Re: modules + callbacks = ap_get_module_config(r-per_dir_config,var)

2007-01-26 Thread Joe Lewis
Mike wrote: Joe Lewis wrote: Mike wrote: Hi, The Subject here may be completely wrong, so I will describe what I am doing. Some years ago I hacked together an authentication module which uses the c-client imap lib. I decided to take a look at porting it to 2.0 only to realize that the

Re: modules + callbacks = ap_get_module_config(r-per_dir_config,var)

2007-01-26 Thread Mike
cation in Apache 2.0 is actually very nicely engineered. If you want to store the username and the password, you can. However, you don't have to. Thanks for the reply. The problem is that I need access to this info in the callback function, and the callback does not have access to the

Re: modules + callbacks = ap_get_module_config(r-per_dir_config,var)

2007-01-26 Thread Joe Lewis
Mike wrote: cation in Apache 2.0 is actually very nicely engineered. If you want to store the username and the password, you can. However, you don't have to. Thanks for the reply. The problem is that I need access to this info in the callback function, and the callback does not have

Re: ap_get_module_config() questions...

2007-01-11 Thread David Wortham
Drew, I can only respond to two of your questions (intelligently): First, how do I return valuable information if there's a config error? For example, if my config has the directive MyFile conf/foo.txt and the file doesn't exist, how can I report this when I run httpd -t? If the error can

ap_get_module_config() questions...

2007-01-10 Thread Drew Bertola
Hi everyone, I have a couple quick questions regarding ap_get_module_config(). First, how do I return valuable information if there's a config error? For example, if my config has the directive MyFile conf/foo.txt and the file doesn't exist, how can I report this when I run httpd -t

Question about ap_get_module_config

2006-10-20 Thread [EMAIL PROTECTED]
Hi all, I have a question about ap_get_module_config. My module has to connect to different url to get the content. So I was thinking to initialize my struct (in which I have different information for example an array with the addresses of the url to get the contents) in the server config. The I

Re: Question about ap_get_module_config

2006-10-20 Thread Nick Kew
On Friday 20 October 2006 17:30, [EMAIL PROTECTED] wrote: Hi all, I have a question about ap_get_module_config. That serves two purposes, and I think you're confusing them. For your server configuration, you'll use it with r-per_dir_config or s-module_config. Those should generally be treated

ap_get_module_config(r-per_dir_config, module) always returns N ULL...Why?

2005-10-27 Thread Gaffga, Stefan
*)ap_get_module_config(r-per_dir_config, ep_auth_module); This line always gives me a NULL-pointer, but it did not in the 1.3 version. I investigated a bit and found, that the function ap_get_module_config just does a vector lookup: r-per_dir_config[ep_auth_module.module_index] I echoed the array r

Re: ap_get_module_config(r-per_dir_config, module) always returns N ULL...Why?

2005-10-27 Thread Nick Kew
a Directory per Webbrowser that is auth_ldap-protected, I get a segfault in the authenticate user function because this line returns NULL : auth_ldap_config_rec *sec = (auth_ldap_config_rec *)ap_get_module_config(r-per_dir_config, ep_auth_module); The per-dir config is whatever you set

ap_get_module_config

2003-06-18 Thread Rahul Kohli
Does the Apache 1.x method ap_get_module_config exist for Apache 2 also. If no what is the counterpart for this on Apache 2.x Where can I find the info. on various Apache 1.x routines counterpart for Apache 2.x. Thanks, Rahul Kohli

Re: ap_get_module_config

2003-06-18 Thread Jeff Trawick
Rahul Kohli wrote: Does the Apache 1.x method ap_get_module_config exist for Apache 2 also. grep for it in Apache's include directory... (you'll find it) Where can I find the info. on various Apache 1.x routines counterpart for Apache 2.x. fairly simple renames of 1.3 functions show up