Re: Testing with multiple installs of Apache (different versions; installed but not running)

2007-09-25 Thread David Wortham
Thanks Jeremy. That's exactly what I needed to know. Dave On 9/25/07, Jeremy Sowden [EMAIL PROTECTED] wrote: David Wortham wrote: I am a module developer with a little experience. I'm not looking for everyday sysadmin info. When my module went public, I noticed that there were some

Re: Creating shm segment in module creation function

2007-05-25 Thread David Wortham
César, I would think the most important part of timing when you create the shm is that you time it so all of the child processes can attach to it. That means that at least the attachment calls have to be made after the parent process has created the child processes. You can probably do the

Re: determining if browser is on same machine as server

2007-05-09 Thread David Wortham
. It is obvious when using localhost or 127.0.0.1. But when the URL is the machine name, I seem to be getting an IP address. I do see in r-server-server_hostname, is there any way to convert that into the IP address? Sam -- David Wortham Senior Web Applications Developer Unspam Technologies, Inc. (408

Re: determining if browser is on same machine as server

2007-05-09 Thread David Wortham
Sam, I knew I missed something. There is a C-string containing the local_ip of the server in the conn_rec struct. I believe the access from a request_rec would be r-connection-local_ip Dave On 5/9/07, David Wortham [EMAIL PROTECTED] wrote: Sam, From what I know, which is not much

Re: controlling access

2007-05-08 Thread David Wortham
Sam, The classic access hook (for Apache = 2.0) looks like the following: *ap_hook_access*_checker(kiosk_hook_Access, NULL,NULL, APR_HOOK_MIDDLE); This assumes that your access-checking function is called kiosk_hook_Access. In 2.0 and newer, it will be called from your hook

Re: help with ap_escape_uri()

2007-05-05 Thread David Wortham
/ -- David Wortham Senior Web Applications Developer Unspam Technologies, Inc. (408) 338-8863

Re: help with ap_escape_uri()

2007-05-05 Thread David Wortham
harvesters to get my addresses, not easier. Thanks. On 5/5/07, Thibaut VARENE [EMAIL PROTECTED] wrote: On 5/5/07, David Wortham [EMAIL PROTECTED] wrote: Thiabut, As far as I know, URI escaping functions escape all non-alpha numberics which are not in the following set of characters

Certain access results should call a new handler

2007-04-26 Thread David Wortham
or for example code that deals with this? Thanks, Dave -- David Wortham Senior Web Applications Developer Unspam Technologies, Inc. 1901 Prospector Dr. #30 Park City, UT 84060 (435) 513-0672

Re: Certain access results should call a new handler

2007-04-26 Thread David Wortham
and there will be a httpd.apache.orgmodule announcement soon. I apologize if this message was a little spammy, but I'm excited about the fact that it's almost ready for the public. Thanks again, Graham. Regards, Dave -- David Wortham Senior Web Applications Developer Unspam Technologies, Inc. 1901 Prospector Dr. #30 Park City

Debugging Apache with GDB

2007-04-23 Thread David Wortham
to get a backtrace from an Apache (Linux) coredump file? Perhaps other mailing lists that could help? Thanks, Dave -- David Wortham Senior Web Applications Developer Unspam Technologies, Inc. 1901 Prospector Dr. #30 Park City, UT 84060 (435) 513-0672

Re: Debugging Apache with GDB

2007-04-23 Thread David Wortham
:19:40 -0500 David Wortham [EMAIL PROTECTED] wrote: My problem is that I am getting core dumps (using the CoreDumpDirectory directive of the MPM module) but I can't read them with my version of gdb (I am running 6.3-5). My specific error is: /home/.../core.pid is not a core dump: File format

module documentation tools

2007-04-15 Thread David Wortham
-- David Wortham Senior Web Applications Developer Unspam Technologies, Inc. 1901 Prospector Dr. #30 Park City, UT 84060 (435) 513-0672

Re: Examining per_dir_config for a module

2007-04-12 Thread David Wortham
dir/location directives. I need to examine all the per dir/location module_config's for this mod. Can I do something like ... for (server = base_server; server; server = server-next) { conf = ap_get_module_config(server-lookup_defaults, my_mod); } regards srp -- David Wortham Senior Web

Re: Examining per_dir_config for a module

2007-04-12 Thread David Wortham
sure to account for multiple dir_cfgs with NULL descriptor/identifier string). Dave On 4/12/07, Joe Lewis [EMAIL PROTECTED] wrote: David Wortham wrote: SRP, If I am correct, that will work if you only need to look at only server/vhost cfg structures (won't work for directory, location

Re: Temporary files directory

2007-04-10 Thread David Wortham
used by mod_cgid for UNIX sockets to communicate with daemon process. This though can be overridden using ScriptSock directive. Graham -- David Wortham Senior Web Applications Developer Unspam Technologies, Inc. 1901 Prospector Dr. #30 Park City, UT 84060 (435) 513-0672

Temporary files directory

2007-04-09 Thread David Wortham
I use the same code to write to the same directory?* * I need to write to my own file(s) not write to existing log files (my cache files are serialized structs). Does anyone else know of a well-tested module that can handle user-switching and writing to logs gracefully? Thanks, Dave -- David

Re: Questions on modules to provide cache functions for Apache

2007-03-06 Thread David Wortham
-specific forum/mailing list or on www.php.net (the comments on that site are sometimes extremely helpful). Regards, David Wortham On 3/5/07, Erica Zhang [EMAIL PROTECTED] wrote: Hi, I want to develop a filter module to cache responses for XMLHttp requests for Apache. Before that, I have tried

Re: Questions on modules to provide cache functions for Apache

2007-03-06 Thread David Wortham
changed the PHP script. Now I change them back and also set CacheIgnoreCacheControl On. And still could not work. For other questions, please see the my answers below. Thanks. David Wortham wrote: Erica, My observations of your headers: (1) The Last-Modified line contains the current timestamp

Sending a POST request and handling the response from a module

2007-02-22 Thread David Wortham
search on Google Codesearch revealed that Nick (Kew) wrote a HTTPClient.(c|h) library (used with mod_validator and possibly with others). Will this code do what I want? Thanks, David Wortham

Merge function not called when I would expect it to

2007-02-09 Thread David Wortham
Thanks to all of those who responded to my whitescreen/segfault problems. It turns out I was 'allocing' memory for the newly created dir_cfg and for an array of rbl_handler pointers, but not for each individual rbl_pointer structure that the rbl_handler pointers pointed to. Now that that's

Re: Merge function not called when I would expect it to

2007-02-09 Thread David Wortham
I think I was able to answer my own question(s). This link got me curious: http://www.f-m-c.org/projects/apache/html/3_3Extending_Apache.html I read what seemed to say that the merging of directories was done at the beginning of the handling of a request. I re-worked my debug code to output to

Whitescreens when using a dir-conf merge function

2007-02-07 Thread David Wortham
Hi all, I'm adding a merge function (for use with directory-based configuration and server-based configuration). When I finished the function, I noticed that it was causing whitescreens (empty responses). As you can see below, I allocate memory via 'apr_pcalloc' and then I: (1) loop through