Re: APXS question

2007-07-22 Thread Eric Covener
o install two DSO's, not to link two pieces of object code into a single DSO. -- Eric Covener [EMAIL PROTECTED]

Re: Calling a module befor the mod_proxy module

2007-10-29 Thread Eric Covener
module participates in, you can explicitly choose which modules you want to precede/succede your module. The bottom of mod_proxy.c shows you what hooks and ordering the proxy uses. -- Eric Covener [EMAIL PROTECTED]

Re: undefined reference to `ap_log_error'

2007-12-04 Thread Eric Covener
On Dec 4, 2007 3:27 PM, Jack Bates <[EMAIL PROTECTED]> wrote: > -Wl,-z -Wl ,defs "-z defs" Normally when creating a non-symbolic shared library, undefined symbols are allowed and left to be resolved by the runtime loader. These options disallows such undefined symbols.

Re: undefined reference to `ap_log_error'

2007-12-04 Thread Eric Covener
On Dec 4, 2007 4:03 PM, Eric Covener <[EMAIL PROTECTED]> wrote: > On Dec 4, 2007 3:27 PM, Jack Bates <[EMAIL PROTECTED]> wrote: > > > -Wl,-z -Wl ,defs > > "-z defs" > Normally when creating a non-symbolic shared library, undefined > symbols are allowed

Re: Memory issue in apache modules

2007-12-14 Thread Eric Covener
un and allocate some memory for a range of requests. MaxMemFree can be used to return the heap memory that would otherwise be used by subsequent requests on that thread. -- Eric Covener [EMAIL PROTECTED]

Re: Is there are any way to know if the request is regular (http) or SSL (https) in a module?

2007-12-17 Thread Eric Covener
On Dec 17, 2007 9:23 PM, John Zhang <[EMAIL PROTECTED]> wrote: > I would like to know the request type in my module > (handler/filter), is there any way to know that (HTTP > vs HTTPS)? apr_table_get(r->subprocess_env, "HTTPS") might be what you want -- Eric Covener [EMAIL PROTECTED]

Re: [Apache Module] Request External Redirection

2008-01-15 Thread Eric Covener
need a mod_proxy_hook... What information isn't retained? Something in apache? A request header? -- Eric Covener [EMAIL PROTECTED]

Re: mod_proxy timeouts

2008-02-04 Thread Eric Covener
been work on this issue. -- Eric Covener [EMAIL PROTECTED]

Re: Additional log file

2008-02-08 Thread Eric Covener
e data into an environment variable (subprocess_env) or a note, you can just use an additional LogFormat/CustomLog to collect the data. -- Eric Covener [EMAIL PROTECTED]

Re: Need help on memory related issues

2008-03-14 Thread Eric Covener
appreciated. Does it happen without your module? If you're using a threaded MPM, are you giving Apache enough time to stabilize? RSS should level out after each thread has had a chance to run your hungriest request. -- Eric Covener [EMAIL PROTECTED]

Re: Query on deletion of Request pool

2008-03-26 Thread Eric Covener
ng to be released but not sure what > is the problem the memory grows infinitely. How are you measuring memory use? Have you tried MaxMemFree? By default, apache won't continuously return this storage to the native heap because it's likely going to be needed again anyway. -- Eric Covener [EMAIL PROTECTED]

Re: Query on deletion of Request pool

2008-03-27 Thread Eric Covener
y restore.We have to reboot the box to > restore the original RAM.Should I try using smaller value for MaxMemFree? > Thanks and regards > -A It sounds like you're tracking the wrong numbers if memory isn't free when the application terminates. -- Eric Covener [EMAIL PROTECTED]

Re: modules and RewriteRules

2008-03-29 Thread Eric Covener
er promenadeImages get sent > to my handler? > > Sam > Would that require one of the [PT] flag or a Directory container? -- Eric Covener [EMAIL PROTECTED]

Re: How to manage memory allocation/free in the handler ?

2008-04-04 Thread Eric Covener
ger then a pool you have access to. Are you creating a new config too often? Normal data that only has to live as long as a request should be allocated out of r->pool ("request pool") http://www.apachetutor.org/dev/pools -- Eric Covener [EMAIL PROTECTED]

Re: Requests on a custom module (LocationMatch)??

