APR timestamps question

2007-04-13 Thread David Wortham
llu"? I found a lot of issues involving printing Can I write a hack to ensure this (possible detecting the architecture with #defines then writing the correct printf placeholder from the #define)? Is there a more graceful method in APR for handling situations like this? Thanks, Dave -- Da

Re: OT: mod_xmlns

2007-04-11 Thread David Wortham
s unknown to me. And mod_xmlns plays a role in these usages, unknown to me. Might one or two of you direct me to some more info as to enlighten this dim bulb;) Sam -- David Wortham Senior Web Applications Developer Unspam Technologies, Inc. 1901 Prospector Dr. #30 Park City, UT 84060 (435) 513-0672

Re: Apache Logs Directory

2007-04-05 Thread David Wortham
implementations? Is it guaranteed to return a writeable directory? Thanks, Dave On 4/4/07, David Wortham <[EMAIL PROTECTED]> wrote: Sorry for such a simple question, but I have not been able to find the answer yet. Is there a function in APR to retrieve the default Apache logs directory? When my

Re: load data at server startup - is ap_hook_post_config() the right place?

2007-03-23 Thread David Wortham
rs with the same MX/domain based on different directories, you may run into session problems (I'm not speaking from experience, just conjecture). Regards, Dave On 3/23/07, Danie Qian <[EMAIL PROTECTED]> wrote: ----- Original Message - From: "David Wortham" <[EMAIL PROT

Re: load data at server startup - is ap_hook_post_config() the right place?

2007-03-23 Thread David Wortham
You aren't walking through a sequential list of URLs in apr_tables are you? Are the "URI"s you're storing full URIs, domain names, or MXs? Perhaps you could use some help with your overall design of the module (or maybe there's an existing module that does what

Re: load data at server startup - is ap_hook_post_config() the right place?

2007-03-23 Thread David Wortham
d process (on potentially different). Maybe this page can shed some light on your questions: http://www.fmc-modeling.org/projects/apache/html/3_3Extending_Apache.html Regards, Dave -- David Wortham Senior Web Applications Developer Unspam Technologies, Inc. 1901 Prospector Dr. #30 Park City, UT 84060

Re: Compiling module against Apache 2.2.4 on Visual C++ .NET

2007-03-13 Thread David Wortham
&highlight=build+apache+mod+ssl++visual+express Hopefully you can get some use out of this. Regards, David Wortham On 3/13/07, Chris Kukuchka <[EMAIL PROTECTED]> wrote: Hello, I am trying to compile a module against the Apache 2.2.4 codebase using Visual C++ .NET. The compile stops wit

Re: New to module development

2007-03-13 Thread David Wortham
inks will help you get the gist of the overall structure of writing modules and using the module API. When learning, it helps to know what version of Apache your sample code is written for (look for STANDARD_MODULE_STUFF or STANDARD20_MODULE_STUFF in the module definition). Hope this helps, D

Re: 'POST SubRequest via mod_proxy' Question

2007-03-07 Thread David Wortham
r person was trying to do the same thing two weeks ago but no one ever responded to him. Does anyone have any suggestions or places to look? Thanks in advance, David Wortham

'POST SubRequest via mod_proxy' Question

2007-03-07 Thread David Wortham
Hello again developers, I don't fully expect anyone to be able to answer this question. At this point, I am just looking for ideas to try. I am still trying to get my module to make a POST request to an external server (I am using a subrequest that bounces off of mod_proxy to the external s

Re: Questions on modules to provide cache functions for Apache

2007-03-06 Thread David Wortham
ep-Alive: timeout=15, max=1 Connection: Keep-Alive *Transfer-Encoding: chunked Content-Type: text/html* I make the different header parts in bold. 3) Do you think I need to use mod_file_cache ? I do not use it. Regards, Erica David Wortham wrote: > Erica, > My only comments: either >

Re: Sending a POST request and handling the response from a module

2007-02-23 Thread David Wortham
While I really like Nick's response (regarding creating a subrequest through mod_proxy), one of my supervisors doesn't like the fact that we require mod_proxy to be installed for my module to work (took me a couple of searches on some newsgroups to get it compiled/installed/activated myself). I w

Re: Per-server config issue

2007-02-23 Thread David Wortham
JD, I ran into the same problem/issue that you are observing. I was not able to effectively use a casted version of the (void*) parameter. ap_get_module_config(...) works fine for me. To clarify some of the questions you have: - Server config inits are run when the httpd.conf is read (at ser

Re: Any good resources for writing module for Apache2?

2007-02-22 Thread David Wortham
apache2_modules/tut2/tutorial2.html And finally, understanding how Apache handles modules (during both startup and request-handling): http://www.f-m-c.org/projects/apache/html/3_3Extending_Apache.html Hope these help, David Wortham On 2/22/07, Nick Kew <[EMAIL PROTECTED] > wrote: On Thu,

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

Server Restarts

2007-01-08 Thread David Wortham
Hi guys, I know Nick or one of the other frequent responders mentioned something about a double server-startup. Does anyone have (or know of) documentation on this effect? I believe I understand the relationships between the server process, the child processes and the cprocess threads. It seems

Re: Setting both Server and Directory Config Structs from the same config function

2006-11-17 Thread David Wortham
Nick (and other module developers), I am still struggling with some Seg Faults. They no longer occur from directory/file/location contexts. Now, I have determined that it only occurs on one specific directive-handler and only if the value of the flag is "On" (not "Off") and called from a server

Re: Setting both Server and Directory Config Structs from the same config function

2006-11-16 Thread David Wortham
ote: On Thu, 16 Nov 2006 16:39:26 -0700 "David Wortham" <[EMAIL PROTECTED]> wrote: > Hello fellow module developers! > I am trying to debug one of my directive-handling functions. You haven't really told us enough to make a diagnosis. However, the thing that springs t

Setting both Server and Directory Config Structs from the same config function

2006-11-16 Thread David Wortham
Hello fellow module developers! I am trying to debug one of my directive-handling functions. I want to set both the server and the appropriate directory structures when the function is invoked. Currently, I am getting Segmentation Faults (outside of all of my functions) when I set my server confi

Data Structure Serialization

2006-11-02 Thread David Wortham
I'd like to know if anyone developing modules has run across a struct-serialization function/library (in C, preferrably well tested with the APR and multiple (file|operating) systems). I am attempting to share data across child processes, but I have a few bugs in my serialization code. I'm reall

Re: server config apr_table_t

2006-10-10 Thread David Wortham
On 10/10/06, William A. Rowe, Jr. <[EMAIL PROTECTED]> wrote: You are responsible for mutexing; and remember unless you alloc before fork and never modify the data, it's per-process private. Is this to say that using a subpool of a "s->process->pool" pool, what mutations made by one child proces