o install two DSO's, not to link two pieces of object code into a
single DSO.
--
Eric Covener
[EMAIL PROTECTED]
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]
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.
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
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]
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]
need a mod_proxy_hook...
What information isn't retained? Something in apache? A request header?
--
Eric Covener
[EMAIL PROTECTED]
been work on this
issue.
--
Eric Covener
[EMAIL PROTECTED]
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]
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]
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]
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]
er promenadeImages get sent
> to my handler?
>
> Sam
>
Would that require one of the [PT] flag or a Directory container?
--
Eric Covener
[EMAIL PROTECTED]
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]
anywhere in the URL".
Have you tried Proxy containers? What hook does your module operate in?
--
Eric Covener
[EMAIL PROTECTED]
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]
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]
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]
all features",
especially one that quite clearly doesn't even include all the
modules.
--
Eric Covener
[EMAIL PROTECTED]
27;d probably have a much better time running a recent Fedora or
Centos during development.
--
Eric Covener
[EMAIL PROTECTED]
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]
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]
L string from your callback that runs when the
directive is encountered in the config file
--
Eric Covener
[EMAIL PROTECTED]
I would suggest implementing both the handler and the filter and
leaving them as independent as possible.
--
Eric Covener
cove...@gmail.com
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
'm not sure what Makefile you're starting with.
--
Eric Covener
cove...@gmail.com
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
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
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
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
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
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
d: input=''
pattern='.' => not-matched
--
Eric Covener
cove...@gmail.com
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
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
ries? Do
you call apr_match_glob elsewhere?
You might try building with --enable-maintainer-mode
--
Eric Covener
cove...@gmail.com
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
7;s not clear if that's what you
mean by a "session".
--
Eric Covener
cove...@gmail.com
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
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
; Thank you,
> Andrej
>
-X is the easiest to remember
http://httpd.apache.org/dev/debugging.html
--
Eric Covener
cove...@gmail.com
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
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
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
>> 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
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
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
uster forward the request.
Look at mod_proxy, mod_jk, mod_serf.
--
Eric Covener
cove...@gmail.com
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
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
a module. mod_rewrite already illustrates
this with the P flag.
--
Eric Covener
cove...@gmail.com
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.
>>>>
>>&
> 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
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
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
o_storage, etc..)??
Yes, although there are connection-related hooks that run in-between
the two things you mentioned.
--
Eric Covener
cove...@gmail.com
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
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
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
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
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
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
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
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
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
_pre_connection() is a RUN_ALL.
(not really pre_connection of course, that'd be some feat!)
--
Eric Covener
cove...@gmail.com
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
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
tions to the entire Apache server instance.
What does this get you over just setting MaxClients directly?
--
Eric Covener
cove...@gmail.com
he.org/docs/2.2/mod/mpm_common.html#listenbacklog
--
Eric Covener
cove...@gmail.com
e the comments in mid_dir's usage of ap_sub_req_lookup_uri()?
--
Eric Covener
cove...@gmail.com
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
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
hts
> or advices regarding this?
There is a windows flavor of apxs hosted over at mod_perl
--
Eric Covener
cove...@gmail.com
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
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
piece of software.
--
Eric Covener
cove...@gmail.com
d be cognizant of if I plan to go down
> that road mysely?
Just portability between SDKs.
--
Eric Covener
cove...@gmail.com
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
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
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
? 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
.
Could make it configurable but probably not a candidate for a change
in default (IMO)
--
Eric Covener
cove...@gmail.com
> 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
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
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
> 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
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
>> 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
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.
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
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
nd of ABI or
tools problem not a problem with the module's src code.
--
Eric Covener
cove...@gmail.com
> 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?
> 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.
> 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.
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
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
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
'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 - 100 of 154 matches
Mail list logo