2008-06-03 Thread Eric Covener
anywhere in the URL". Have you tried Proxy containers? What hook does your module operate in? -- Eric Covener [EMAIL PROTECTED]

Re: Connection filter for forward proxy

2008-06-12 Thread Eric Covener
ermine the next proxy. Or, add hooks to let mod_rewrite do it via setting some note. I don't think you want to be in the business of duplicating this stuff or trying to subvert the request during an input filter -- Eric Covener [EMAIL PROTECTED]

Re: Connection filter for forward proxy

2008-06-13 Thread Eric Covener
roxyRemote to implement the default provider, adding a little string config option to choose a non-default provider if you want it, and implementing the the new provider. It would have a fair chance of being integrated into upstream Apache to allow other modules to extend the selection algorithm. -- Eric Covener [EMAIL PROTECTED]

Re: how to catch segment fault

2008-06-24 Thread Eric Covener
ault (11). > but this module run well. Set CoreDumpDirectory in httpd.conf and check ulimit -c; you may need to change your startup script for the latter. -- Eric Covener [EMAIL PROTECTED]

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

2008-07-02 Thread Eric Covener
all features", especially one that quite clearly doesn't even include all the modules. -- Eric Covener [EMAIL PROTECTED]

Re: Want to get started...what do I need?

2008-08-08 Thread Eric Covener
27;d probably have a much better time running a recent Fedora or Centos during development. -- Eric Covener [EMAIL PROTECTED]

Re: 'Expect' HTTP Header

2008-09-18 Thread Eric Covener
xpecting 100-continue, the HTTP input filter takes care of responding to it. see ap_http_filter() in modules/http/http_filters.c You could probably short-circuit the regular processing (but not in an API friendly way). -- Eric Covener [EMAIL PROTECTED]

Re: Wrapping an existing hook (2.0)

2008-10-03 Thread Eric Covener
D if it can lookup a user and specifically find they have an expired password -- could you make a case to IBM for the behavior you ultimately want? -- Eric Covener [EMAIL PROTECTED]

Re: Stopping Apache when configuration directive is wrong

2008-11-23 Thread Eric Covener
L string from your callback that runs when the directive is encountered in the config file -- Eric Covener [EMAIL PROTECTED]

Re: proxy - as a Handler or a Filter?

2008-12-15 Thread Eric Covener
I would suggest implementing both the handler and the filter and leaving them as independent as possible. -- Eric Covener cove...@gmail.com

Re: Setting the 'Server' header from my module

2009-01-11 Thread Eric Covener
ch later and it overwrites the value that I am > setting. This happens in ap_http_header_filter (the output filter that writes the headers when you first try to write some body). It looks like trunk will preserve a pre-existing header, but 2.2.x and earlier do not. -- Eric Covener cove...@gmail.com

Re: multiple source files in a single apache module

2009-01-13 Thread Eric Covener
'm not sure what Makefile you're starting with. -- Eric Covener cove...@gmail.com

Re: A question about getting a module to handle a specific Location

2009-01-18 Thread Eric Covener
e first argument is a prefix; any URI beginning with it is considered to be part of the publication. The second is the filesystem directory where the data is rooted. The filenames are the same as the URIs, only with the directory substituted for the prefix. The title and author are self-explanatory. There are no defaults. -- Eric Covener cove...@gmail.com

Re: How to get a port number.

2009-01-18 Thread Eric Covener
Sure, my > module is not in a virtual host. > Maybe http://httpd.apache.org/docs/2.2/mod/core.html#usecanonicalphysicalport ? (or ServerName if it's the only Listen) -- Eric Covener cove...@gmail.com

Re: multiple processes: but one module init needed

2009-01-25 Thread Eric Covener
want to use the construction in > the example module to avoid reallocating certain items. Buy two, get two free on Windows! -- Eric Covener cove...@gmail.com

Re: Antwort: Need help with --activate-module

