Re: The Apache docs readPost causing SIGSEGV

2015-05-18 Thread Joe Lewis
Please check how you are creating the formData[i].key and format[i].value fields. If you are using the POST data in the structure, it is not NULL terminated. You have to do your own NULL termination, or (when it reads out of bounds) you get a SIGSEGV. Unless you are lucky and have NULL

Re: A web based terminal emulator as an Apache module?

2015-01-09 Thread Joe Lewis
Here is a good example thread : http://grokbase.com/t/apache/modules-dev/11bp9bhxr5/basic-example-shared-memory-code On Fri, Jan 9, 2015 at 10:35 AM, Joe Lewis jle...@silverhawk.net wrote: It is definitely possible to share information - see the apr_shm_* functions (or check the history

Re: A web based terminal emulator as an Apache module?

2015-01-09 Thread Joe Lewis
It is definitely possible to share information - see the apr_shm_* functions (or check the history on this list for shared memory). Eash POST request is considered a separate event, and is processed as such, which means there is no state in the protocol itself (there is when you add HTTP headers

Re: debugging ssl packet drop

2014-10-18 Thread Joe Lewis
Another possible list thst would be good would be the HTTPD development list. You may need the author of mod_ssl.  Thanks,  Joe Lewis Original message From: Pon Umapathy Kailash S pon.umapa...@gmail.com Date: 10/18/2014 4:28 AM (GMT-07:00) To: modules-dev

Re: debugging ssl packet drop

2014-10-17 Thread Joe Lewis
Your first message was delivered less than 24 hours ago - most of us are not paid by the Apache modules developers list, meaning we are stricly volunteer, and 24 hours might not be enough time. I would suggest patience, especially while asking questions on the fringes of this lists expertise.

Re: handler pass to php

2014-10-14 Thread Joe Lewis
I'd consider having your handler fire off a subrequest. The book should cover this topic, but you can also look in the source for some examples (or google ap_run_sub_req and review the results). You just want the php handler set for it. Joe On Tue, Oct 14, 2014 at 3:41 PM, Jeremy Thompson

Re: Tear down of module on server stop

2013-06-07 Thread Joe Lewis
On 06/07/2013 08:19 AM, Sean Beck wrote: I'm looking through and example I found herehttp://ctemplate.sourceforge.net/example/mod_example/mod_tplexample.c.htmland it says this about the method used by post_config(): This routine is called to perform any module-specific fixing of header fields,

Re: Tear down of module on server stop

2013-06-07 Thread Joe Lewis
On 06/07/2013 08:59 AM, Sean Beck wrote: You guys are awesome. So it should only run once then? Also for tear down of the stuff is there a different hook that I could load? It still runs twice. Tear down should be registering a pool clean up function, and using that.

Re: Tear down of module on server stop

2013-06-07 Thread Joe Lewis
On 06/07/2013 09:23 AM, Sean Beck wrote: Should I give it ptemp as the pool? Or should I create a new one in post_config()? When you set up your ActiveMQ connections, you will be using a pool to allocate the memory used. Use that pool. Otherwise, your cleanup and your config for the

Re: Tear down of module on server stop

2013-06-07 Thread Joe Lewis
On 06/07/2013 09:29 AM, Sean Beck wrote: Currently when I create the connections I don't use a pool for anything. I'm using the fusemq-c library. I did notice that libstomp uses a pool though. If the memory allocation isn't done through the apr_* routines, I'm not sure what pool to use. The

Re: Tear down of module on server stop

2013-06-07 Thread Joe Lewis
On 06/07/2013 09:52 AM, Sean Beck wrote: All I really need a pool for is so I have something to pass as a parameter. I see here https://apr.apache.org/docs/apr/1.3/group___pool_cleanup.htmlthat apr_pool_cleanup_register actually takes two functions as parameters. The one I would want is

Re: Tear down of module on server stop

2013-06-06 Thread Joe Lewis
On 06/06/2013 03:14 PM, Sean Beck wrote: Where does the tear down happen when httpd is stopped? I have some code for sending messages to ActiveMQ in my module and I would like to only make a connection on startup rather than every time someone connects, but then I need to destroy the connection

Re: Issue in using php5_module module.

2013-05-28 Thread Joe Lewis
On 05/28/2013 08:38 AM, Sindhi Sindhi wrote: [SNIP] With these changes, when I start httpd.exe and try to launch a simple php file shown above, from the browser, the first time I see that my filter module gets the correct php data from php file in the buckets. But when I try to open the same

Re: Apache C++ equivalent of javax.servlet.Filter

2013-05-03 Thread Joe Lewis
On 05/03/2013 01:53 AM, Sindhi Sindhi wrote: I'm so sorry, I searched, and found that request_rec has the below members - char *args; char *unparsed_uri; apr_uri_t parsed_uri; Which of the below members will have the exact URI that is passed from the browser? unparsed_uri will have what you

Re: Looking for suggestions: email clients

2013-04-15 Thread Joe Lewis
On Apr 14, 2013, at 5:36 PM, Tom Roth tom...@yahoo.com wrote: My web app needs to service email clients as well as browsers. Since the only messages I expect to process are small (SMS) and machine generated I'm looking for solutions short of installing a smtpd server and connecting it

Re: state management in handlers

2013-03-06 Thread Joe Lewis
Probably not, because you will have to cater to the MPM - e.g. use shared memory if a subsequent request comes into a different process. I'd suggest using shared memory (there are apr routines to do that), and that should guarantee that state will be shared between different threads or processes.

Re: Private mod and mod_jk

2012-11-08 Thread Joe Lewis
On 11/08/2012 05:11 AM, easyboy wrote: I am new to the apache mods. I just writing up a new mod with content handler to set cookies in request http header. I was able to load this mod. I need this mod process the request header before mod_jk. I'd suggest mod_proxy_ajp instead of mod_jk - the

Re: best way to return the content of a file

2012-08-19 Thread Joe Lewis
Yes. Every virtual host should be able to have a separate configuration, hence different configs. The server_rec structure points to the virtual host. There are ways to get the global settings from the global server_rec, do some searches.on the list archives and you will find that if its what you

Re: Best practices or recommendations for logging from a module?

2012-07-01 Thread Joe Lewis
Jim, you could use the log_error funtion all the time. Log_perror javits logging associated with a pool, and log_rerror is for requests. If possible, use log_rerror, because it puts the up address, etc into the logs. Joe On Jul 1, 2012 10:56 AM, oh...@cox.net wrote: oh...@cox.net wrote:

Re: Best practices or recommendations for logging from a module?

2012-07-01 Thread Joe Lewis
On 07/01/2012 12:55 PM, oh...@cox.net wrote: oh...@cox.net wrote: oh...@cox.net wrote: Joe Lewisjle...@silverhawk.net wrote: Jim, you could use the log_error funtion all the time. Log_perror javits logging associated with a pool, and log_rerror is for

Re: Best practices or recommendations for logging from a module?

2012-07-01 Thread Joe Lewis
On 07/01/2012 01:53 PM, oh...@cox.net wrote: Joe Lewisj...@joe-lewis.com wrote: On 07/01/2012 12:55 PM, oh...@cox.net wrote: oh...@cox.net wrote: oh...@cox.net wrote: Joe Lewisjle...@silverhawk.net wrote: Jim, you could use

Re: Best practices or recommendations for logging from a module?

2012-07-01 Thread Joe Lewis
On 07/01/2012 05:28 PM, oh...@cox.net wrote: Joe Lewisj...@joe-lewis.com wrote: On 07/01/2012 01:53 PM, oh...@cox.net wrote: Joe Lewisj...@joe-lewis.com wrote: On 07/01/2012 12:55 PM, oh...@cox.net wrote: oh...@cox.net wrote:

Re: UNSOLVED was Re: SOLVED was Re: How to compiling/link/use Apache module that uses shared library?

2012-06-22 Thread Joe Lewis
On 6/22/12 6:16 AM, oh...@cox.net wrote: oh...@cox.net wrote: Rainer Jungrainer.j...@kippdata.de wrote: On 22.06.2012 06:10, Joe Lewis wrote: On 6/21/12 10:02 PM, oh...@cox.net wrote: Joe Lewisj...@joe-lewis.com wrote: On 6/21/12 9:39 PM, oh...@cox.net wrote: oh

Re: Followup to earlier thread about How to compiling/link/use Apache module that uses shared library?

2012-06-22 Thread Joe Lewis
On 6/22/12 9:35 AM, oh...@cox.net wrote: oh...@cox.net wrote: Hi, Now that I've gotten by earlier problems with the module I'm working on (see thread Re: UNSOLVED was Re: SOLVED was Re: How to compiling/link/use Apache module that uses shared library?), I am trying to get my module to

Re: Deleting only bucket in brigade

2012-06-22 Thread Joe Lewis
On 6/22/12 9:52 AM, Jodi Bosa wrote: What do you do in an input filter when you need to remove the only bucket in the bucket brigade? The following results in the filter not being called with any of the subsequent bucket brigades: apr_bucket_delete(b); The following hangs:

Re: Deleting only bucket in brigade

2012-06-22 Thread Joe Lewis
On 06/22/2012 12:17 PM, Jodi Bosa wrote: excellent - that worked! ... tmpBucket = APR_BUCKET_NEXT(b); newBucket = apr_bucket_immortal_create(, (apr_size_t )0, bucketAlloc); APR_BUCKET_INSERT_BEFORE(tmpBucket, newBucket); apr_bucket_delete(b); ... But I'm

Re: SOLVED was Re: How to compiling/link/use Apache module that uses shared library?

2012-06-21 Thread Joe Lewis
On 6/21/12 5:49 PM, oh...@cox.net wrote: oh...@cox.net wrote: Sorin Manolachesor...@gmail.com wrote: And I forgot to say: run gdb in some sort of environment where you see your current source code line and a couple of surrounding lines. You could achieve this with the list command,

Re: UNSOLVED was Re: SOLVED was Re: How to compiling/link/use Apache module that uses shared library?

2012-06-21 Thread Joe Lewis
On 6/21/12 7:32 PM, oh...@cox.net wrote: oh...@cox.net wrote: Joe Lewisj...@joe-lewis.com wrote: On 6/21/12 6:46 PM, oh...@cox.net wrote: Joe Lewisj...@joe-lewis.com wrote: On 6/21/12 5:49 PM, oh...@cox.net wrote: oh...@cox.net wrote: Sorin

Re: UNSOLVED was Re: SOLVED was Re: How to compiling/link/use Apache module that uses shared library?

2012-06-21 Thread Joe Lewis
On 6/21/12 9:39 PM, oh...@cox.net wrote: oh...@cox.net wrote: oh...@cox.net wrote: Joe Lewisj...@joe-lewis.com wrote: On 6/21/12 7:32 PM, oh...@cox.net wrote: oh...@cox.net wrote: Joe Lewisj...@joe-lewis.com wrote: On 6/21/12 6:46 PM, oh...@cox.net wrote:

Re: UNSOLVED was Re: SOLVED was Re: How to compiling/link/use Apache module that uses shared library?

2012-06-21 Thread Joe Lewis
On 6/21/12 10:02 PM, oh...@cox.net wrote: Joe Lewisj...@joe-lewis.com wrote: On 6/21/12 9:39 PM, oh...@cox.net wrote: oh...@cox.net wrote: oh...@cox.net wrote: Joe Lewisj...@joe-lewis.com wrote: On 6/21/12 7:32 PM, oh...@cox.net wrote: oh...@cox.net wrote:

Re: Module: Mod_Dialup (ap_mpm_register_timed_callback)

2012-06-01 Thread Joe Lewis
On 6/1/12 2:36 AM, Pöchtrager, Bernhard wrote: ap_die should, in theory. Is your request handler adding in an EOS bucket (end of socket) ? Is anything calling the brigade functions in your code? No my request handler doesn't add an EOS bucket and I don't call the brigade function. Today I

Re: one question about HTTP response header Content-Length

2012-03-16 Thread Joe Lewis
On 3/16/12 12:54 AM, Rui Hu wrote: Sorry I didn't describe my question accurately. I want to modify Cache-Control depending on Content-Length and Content-Type, and Content-Type depending on r-uri. Therefore I must get those two fields and set that one field. Any suggestion? An output filter

Re: How to read PHP session in module

2012-03-04 Thread Joe Lewis
If you search Google for php basic auth, you should get some results. Take a look, there should even be some tutorials. On Mar 4, 2012 7:54 PM, yokota yok...@passlogy.com wrote: Thank you for your resonses, Joe and Ray. Joe, Php hooks into that, too, and can do basic auth. Could you tell me

Re: Intercepting HTTP 301/302 redirects

2012-03-01 Thread Joe Lewis
On 02/29/2012 07:46 PM, Swaminathan Bhaskar wrote: Thanks for the quick response Joe. Just to make sure, here is what I did: IfModule mod_myfilter.c Location / SetOutputFilter myfilter /Location /IfModule and the code #include stdio.h #include httpd.h #include http_protocol.h #include

Re: Intercepting HTTP 301/302 redirects

2012-03-01 Thread Joe Lewis
Congrats! Welcome to the world of filters! On 03/01/2012 09:37 AM, Swaminathan Bhaskar wrote: Ahh - Finally, I was able to get it working. Thanks for the pointer. Here is the code snippet: #includestdio.h #includehttpd.h #includehttp_protocol.h #includehttp_config.h #includehttp_log.h

Re: Intercepting HTTP 301/302 redirects

2012-02-29 Thread Joe Lewis
On 02/29/2012 06:01 PM, Swaminathan Bhaskar wrote: Hi Is there anyway to intercept HTTP 301/302 redirects ? I tried registering a very simple output filter (AP_FTYPE_RESOURCE) and the filter function did not get a callback. I would assume all output goes through the filter chain Rgds

Re: NoRobot module

2012-02-15 Thread Joe Lewis
configurable on/off. This would remove the issue of running order which you tackled with APR_HOOK_FIRST. 3. Be conservative in what you send. The last line of your robots.txt is unterminated! -- Joe Lewis www.silverhawk.net

Re: Input Filters -- not seeing anything

2012-01-16 Thread Joe Lewis
I think he meant on your include line : #include apr_buckets.h #include util_filter.h stat On 01/16/2012 09:37 AM, Pranesh Vadhirajan wrote: I believe it's a header that is included in the Apache build, so I would think it doesn't have that issue. Thanks, Pranesh -Original

Re: Input Filters -- not seeing anything

2012-01-16 Thread Joe Lewis
You can do two things. Place some ap_*log debug lines in your code and compile to find the line, or use the Gnu debugger and step through apache until you get the segmentation fault. On 01/16/2012 10:45 AM, Pranesh Vadhirajan wrote: I forgot to mention in my original email, that I'm

Re: A few questions on Input Filters

2012-01-13 Thread Joe Lewis
On 01/13/2012 09:24 AM, Martin Townsend wrote: Thanks Joe for the info, my input filter is now behaving itself again. I've not seen any FLUSH buckets yet so I doubt I will as we are running the bare minimum of modules. I'll let you know if I do though. One last question, when I don't see the

Re: A few questions on Input Filters

2012-01-11 Thread Joe Lewis
the parent filter. Many Thanks, Martin. That is what the list is for. Hope you can get things straightened out! Joe Lewis -- www.silverhawk.net

Re: please provide module for apache

2012-01-01 Thread Joe Lewis
If you compiled your own Apache properly, you should already have them. If someone else compiled your Apache, you should contact them. Thus list is forwriting your own modules. Joe On Dec 31, 2011 5:47 PM, phijo joseph phijo...@yahoo.com wrote: sir please provide modules for svn

Re: I need some idea about one unusual module with threaded communication :

2011-08-22 Thread Joe Lewis
On Sun, Aug 21, 2011 at 8:57 AM, milad rezai re...@ncc-gnss.com wrote: How can I communicate between different thread (one thread per client)? Problem : I need to develop a module with persistent connections, I have two kind of clients : one of them persistently sends data on connection and

Re: centOS apache module Vs. ubuntu apache module

2011-08-19 Thread Joe Lewis
is wrong, the system loading the dynamic library can't read the library (e.g. your .so is corrupt or wrong bit-ness). Joe Lewis -- http://www.silverhawk.net/

Re: Module External Configuration

2011-06-21 Thread Joe Lewis
config, change the shm pointer to point to the new one and destroy the old config. Don't touch the pointer aside from changing where it points to. Joe Lewis -- http://www.silverhawk.net/

Re: adding and editing response headers in conf

2011-06-16 Thread Joe Lewis
On Thu, 2011-06-16 at 12:32 -0400, Shawn Ligocki wrote: On Thu, Jun 16, 2011 at 11:57 AM, Joe Lewis jle...@silverhawk.net wrote: On Thu, 2011-06-16 at 17:46 +0200, Sorin Manolache wrote: Can I get this response just by changing the configuration of apache? Header edit

Re: adding and editing response headers in conf

2011-06-16 Thread Joe Lewis
On Thu, 2011-06-16 at 18:57 +0200, Sorin Manolache wrote: On Thu, Jun 16, 2011 at 18:41, Joe Lewis jle...@silverhawk.net wrote: On Thu, 2011-06-16 at 12:32 -0400, Shawn Ligocki wrote: On Thu, Jun 16, 2011 at 11:57 AM, Joe Lewis jle...@silverhawk.net wrote: On Thu, 2011-06-16 at 17:46

Re: adding and editing response headers in conf

2011-06-16 Thread Joe Lewis
On Thu, 2011-06-16 at 17:46 +0200, Sorin Manolache wrote: Hello, I have a content generator that sets a cookie on a domain. I know the cookie name and the domain name, they never change. However the cookie value and expiration time vary. I would like to add the cookie with same name and

Re: Kill a request nicely

2011-06-15 Thread Joe Lewis
and send that on. Joe Lewis -- Director - Systems Administration http://www.silverhawk.net/

Re: [mod_rewrite] Convert POST to GET

2010-06-16 Thread Joe Lewis
to be aware of is the GET data will have to be limited. It's one of the reasons why POST came into existence. Joe -- Joe Lewis

Re: Doing a subrequest with ap_run_sub_req

2010-05-06 Thread Joe Lewis
and pasted my over simplified example at the bottom of my response rather than using the top code section. On Tue, Apr 20, 2010 at 4:35 PM, Joe Lewis j...@joe-lewis.com wrote: ((template_context *)f-ctx)-include_r = ap_sub_req_lookup_uri(uri,f-r,((template_context *)f-ctx)-include_filter

Re: Doing a subrequest with ap_run_sub_req

2010-05-06 Thread Joe Lewis
. It really depends on your ultimate objective here. Joe On Thu, May 6, 2010 at 12:40 PM, Joe Lewis j...@joe-lewis.com wrote: On May 6, 2010, at 8:40 AM, Some Guy wrote: I wanted to do something similar, but the Apache 2 APIs require a request_rec* in the lookup_uri method. Tracing

Re: dynamic module versioning

2010-04-26 Thread Joe Lewis
On Apr 26, 2010, at 7:33 AM, alin vasile wrote: Hi, How I can accomplish the dynami9c module versioning? For example I want to deliver mod_x.so.1.0.1. Where do I need to specify the version 10.0.1? Thanks, Alin So, create a tar ball entitled mod_x-10.0.1.tgz or something similar.

Re: Doing a subrequest with ap_run_sub_req

2010-04-20 Thread Joe Lewis
((template_context *)f-ctx)-include_r = ap_sub_req_lookup_uri(uri,f-r,((template_context *)f-ctx)-include_filter); apr_table_setn(((template_context *)f-ctx)-include_r-notes,TEMPLATE_OVERRIDE_PARSER,-); if template_context *)f-ctx)-include_r != NULL) (((template_context

Re: DSO question

2010-03-09 Thread Joe Lewis
On Tue, March 9, 2010 6:43 am, Graf, László wrote: I have a shared library containing a function to calculate a multiple of 10. The header file (apr_dso_f.h): int f10(int p1); I use this library with an APR console application and it woks fine. OK. My module loads also this SO library

RE: Fighting with build process 2.2.x on Sparc Solaris 10

2010-03-06 Thread Joe Lewis
On Fri, March 5, 2010 3:41 pm, Thomas, Peter wrote: Getting further [in addition to pulling down the obvious additional dependency, libnet]: [snip] Undefined first referenced symbol in file __divdi3

Re: Multiple handlers for the same directory/location

2010-02-11 Thread Joe Lewis
Hi All, I'm looking into whether it's possible to reliably use multiple complimentary modules to handle the same directory or location. The basic idea is to create separate modules that might be individually reusable (e.g. one handles GETs, another might handle PUT and DELETE). The

Re: Linking in libraries to Apache Module

2009-12-07 Thread Joe Lewis
in the past. Linux-based systems also have an strace command that may be used to figure out what libraries are missing. -- Joe Lewis Chief Nerd SILVERHAWK http://www.silverhawk.net/ (801) 660-1900 /Rights that do

Re: Debugging: child process 14446 still did not exit, sending a SIGTERM

2009-10-16 Thread Joe Lewis
can have enough time to attach GDB to the hanging processes? Mike Perhaps run it in a non-forking mode (httpd -X -k start) inside of gdb and see what it hangs on? Joe -- Joe Lewis Chief Nerd SILVERHAWK http://www.silverhawk.net/ (801) 660-1900

Re: Debugging: child process 14446 still did not exit, sending a SIGTERM

2009-10-16 Thread Joe Lewis
Michael B Allen wrote: On Fri, Oct 16, 2009 at 1:10 PM, Joe Lewis j...@joe-lewis.com wrote: Michael B Allen wrote: I have a customer who very occasionally sees apache workers hang. I'm pretty sure this is caused by an errant module but I don't know which one. Is there any way

Re: Debugging: child process 14446 still did not exit, sending a SIGTERM

2009-10-16 Thread Joe Lewis
Michael B Allen wrote: On Fri, Oct 16, 2009 at 2:42 PM, Joe Lewis j...@joe-lewis.com wrote: Michael B Allen wrote: On Fri, Oct 16, 2009 at 1:10 PM, Joe Lewis j...@joe-lewis.com wrote: Michael B Allen wrote: I have a customer who very occasionally sees apache workers

Re: Run Subrequest

2009-10-15 Thread Joe Lewis
the subrequest returned, and since you use your own output filter that doesn't pass anything on, it won't send anything to the client. Joe -- Joe Lewis Chief Nerd SILVERHAWK http://www.silverhawk.net/ /Some say

Re: process initialisation in prefork-MPM

2009-07-27 Thread Joe Lewis
run your post config, create a shared memory segment. Then, on the other post configs (from inside of each process), attach to the shared memory handle, and set a local variable to your shared memory structure. Joe -- Joe Lewis Chief Nerd SILVERHAWK http://www.silverhawk.net/ (801) 660

Re: Probably OT. Difficulty implementing content handler Apache2

2009-07-09 Thread Joe Lewis
versus filters, but I think they meant content generators instead of handlers. The above is a content generator, not a filter, and as such may not be what you need, but should give you a good starting point. Joe -- Joe Lewis Chief Nerd SILVERHAWK http://www.silverhawk.net/ (801) 660-1900

Re: [REALLY OT] How good is the mod_dosevasive default

2009-06-12 Thread Joe Lewis
Elison Smith wrote: Any experience how good this default works for the average website? I would prefer to not spend time making changes to this default. Thanks! Not a clue. We program on this list, not configure. The problem about how well the default settings perform for you depends

Re: Module segfault on Ubuntu apache

2009-05-16 Thread Joe Lewis
Fabio Zund wrote: However, when I compile and test the module on the apache (also version 2.2.11) that comes with Ubuntu 9.04, all i get are segfaults. Does anyone know differences between the original apache and the Ubuntu apache version? What in my module could cause such errors?

Re: error in the auth code? (I think I found the key piece of info)

2009-05-02 Thread Joe Lewis
Sam Carleton wrote: Ok, I think in my last email I covered up the actual problem by adding a CRLF. In the apache log file I am getting this: Invalid URI in request s:Envelope xmlns:s= http://schemas.xmlsoap.org/soap/envelope/;s:Body xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance;

Re: error in the auth code? (I think I found the key piece of info)

2009-05-02 Thread Joe Lewis
Sam Carleton wrote: Ok, I think in my last email I covered up the actual problem by adding a CRLF. In the apache log file I am getting this: Invalid URI in request s:Envelope xmlns:s= http://schemas.xmlsoap.org/soap/envelope/;s:Body xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance;

Re: error in the auth code?

2009-05-02 Thread Joe Lewis
this is such an odd one. Joe Lewis

Re: Regarding setup modules for server 2.2

2009-04-16 Thread Joe Lewis
to release an oracle-specific module. You will have to install this on your own. Thanks! Joe -- Joe Lewis /Whenever people agree with me I always feel I must be wrong. --Oscar Wilde (1854-1900):/

Re: Set-Cookie

2009-03-26 Thread Joe Lewis
, each time with a different value. What's right depends on the spec that defines the header. Set-Cookie requires the header once for each cookie to set. Regards, Rainer -- Joe Lewis Chief Nerd SILVERHAWK http://www.silverhawk.net/ (801) 660-1900

Re: post_config on reload

2009-03-13 Thread Joe Lewis
Sorin Manolache wrote: On Fri, Mar 13, 2009 at 16:21, Andrej van der Zee andrejvander...@gmail.com wrote: Hi, Do not do this - a restart should be a restart, not a half of a restart. You should be reinitializing whatever you do on a restart as well as a start. That's the whole

Re: post_config on reload

2009-03-13 Thread Joe Lewis
Andrej van der Zee wrote: Hi, I was wondering if there is a solution for detecting a post_config invocation on behalf of apachctl restart instead of a clean start (in case of a restart, I do not want to initialise my stuff again). Do not do this - a restart should be a restart, not a half

Re: Making mod_auth_digest mysql

2009-02-12 Thread Joe Lewis
not. Is that what you are after? -- Joe Lewis Chief Nerd SILVERHAWK http://www.silverhawk.net/ (801) 660-1900 /You know there is a problem with the education system when you realize that out of the 3 R's only one begins

Re: Making mod_auth_digest mysql

2009-02-12 Thread Joe Lewis
give a brief overview of what you are trying to accomplish? As I see it, you were creating a mod_auth_digest_mysql . This now feels completely different than just an authentication. -- Joe Lewis Chief Nerd SILVERHAWK http://www.silverhawk.net/ (801) 660-1900

Re: Making mod_auth_digest mysql

2009-02-12 Thread Joe Lewis
be as secure as anything out on the Internet today, depending on how you configure it to go. It can be as complex or as simple as you wish to make it. (I prefer simple - it's easier to troubleshoot if you have problems.) Convoluted? -- Joe Lewis Chief Nerd SILVERHAWK http://www.silverhawk.net

Re: WELCOME to modules-dev@httpd.apache.org

2009-02-10 Thread Joe Lewis
dave wrote: Hi All, I'm having trouble with the server_rec-module_config variable and perhaps I am misunderstanding something. static void get_resource(void *module_config) { my_config *cfg = (my_config *)ap_get_module_config(module_config, my_module); printf(module_config: %d\n, cfg);

Re: WELCOME to modules-dev@httpd.apache.org

2009-02-10 Thread Joe Lewis
dave wrote: I tried defining a merge callback for both the server level and the directory level, but that doesn't seem to change anything. -dave man...@gmail.com I understand - you are using both directory AND server side configs. directory configs do not get created until a request.

Re: WELCOME to modules-...@httpd.apache.org

2009-02-10 Thread Joe Lewis
dave wrote: Hi All, I'm having trouble with the server_rec-module_config variable and perhaps I am misunderstanding something. With your last post (the creation), it looks like you understand it well. Are you only creating one process? For example, run it with a -X parameter (to

Re: Question about global data

2009-02-09 Thread Joe Lewis
Sorin Manolache wrote: On Mon, Feb 9, 2009 at 19:04, Thomas Moyer tmmo...@cse.psu.edu wrote: Is it possible to have some global data that is accessible to all request threads. Something like a socket is what I am interested in. For example, if I have a socket that opens a connection to

Re: Apache Version

2008-08-18 Thread Joe Lewis
John Hosie wrote: OK. I know there are good things about each. But in this day, is Apache 2 yet ready for prime time? Or are we best still using one of the flavors of Apache 1? Apache 2 is definitely ready. I think apache 2.2 is definitely ready for primetime. I'd stay away from 1.3 as

Re: does ibm http server implement ALL the features of apache httpd

2008-07-02 Thread Joe Lewis
apache a wrote: this is what it tells on this page http://httpd.apache.org/docs/2.2/mod/mod_asis.html The contents of any file with a .asis extension will then be sent by Apache to the client with almost no changes. In particular, HTTP headers are derived from the file itself according to

Re: debugging a timeout issue

2008-05-09 Thread Joe Lewis
Sam Carleton wrote: On Fri, May 9, 2008 at 12:23 AM, Graham Dumpleton [EMAIL PROTECTED] wrote: Since you see one request but not the second, one thing I would perhaps suggest doing is turn off KeepAlive and see if that makes a difference with the client. I am wondering, I do not see

Re: perform a redirect in output filter

2008-04-17 Thread Joe Lewis
John Zhang wrote: I am using apache 2.0/2.2, in my output filter, I would like to have the ability to redirect. Some tests indicated that I can redirect to a page on the same site, but not to an external site. Here is my code for redirect: char* location = apr_table_get(r-headers_out,

Re: what should be done in a vhost_db module?

2008-04-08 Thread Joe Lewis
Robert Schulze wrote: Tom Donovan schrieb: In a threaded mpm, the same r-server struct is used by multiple requests simultaneously. It isn't safe to change anything in it on the fly. OK, thats a pity. I now tried to set several other variables (Host in r-headers_in, r-hostname, etc.)

Re: Sending large file as attachment to clients

2008-03-25 Thread Joe Lewis
Subra A Narayanan wrote: Thanks for the replies guys. I will try ur suggestions once I get to work today. Just a few more questions: Check out the various filter/bucket brigade examples. This may do just what you want. I've used it to 'gate' the final sending for things ike throttling and

Re: Sending large file as attachment to clients

2008-03-24 Thread Joe Lewis
Subra A Narayanan wrote: Thanks for ur reply Samuel! Maybe you can read part of the blob with a function like MySQL's SUBSTR. I can easily read small chunks of data from my datastore. I guess the problem that I am trying to solve here - how to send chunks of data as a HTTP response without

Re: probleme with the Location tag

2008-03-16 Thread Joe Lewis
mohamed nadir belkhelfa wrote: Location /compressed!gzip/home/myusr/file.gz Ensure that you don't have a space between the less-than sign and location, and you may want to remove the exclamation point from the filename. If that doesn't work, try adding ap_log* lines to your location

Re: probleme with link a external library

2008-03-10 Thread Joe Lewis
mohamed nadir belkhelfa wrote: hello I am das new Web programming with the API apache1.3 and I want to link static library libwarc.a that I have personally created in my program mod_warc.c For this I add to my makefile (automatically generated by apxs-g-n)the line LIB = -lwarc the

Re: mysql auth module

2008-02-07 Thread Joe Lewis
Seth Cherney wrote: OK, I signed onto this list about 4 months ago, and have never seen anything remotely close to my low level of skill posed as a Q on the list. I have been trying to rewrite a mysql login module to include more fields to check / update. Certain parts are quite easy, but,

Re: mod_proxy chaining with a .pac file

2008-01-23 Thread Joe Lewis
with the proxy: string, set the proxyreq setting in the request_rec to an appropriate value, and return 1 to allow mod_proxy to handle the rest of it. Joe On Jan 23, 2008 2:34 PM, Joe Lewis [EMAIL PROTECTED] wrote: Giovanni Donelli wrote: Take this pac file: $ curl http://wpad.wws.lan

Re: mod_proxy chaining with a .pac file

2008-01-23 Thread Joe Lewis
Ralf Mattes wrote: On Wed, 2008-01-23 at 11:12 -0700, Joe Lewis wrote: Giovanni Donelli wrote: I am trying to make Apache follow the same rules as the browser Realize that the browser doesn't get the configurations for each website it visits, it only configures, then runs

Re: [Module Dev] Sending http request

2008-01-22 Thread Joe Lewis
, NULL, NULL, auth_chorus_config, NULL, **my_module**_cmds, **my_module**_hooks };* Thanks On Jan 17, 2008 4:01 PM, Joe Lewis [EMAIL PROTECTED] wrote: karim Bendadda wrote: Hi All; I tried this *request_rec *subr = ap_sub_req_lookup_uri(url, r, NULL); apr_table_set

Re: [Module Dev] Sending http request

2008-01-22 Thread Joe Lewis
... I almost forgot. Try setting the r-proxyreq to PROXYREQ_PROXY or PROXYREQ_REVERSE, and see if that does anything (before returning 1). (I had to look at the mod_rewrite.c file as that is what I am using as an example.) Joe On Jan 22, 2008 7:25 PM, Joe Lewis [EMAIL PROTECTED] wrote

Re: [Apache Module] Request External Redirection

2008-01-14 Thread Joe Lewis
Dr. Peter Poeml wrote: On Mon, Jan 14, 2008 at 03:50:25PM +0100, karim Bendadda wrote: Thanks for your answer! But I don't understand the second way to implement it?? it can respond with a Location: header and a status of 302.?? On 1/14/08, Joe Lewis [EMAIL PROTECTED] wrote: karim

Re: [Apache Module] Request External Redirection

2008-01-14 Thread Joe Lewis
karim Bendadda wrote: Thank you for your help! How can I call the Redirect directive into the module??, In fact in the module I have a function that make an LDAP connection I want to do something like that: request_rec* my_request; //The request with new information

Re: [Apache Module] Request External Redirection

2008-01-14 Thread Joe Lewis
karim Bendadda wrote: I did that , I have a redirection to the new url but it seems that it's just a redirection , the HTTP request doesn't get in the new URl: there is my code: The only two options again are to proxy to the external server, or redirect the client to the external server.

Re: [Apache Module] Request External Redirection

2008-01-14 Thread Joe Lewis
karim Bendadda wrote: How can I see if my module really redirect the request?? (by the ap_log_error for example) Thank you very much for your precisous help! You should see the URL change in the browser to the new location. -- Joseph Lewis http://sharktooth.org/ Divide the fire, and you

Re: [Apache Module] Request External Redirection

2008-01-14 Thread Joe Lewis
karim Bendadda wrote: Sorry but I'm a beginer on developping Apache modules...Thank you for your patience... I dont't understand this: /* set a Location: header and 302 redirect. */ Does'it mean to make this??: No, that is just a C comment. Location /my_module Redirect

Re: Problem with directives

2008-01-10 Thread Joe Lewis
karim Bendadda wrote: *Location /name_module url http:\\10.114.20.8\myopenldap port 389 baseDn someone /Location* I'm not sure port is the best one to use. Perhaps something more specific to your module, such as MyLDAPPort, or even relying on the ldaputil.c settings to set up that

  1   2   >