pieces of object code into a
single DSO.
--
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.
--
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 and left to be resolved by the runtime loader
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]
information isn't retained? Something in apache? A request header?
--
Eric Covener
[EMAIL PROTECTED]
(subprocess_env)
or a note, you can just use an additional LogFormat/CustomLog to
collect the data.
--
Eric Covener
[EMAIL PROTECTED]
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]
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]
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]
of the [PT] flag or a Directory container?
--
Eric Covener
[EMAIL PROTECTED]
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]
.
Have you tried Proxy containers? What hook does your module operate in?
--
Eric Covener
[EMAIL PROTECTED]
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]
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]
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]
clearly doesn't even include all the
modules.
--
Eric Covener
[EMAIL PROTECTED]
better time running a recent Fedora or
Centos during development.
--
Eric Covener
[EMAIL PROTECTED]
, 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]
an expired password --
could you make a case to IBM for the behavior you ultimately want?
--
Eric Covener
[EMAIL PROTECTED]
that runs when the
directive is encountered in the config file
--
Eric Covener
[EMAIL PROTECTED]
suggest implementing both the handler and the filter and
leaving them as independent as possible.
--
Eric Covener
cove...@gmail.com
with.
--
Eric Covener
cove...@gmail.com
?
(or ServerName if it's the only Listen)
--
Eric Covener
cove...@gmail.com
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
shi...@sonimtech.com wrote:
SetHandler foo_handler
My 2.2.x apxs -g module says: if (strcmp(r-handler, foo)) {
--
Eric Covener
cove...@gmail.com
, 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
:
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
='.' = 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
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
elsewhere?
You might try building with --enable-maintainer-mode
--
Eric Covener
cove...@gmail.com
the request_rec.
--
Eric Covener
cove...@gmail.com
you,
Andrej
-X is the easiest to remember
http://httpd.apache.org/dev/debugging.html
--
Eric Covener
cove...@gmail.com
-parsed.
--
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
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 the heap
library each time.
--
Eric
the request.
Look at mod_proxy, mod_jk, mod_serf.
--
Eric Covener
cove...@gmail.com
already illustrates
this with the P flag.
--
Eric Covener
cove...@gmail.com
On Mon, Jul 13, 2009 at 10:33 AM, ricardo13ricardoogra...@gmail.com wrote:
Eric Covener wrote:
On Mon, Jul 13, 2009 at 10:06 AM, ricardo13ricardoogra...@gmail.com
wrote:
It's difficult. I'd suggest finding a way to use existing modules.
Use or modify, that is.
Can my module to use
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, ricardo13ricardoogra...@gmail.com 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 Evanstevans...@googlemail.com 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 format doesn't agree with # of arguments, right?
--
Eric
, etc..)??
Yes, although there are connection-related hooks that run in-between
the two things you mentioned.
--
Eric Covener
cove...@gmail.com
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
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, ricardo13ricardoogra...@gmail.com wrote:
HI,
How do I collect these informations in my module ?
Same way mod_status does?
--
Eric Covener
cove...@gmail.com
.
ap_hook_pre_connection() is a RUN_ALL.
(not really pre_connection of course, that'd be some feat!)
--
Eric Covener
cove...@gmail.com
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=revrevision=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
to the entire Apache server instance.
What does this get you over just setting MaxClients directly?
--
Eric Covener
cove...@gmail.com
#listenbacklog
--
Eric Covener
cove...@gmail.com
?
--
Eric Covener
cove...@gmail.com
directly.
--
Eric Covener
cove...@gmail.com
regarding this?
There is a windows flavor of apxs hosted over at mod_perl
--
Eric Covener
cove...@gmail.com
demonstrate
using the the traditional authz providers.
--
Eric Covener
cove...@gmail.com
of software.
--
Eric Covener
cove...@gmail.com
be cognizant of if I plan to go down
that road mysely?
Just portability between SDKs.
--
Eric Covener
cove...@gmail.com
?
--
Eric Covener
cove...@gmail.com
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
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
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
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 full
;
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 zdav...@gmail.com 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 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 10:26 PM, Ben Noordhuis i...@bnoordhuis.nl wrote:
On Sun, Mar 13, 2011 at 04:02, Eric Covener cove...@gmail.com wrote:
OP specifically mentions internal redirect and rewrite-in-htaccess.
Hah, the moment I fired off that email I thought oh wait, mod_rewrite
*does* do
On Thu, Mar 24, 2011 at 11:02 AM, Whut Jia whut_...@163.com 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
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.
--
Eric Covener
cove
This encourages all site owners to add Vary:User-Agent to all css and js
files, whether they actually vary in content or not.
Does anyone know the history of this recommendation? Surely that is an
inappropriate recommendation for mod_deflate. Vary:Accept-Encoding make
sense in the context
On Thu, Jun 16, 2011 at 10:57 AM, Henrik Strand henrik.str...@axis.com wrote:
Hi Ben,
I've tried that but with no success. The problem (i.e., that the
connection is closed) still remains.
Check out mod_proxy_fdpass in trunk, which replaces the socket httpd
is using and lets the external
On Thu, Jul 7, 2011 at 5:18 PM, Ben Noordhuis i...@bnoordhuis.nl wrote:
On Thu, Jul 7, 2011 at 02:56, Jodi Bosa jodib...@gmail.com wrote:
I would like to leverage mod_proxy and mod_proxy_http to proxy client
requests (from another protocol).
Assuming I have input output filters that handle
But what if a process exists in a faulty way. Perhaps some PHP code
that exists abnormally?
If the process exits, you've got no worries about memory. If a thread
hangs [indefinitely], before you can free memory, the memory is
probably the least of your problems.
When I checked the syntax of httpd.conf file by issuing the command
httpd.exe –t it says Cannot load mod_uio.so into server. The specified
module could not be found.
Please reply which dll/package is required to download in windows env.
Ask the vendor of mod_uio.so, not a list about
i'm enabling my module with a Location directive:
Location /data
SetHandler kcache
/Location
and i want to control the execution of the module with an initial check:
if (!r-handler || strcmp(r-handler, kcache)) return (DECLINED);
but r-handler is null if the hook is called
It's possible this is because a burst of requests causes Apache to spin up
child processes to handle them, but perhaps the load-test generation slows
down at some point, Apache winds up with idle processes, and closes some
down? Is that plausible?
and I'll try again.
You might look at how mod_rewrite uses ap_expr_* (from
include/ap_expr.h) in trunk or 2.4.
--
Eric Covener
cove...@gmail.com
On Wed, Mar 6, 2013 at 4:21 PM, Nce Rt nce...@yahoo.com wrote:
A custom handler which is registered to run APR_HOOK_FIRST has these fields
null when processing http request:
r-content_type, r-parsed_uri.scheme
r-content_type is not related to any request header -- it's the
response
On Wed, Mar 6, 2013 at 6:34 PM, Nce Rt nce...@yahoo.com wrote:
It's request_rec which represents http Request not Response. look into this
data structure for the content-type field.
That's not how the field is used. If you want to read a Content-Type
request header, read it from r-headers_in.
On Mon, Mar 11, 2013 at 6:07 PM, Nce Rt nce...@yahoo.com wrote:
Is there a GUI tool available to configure and control httpd server? Like
editing httpd.conf files, restart server, enable/disable modules, etc from UI.
There are some unpopular ones, and more web control panel hosting
On Wed, Mar 13, 2013 at 6:16 AM, Eric Covener cove...@gmail.com wrote:
On Wed, Mar 13, 2013 at 6:01 AM, Hoang Vu Dang dang@gmail.com wrote:
Hi guys,
Is there any limit of the size of a message log entry? How to control this ?
I did this:
ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, f-r
On Sat, May 4, 2013 at 1:38 AM, Sindhi Sindhi sindhi@gmail.com wrote:
Hi,
I get ap_filter_t* filterChain as an input parameter to my Apache C++
module. I can see that I can get the cookies and user agent from the below
calls.
request_rec *currRequest = filterChain-r;
const char*
On Thu, May 23, 2013 at 10:39 AM, Sean Beck seanmckayb...@gmail.com wrote:
OK thank you! I ask because my boss wants me to log the config file info on
start-up of the server but I have been completely unable to find a way to
do so, hence why I came to the mailing lists for help. Thanks for the
apache2-threaded-dev
or apache2-prefork-dev? Or doesn't it matter?
Should not matter. You probably care about APR_HAS_THREADS which is
more of a platform thing and won't change if someone ships different
httpd MPMS.
--
Eric Covener
cove...@gmail.com
On Sep 24, 2013 5:40 AM, Christoph Gröver gro...@sitepark.com wrote:
Hello list, Hello Sorin,
I tested several different Apaches (2.4.x and 2.2.x) and they never did
the wanted or expected.
If I configure more than one VHost only the first one is returned by
the server-server_hostname
On Sat, Dec 21, 2013 at 10:09 PM, farid ridho faridri...@gmail.com wrote:
I'm going to make simple web application firewall like modsecurity. I want
to write apache module in C for filtering a web attack like SQL injection.
I put my web on http://localhost/vulweb my question is, when iam
On Tue, Dec 31, 2013 at 3:52 AM, ksakhare kiran.sakh...@gmail.com wrote:
Hi All
I am building apache module, which maintains the connection pool with
back-end server. As in prefork mode only one connection pool is created as
their is only one worker process exist.
Now I need to port this
On Wed, Jan 1, 2014 at 7:45 AM, ksakhare kiran.sakh...@gmail.com wrote:
Hi All
Thanks for the replies. I appriciate the replies but the problem i am
currently facing is when i initialize the connection pool in worker 1
(httpd.exe child process), next request may spawn another worker
to the client produced by my module will be compressed by
mod_deflate if the client accepts the compression with Accept-Encoding: gzip
?
If my response is already gzipped , can I prevent mod_deflate to work ?
Do you have any reference/link about this ?
Thanks
Pierre
--
Eric Covener
cove
the loaded modules will run in for
various phases. A debugger can also tell you when it changes.
--
Eric Covener
cove...@gmail.com
On Tue, Nov 4, 2014 at 8:05 AM, Rajalakshmi Iyer r...@blismedia.com wrote:
I need some assistance with tuning Apache with event MPM.
This looks more appropriate for users@, which also has a wider audience.
shares a connection between threads.
--
Eric Covener
cove...@gmail.com
authz_dbd_run_client_login(),
but I can't find where this function is defined:
httpd-2.4.12# grep -r authz_dbd_run_client_login .
returns no results other than modules/aaa/mod_authz_dbd.c. Does anyone
know where this function may be defined?
Thanks,
Mark
--
Eric Covener
cove
On Mon, Jul 13, 2015 at 9:42 AM, Mark Taylor mtt...@gmail.com wrote:
I am uncertain if LoadModule directive can be used to load
arbitary .so, but if so that could be an option.
LoadFile is the alternative for that.
On Wed, Oct 21, 2015 at 9:45 AM, Justin Kennedy wrote:
> Any ideas?
Maybe you also happen to use your first core directive when you add
your own to httpd.conf, and this causes the cores merge function to be
run.
On Fri, Nov 6, 2015 at 11:18 AM, Julien FROMENT
wrote:
> Does the number of bytes sent written by the log take into account the fact
> that a browser could cancel the request halfway through?
The data added by mod_logio does take that into account. It's not 100%
1 - 100 of 119 matches
Mail list logo