2009-01-29 Thread Eric Covener
On Thu, Jan 29, 2009 at 2:57 AM, Shibu Narendranathan wrote: > SetHandler foo_handler My 2.2.x apxs -g module says: if (strcmp(r->handler, "foo")) { -- Eric Covener cove...@gmail.com

Re: Making mod_auth_digest mysql

2009-02-06 Thread Eric Covener
o(); It is only defined if the user is > logged in. That processing is later, so REMOTE_USER may be set by then. > Why would a nonexistent variable evaluate to true? Unless i'm confused re: "-e", It seems like your "-e" would be interpreted as a regex, but that shouldn't match an empty string AFAICT. -- Eric Covener cove...@gmail.com

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

2009-02-11 Thread Eric Covener
800cfg:0x2b45dc26fff0server: > 0x2b45dc2361b8} <-- recieving the return value of the merge_server > create new is this from passing r->server? Are you sure your request was mapped to a virtualhost? -- Eric Covener cove...@gmail.com

Re: Making mod_auth_digest mysql

2009-02-12 Thread Eric Covener
d: input='' pattern='.' => not-matched -- Eric Covener cove...@gmail.com

Re: Making mod_auth_digest mysql

2009-02-12 Thread Eric Covener
I'm > going to hack apache, if I have to. That's not the behavior of variables in rewriteconds. Try a simpler testcase. -- Eric Covener cove...@gmail.com

Re: Making mod_auth_digest mysql

2009-02-12 Thread Eric Covener
not provided. This happens before your per-directory rewrites have a chance to do anything. RewriteLog would likely tell you that the conditions/rules are not evaluated in this scenario, because the 401 is returned before the fixup hook where rewrite runs in per-dir context -- Eric Covener cove...@gmail.com

Re: ap_auth_type() -question

2009-02-23 Thread Eric Covener
ries? Do you call apr_match_glob elsewhere? You might try building with --enable-maintainer-mode -- Eric Covener cove...@gmail.com

Re: VS: ap_auth_type() -question

2009-02-23 Thread Eric Covener
in sprintf("Auth type: %s", > ap_auth_type(r)). > I'm suggesting that you need to make sure you don't follow a null pointer, > I don't call apr_match_glob() directly, but assumed that ap_auth_type(r) call > caused the execution of the glob function. I don't

Re: Callback function which is just called before connection is destroyed

2009-02-23 Thread Eric Covener
7;s not clear if that's what you mean by a "session". -- Eric Covener cove...@gmail.com

Re: Callback function which is just called before connection is destroyed

2009-02-23 Thread Eric Covener
d. the "c" and "r" parameters got > destroyed or cleanup. > > Can you please send me the code snippet to register the cleanup function as > you suggested. They're not initialized and destroyed together, e.g. keepalive. See ssl_io_filter_init in modules/ssl/ss

Re: Callback function which is just called before connection is destroyed

2009-02-23 Thread Eric Covener
nnection->pool' will solve my problem. > Please confirm. A cleanup at the end of a request should be registered against r->pool. -- Eric Covener cove...@gmail.com

Re: start httpd with one child for debugging

2009-03-17 Thread Eric Covener
; Thank you, > Andrej > -X is the easiest to remember http://httpd.apache.org/dev/debugging.html -- Eric Covener cove...@gmail.com

Re: Safari - Why?

2009-04-05 Thread Eric Covener
n phpinfo()? > > Does phpinfo() show exactly as sent from the browser or does it scrub them? I'd suggest adding the input headers you're interested in via LogFormat, then testing your regex via "pcretest" -- Eric Covener cove...@gmail.com

Re: Deregister and register a single module on passing signal..

2009-04-20 Thread Eric Covener
On Sun, Apr 19, 2009 at 11:58 PM, Jaysingh Samuel wrote: > 1. If iam passing a SigUSR2 signal to the parent process, then will i be able > to reload/rerun only my custom Modules,  without reading the config file ?. No, all the modules are reloaded and the config is re-parsed. -- Eric C

Re: Location of Apache Modules

2009-04-21 Thread Eric Covener
th the first > request, but not forcing a new login with different credentials on > subsequent requests. Did your browser send digest credentials on the ajax request? You can log %{Authorization}i in the access log to quickly tell. If credentials were sent, can mod_log_config log a %u or were they ignored (due to no Require, satisfy any, etc)? -- Eric Covener cove...@gmail.com

Re: mod_auth_digest amiss correction

2009-04-23 Thread Eric Covener
>> Am I mistaken in thinking I should not be logged in as admin?  Or that >> there >> is someway to force this to happen? This is just your browser using stored credentials. It doesn't know the significance of your "logout" user. -- Eric Covener cove...@gmail.com

Re: Set-Cookie header not honored on 304 (Not modified) status

2009-06-01 Thread Eric Covener
the cookie: https://issues.apache.org/bugzilla/show_bug.cgi?id=18388 Maybe your not adding it to err_headers_out? -- Eric Covener cove...@gmail.com

Re: Memory and pools

2009-06-30 Thread Eric Covener
inished, this memory is not returned to > OS - RSS is 100 MiB. > > Linux 2.6 - httpd-2.2.10 Not by default, see the MaxMemFree directive. The conventional wisdom is that some other req on that thread will also soon need the same high water mark of memory, so better to not go in/out of t

Re: Module that forward requests

2009-07-13 Thread Eric Covener
uster forward the request. Look at mod_proxy, mod_jk, mod_serf. -- Eric Covener cove...@gmail.com

Re: Module that forward requests

2009-07-13 Thread Eric Covener
On Mon, Jul 13, 2009 at 9:48 AM, ricardo13 wrote: >> Only opinion. Is this difficult ?? or easy ?? >> Because I haven't idea !! It's difficult. I'd suggest finding a way to use existing modules. -- Eric Covener cove...@gmail.com

Re: Module that forward requests

2009-07-13 Thread Eric Covener
On Mon, Jul 13, 2009 at 9:53 AM, Eric Covener wrote: > On Mon, Jul 13, 2009 at 9:48 AM, ricardo13 wrote: > >>> Only opinion. Is this difficult ?? or easy ?? >>> Because I haven't idea !! > > It's difficult. I'd suggest finding a way to use existin

Re: Module that forward requests

2009-07-13 Thread Eric Covener
a module. mod_rewrite already illustrates this with the P flag. -- Eric Covener cove...@gmail.com

Re: Module that forward requests

2009-07-13 Thread Eric Covener
On Mon, Jul 13, 2009 at 10:33 AM, ricardo13 wrote: > > > > Eric Covener wrote: >> >> On Mon, Jul 13, 2009 at 10:06 AM, ricardo13 >> wrote: >>>>> It's difficult. I'd suggest finding a way to use existing modules. >>>> >>&

Re: Module that forward requests

2009-07-13 Thread Eric Covener
> How do I do it ?? Remember, using external program. Because my external >> program classifies requests. >> Why do your followups have the same level of quoting as the thing you're replying to? -- Eric Covener cove...@gmail.com

Re: Module that forward requests

2009-07-13 Thread Eric Covener
On Mon, Jul 13, 2009 at 1:30 PM, ricardo13 wrote: > r->proxyreq == PROXYREQ_PROXY; > > But in httpd.h, the request_rec object hasn't field proxyreq. > What's this ?? In my 2.2.x headers it's an int in the request_rec. -- Eric Covener cove...@gmail.com

Re: Module that forward requests

2009-07-14 Thread Eric Covener
On Tue, Jul 14, 2009 at 7:37 AM, Tom Evans wrote: > On Tue, 2009-07-14 at 03:22 -0700, ricardo13 wrote: >> r->filename = apr_psprintf(r->pool, "%s://%s%s%s%s", "http", "ip_machine", >> "port_machine", r->filename); # of %s in fo

Re: How do I manipulate request_rec Object in worker.c

2009-07-20 Thread Eric Covener
o_storage, etc..)?? Yes, although there are connection-related hooks that run in-between the two things you mentioned. -- Eric Covener cove...@gmail.com

Re: How do I manipulate request_rec Object in worker.c

2009-07-21 Thread Eric Covener
On Tue, Jul 21, 2009 at 8:40 AM, ricardo13 wrote: >> Is pre-connection a hook ? Yes, see mod_example.c -- Eric Covener cove...@gmail.com

Re: How I pass a information ?

2009-07-21 Thread Eric Covener
dules are different. The module A sets a information and module only > "get" that information. > Remember, using conn_rec. > > conn_rec->table ?? If you're forwarding a HTTP request via mod_proxy, you could add request headers. -- Eric Covener cove...@gmail.com

Re: How do I manipulate request_rec Object in worker.c

2009-07-23 Thread Eric Covener
On Thu, Jul 23, 2009 at 8:59 AM, ricardo13 wrote: > > Hi, Subscribe with a mail client, the misquoted replies (via gmail) are not worth the effort to read. -- Eric Covener cove...@gmail.com

Re: ap_hook_child_init

2009-07-26 Thread Eric Covener
t; How can I force this? I could not find any hook-method that is called > before the process is exited. How can I force the thread to be cleanup > up neatly, preferably without breaking into the Apache core? Register a cleanup on the pool passed to your child_init function. -- Eric Covener cove...@gmail.com

Re: Threads

2009-07-28 Thread Eric Covener
quot;invoked" during the apache hooks. You need to write normal methods that will be invoked by the normal request-processing threads, and talk to your standalone thread via some type of non-Apache-specific IPC. -- Eric Covener cove...@gmail.com

Re: Threads

2009-07-28 Thread Eric Covener
ng a thread, you'd want to interact with it in some way to implement your queueing. It sounded like you expected the core of Apache to interact directly with your standalone thread, which it won't do for you. -- Eric Covener cove...@gmail.com

Re: worker_score structure

2009-07-29 Thread Eric Covener
Is it life time of process (or > thread) ?? You need to do more homework before asking questions such as these -- use the source code. -- Eric Covener cove...@gmail.com

Re: Module reports busy workers

2009-08-26 Thread Eric Covener
tion. I don't know about use these > information in my module. mod_status is less than a thousand lines of code and already has all of this logic. What part of mod_status are you having trouble understanding, specifically? -- Eric Covener cove...@gmail.com

Re: Module reports busy workers

2009-08-26 Thread Eric Covener
On Wed, Aug 26, 2009 at 11:56 AM, ricardo13 wrote: > > HI, > > How do I collect these informations in my module ? Same way mod_status does? -- Eric Covener cove...@gmail.com

Re: correct hook function after accepting connection

2009-08-28 Thread Eric Covener
_pre_connection() is a RUN_ALL. (not really pre_connection of course, that'd be some feat!) -- Eric Covener cove...@gmail.com

Re: Repetitive warnings on ErrorLogs.

2009-09-09 Thread Eric Covener
sed server or even 2.0.x. One source of the message was resolved in both distributions in 2005, which I believe is: http://svn.apache.org/viewvc?view=rev&revision=159470 -- Eric Covener cove...@gmail.com

Re: post-config phase question

2009-11-11 Thread Eric Covener
hooked into child_init or calling some code from both post_config and child_init -- can you post the smallest working module that demonstrates it? (also on Windows, 4 times is normal -- 2 in the parent and 2 in the child) -- Eric Covener cove...@gmail.com

Re: ap_sub_req_lookup_uri(r->uri, r, NULL)->content_type always returns 'text/plain'?

2009-11-14 Thread Eric Covener
tions to the entire Apache server instance. What does this get you over just setting MaxClients directly? -- Eric Covener cove...@gmail.com

Re: ap_sub_req_lookup_uri(r->uri, r, NULL)->content_type always returns 'text/plain'?

2009-11-14 Thread Eric Covener
he.org/docs/2.2/mod/mpm_common.html#listenbacklog -- Eric Covener cove...@gmail.com

Re: Static vs. Shared module precedence was Re: ap_sub_req_lookup_uri(r->uri, r, NULL)->content_type always returns 'text/plain'?

2009-11-15 Thread Eric Covener
e the comments in mid_dir's usage of ap_sub_req_lookup_uri()? -- Eric Covener cove...@gmail.com

Re: [OT] ajusting apache timeout

2009-11-15 Thread Eric Covener
On Sun, Nov 15, 2009 at 3:44 PM, Sam Carleton wrote: > I am working on a Axis2/C module that is hosted by Apache 2.2.  The client > is .Net 3.5.  I have set the SendTimeout on the .Net binding to 10 minutes > but things are still timing out in about 30 seconds. During what? -- Eri

Re: Linking in libraries to Apache Module

2009-12-07 Thread Eric Covener
On Mon, Dec 7, 2009 at 7:07 PM, Devin Ceartas wrote: > hm. -rpath doesn't seem to be an accepted flag in the apxs included with the > latest OpenBSD apxs will pass linker or compiler args down to the respective program with -Wl, or -Wc, ; it doesn't do anything with them dir

Re: OAuth WRAP apache module

2010-01-15 Thread Eric Covener
hts > or advices regarding this? There is a windows flavor of apxs hosted over at mod_perl -- Eric Covener cove...@gmail.com

Re: Time for a new AuthType: "cert?"

2010-03-01 Thread Eric Covener
ps--especially if > someone has already "cracked this nut" in an generalizable way. I think "AuthType cert" is reasonable as long as you can demonstrate using the the traditional authz providers. -- Eric Covener cove...@gmail.com

Re: rewrite processing before cache

2010-03-01 Thread Eric Covener
essed before a cache check, > if possible. Trunk has a feature called "CacheQuickHandler" that stops the cache from short-circuiting all the local processing, but not available in 2.2.x. The other option you have is to add a Vary header for user-agent, but that makes you store a ton of diffe

Re: How to apply patches for ZLIB and OpenSSL that are in patches_applied directory

2010-03-08 Thread Eric Covener
piece of software. -- Eric Covener cove...@gmail.com

Re: Support for SASL bind in mod_ldap?

2010-03-18 Thread Eric Covener
d be cognizant of if I plan to go down > that road mysely? Just portability between SDKs. -- Eric Covener cove...@gmail.com

Re: Seeking suggestions on changes to mod_authnz_ldap [and possibly mod_ldap] supporting X.509/LDAP A&A [AuthType Certificate]

2010-04-21 Thread Eric Covener
I'm applying that search to a different search base.  I > could create a separate cache for every user encountered [i.e. by > changing the base component of the LDAP URL before calling any > uldap_cache_* function].  That seems painful.  Thoughts? > How important is this optimization

Re: Seeking suggestions on changes to mod_authnz_ldap [and possibly mod_ldap] supporting X.509/LDAP A&A [AuthType Certificate]

2010-04-21 Thread Eric Covener
member value you'd have to extract it from the DN. It does seem like either the cache structure, or the ldap-user/ldap-filter logic would need an overhaul. 1-cache-per-user is probably the wrong direction though. -- Eric Covener cove...@gmail.com

Re: Howto install headerfiles into /include?

2010-05-03 Thread Eric Covener
c facility provided for this. For example, the top-level apache Makefile knows specifically about mod_rewrite's header file. >>Btw - why are some of the .m4 files named config9.m4 or >>config5.m4? Is this on purpose and if yes, why? ordering I believe -- Eric Covener cove...@gmail.com

Re: interaction between mod_substitute and mod_proxy

2010-06-14 Thread Eric Covener
? That's why they > don't work together? Which proxy module specifically? I can't imagine anything but mod_proxy_connect would do that. -- Eric Covener cove...@gmail.com

Re: mod_proxy per-directory settings handling

2010-06-15 Thread Eric Covener
. Could make it configurable but probably not a candidate for a change in default (IMO) -- Eric Covener cove...@gmail.com

Re: Error: invalid ELF header

2010-10-04 Thread Eric Covener
> What I think is that I will have to compile the module once on linux > environment. If this is the case, it would be great if anyone can suggest > good link for compiling and creating modules on Linux machine. http://httpd.apache.org/docs/current/programs/apxs.html

Re: How do I get hold of session information?

2010-10-19 Thread Eric Covener
On Tue, Oct 19, 2010 at 9:36 AM, Paul Donaldson wrote: > Hello, > > I have a module that does little more than take the information in the http > request and forward it to another web site. I can get information from the > query > string easily enough, but is there any way I can get information a

Re: How do I get hold of session information?

2010-10-20 Thread Eric Covener
On Wed, Oct 20, 2010 at 8:05 AM, Paul Donaldson wrote: > For example, the mod_session page states: > > Creating a session is as simple as turning the session on, and deciding where > the session will be stored. In this example, the session will be stored on the > browser, in a cookie called sessio

Re: How do I get hold of session information?

2010-10-20 Thread Eric Covener
> It looks like mod_session has an API defined in > http://httpd.apache.org/docs/2.2/sections.html and used by > mod_auth_form -- I'd probably start there. whoops, wrong buffer: modules/session/mod_session.h -- Eric Covener cove...@gmail.com

Re: Re: compile a file written by C++ into apache

2010-11-30 Thread Eric Covener
n i compile it >> successfullly? > > new is a C++ keyword. Three solutions. > > 1. Rename the parameter in http_config.h to new_conf. Bad. > 2. At the top of your source file add "#define new new_". Bad. > 3. Make your module C only. Split off the C++ code into a separate file. Good. > I believe this was reported and fixed in trunk over the last month or so. -- Eric Covener cove...@gmail.com

Re: Overriding mod_rewrite from another module

2011-01-03 Thread Eric Covener
>> The access checking on mod_pagespeed resources is >> redundant, because the resource will either be served from cache (in which >> case it had to be authenticated to get into the cache in the first place) or >> will be decoded and the original resource(s) fetched from the same server >> with ful

Re: How to add referer header in external redirect?

2011-01-16 Thread Eric Covener
2011/1/16 Whut Jia : > Hi all, > I need some help with a redirecting/referrer issue. If I do a 303 redirect in > my module (by this way below: > apr_table_setn(r->headers_out,"Location","http://idp/login.html";); err_headers_out to be preserved when an errordoc is sent for non-2xx response.

Re: How to add a cookie header in response headers when do external redirect?

2011-01-17 Thread Eric Covener
t;Set-Cookie",r->uri); > return HTTP_SEE_OTHER; > But in client ,I cannot always find cookie header in response headers ,why   > ?How do I solve this?? > Thanks, r->err_headers_out? -- Eric Covener cove...@gmail.com

Re: mod_ruby on Apache for Windows 2.2.17

2011-02-11 Thread Eric Covener
On Fri, Feb 11, 2011 at 2:25 AM, Zeno Davatz wrote: > Hi > > I am trying to debug mod_ruby to load in Apache for Windows. So far > Apache for Windows does start with mod_ruby.so but it seems that httpd > does not start correctly with mod_ruby enabled in Apache for Windows. > > The steps I took to

Re: mod_ruby on Apache for Windows 2.2.17

2011-02-11 Thread Eric Covener
nd of ABI or tools problem not a problem with the module's src code. -- Eric Covener cove...@gmail.com

Re: mod_ruby on Apache for Windows 2.2.17

2011-02-11 Thread Eric Covener
> I can execute Ruby as a CGI-script without a problem with these simple > VirtualHost settings (I tested it with test.rbx) What does that have to do with debugging mod_ruby?

Re: mod_ruby on Apache for Windows 2.2.17

2011-02-11 Thread Eric Covener
> Apache on Linux does not do that? Our Apache on Linux with mod_ruby > sometimes has over 1'000 sessions and about 30-50 threads open. Memory > can go up to 10 GB. Normally Apache on unix uses multiple child processes. See your MPM and MPM configuration for details.

Re: Saving the original request URI ahead of a mod_rewrite

2011-03-12 Thread Eric Covener
> So I like #1 best.  Any other opinions or ideas? I solved a similar problem recently by using apr_pool_userdata_set on r->pool which you can still find after the internal redirects of rewrite in htaccess / with PT flag.

Re: Saving the original request URI ahead of a mod_rewrite

2011-03-12 Thread Eric Covener
On Sat, Mar 12, 2011 at 9:45 PM, Ben Noordhuis wrote: > On Sun, Mar 13, 2011 at 02:48, Eric Covener wrote: >>> So I like #1 best.  Any other opinions or ideas? >> >> I solved a similar problem recently by using apr_pool_userdata_set on >> r->pool which you

Re: Saving the original request URI ahead of a mod_rewrite

2011-03-13 Thread Eric Covener
On Sat, Mar 12, 2011 at 10:26 PM, Ben Noordhuis wrote: > On Sun, Mar 13, 2011 at 04:02, Eric Covener wrote: >> OP specifically mentions "internal redirect" and rewrite-in-htaccess. > > Hah, the moment I fired off that email I thought "oh wait, mod_rewrite &g

Re: How to parse jsp response in apache handler

2011-03-24 Thread Eric Covener
On Thu, Mar 24, 2011 at 11:02 AM, Whut  Jia wrote: > Hi, > all! I want to parse a jsp page in my handler.How can I do it?? > Please help me! In my handler, I do a request (http://www.xxx/xxx.jsp)with > libcurl,and then parse returned response ,and draw some infomation.Please ask > how to parse t

Re: APR Shared Memory Usage

2011-04-12 Thread Eric Covener
't see it in HTTP server because everyone inherits a reference to shared memory created in the parent process. Of course outside of this you don't always have such a relationship. Maybe the testshm* in apr/test/ would be a good resource? The APR tests are always easy to tinker with.

  1   2   >