proc_mutex can only be used to block on a cross process event. It can be
used in a threaded server, but cannot be held in multiple threads, you
might use it to block in a single thread queue per-process.
Thread_mutex will not block between processes, this is used for the
mutex-per-process logic s
On 6/26/2012 3:17 PM, oh...@cox.net wrote:
>
> Sorin Manolache wrote:
>> On 2012-06-26 19:56, oh...@cox.net wrote:
> You cannot wait until mod_ssl runs its fixups, you have to hook one of
> the hooks that execute earlier than webgate's check_user_id or
> auth_checker. (You have
On 12/2/2011 10:23 PM, KESTAR wrote:
Hi
I downloaded "apache_2.2.8-win32-x86-no_ssl" and installed apache http
server 2.2.8 in windows 32 bit env.
After modifying httpd.conf file I am not able to start apache server.
When I checked the syntax of httpd.conf file by issuing the command
httpd.ex
On 8/17/2011 1:23 PM, Jason Funk wrote:
> I find that if I use seteuid() to the uid of the user that my server is
> running as before creating the mutex and back to root afterwards, then it
> works. Is there anything wrong with this approach?
This only works if the target path is apache-user writ
On 7/15/2011 3:18 AM, Mark Thomas wrote:
> The https://modules.apache.org service went live on ASF hardware yesterday.
>
> Now notifications are going to a public mailing list, I need to tweak
> the mail output to since it currently includes full e-mail addresses.
> Until I get those tweaks comple
On 3/13/2011 6:44 PM, MK wrote:
> I hope it is okay to be asking questions about apxs here.
>
> In the makefile created by apxs, there is the following:
>
> # additional defines, includes and libraries
> #DEFS=-Dmy_define=my_value
>
> AFAICT, uncommenting this and using "DEFS" to add a define
On 9/22/2010 1:11 AM, Michael Sierks wrote:
>
> I would like to have mod_ssl retrieve certificate information from a database
> according to
> the request URI
That doesn't work, because you don't see a URI until the SSL session is
established,
including the server and client certificates.
On 6/1/2010 4:39 AM, Andrew Godziuk wrote:
>
> I'm wondering if it's possible for an Apache module to change global
> config structures.
If you don't do this during startup, beware. You are exploding memory by
taking what were copy-on-write shadow pages of the original parent process,
and mungin
On 4/18/2010 2:34 AM, alin vasile wrote:
> the monitor hook gets only a pointer to an apr_pool_t structure.
Take a look at apr_pool_data_* API's, that should provide you all of the
context and persistence you need.
You will never see anything about servers, connections or requests because
this is
On 3/26/2010 10:36 PM, Andrej van der Zee wrote:
> Hi,
>
> I want to override a library that is linked with an Apache module,
> i.e. I want to use my modified version of the MySQL client library for
> example for mod_php. I would like to do this without relinking or even
> modifying the mod_php li
On 3/8/2010 8:54 AM, Serj wrote:
>
> Will Apache compile successfully without this patch?
The patches are provided principally to produced symbolic .pdb's to
aid the developers in debugging. If you don't know what I'm saying,
it's unlikely you need these patches at all.
Patrick McManus wrote:
>
> Of course, the SL binary will not run on 10.5 - I get linker errors when
> apache loads it. That's expected (ok, I forgot it, but its normal) - and
> then I rebuilt the module with -mmacosx-version-min=10.5.
>
> The linker errors resolved themselves. Hurrah.
>
> Howeve
Александр Макаренко wrote:
> Hi, guys! I got such trouble and need some help or advice: using
> mod_alias directives AliasMatch or Alias... I thought about inserting
> environment variables like HTTP_HOST inside of these directives. I tried luck
> with %{some_var} or ${some_var} (like in mod
Andrej van der Zee wrote:
Hi,
I am looking for a way to find out if I need to set thread-based
mutexes in case of MPM worker.
ap_mpm_query
Saju Pillai wrote:
I can think of a *hack* to determine if the client has really gone away.
In your module you can possibly do
client = ap_filter_t->ctx->client_socket /* ap_filter_t is either the
input or output filter stack */
to get the apr client socket. You can try do a 0-byte read() on
Sam Carleton wrote:
> I am trying to use apr_strtok() for the first time. I am taking the
> add_cookie() function from mod_rewrite.c, no changes. I am passing in
> the string, variable 's':
>
> KioskViewingStation:KVS_VERSION::5
>
> The first line that executes in the function is:
>
> char
Sam Carleton wrote:
>
> I am a small one man ISV. My software has different versions which
> have different features. I want to hide the fact that I am setting a
> handler and authtype in the http.conf so my customer cannot hack the
> module into providing features in which they did not purchase
Sam Carleton wrote:
> Under some circumstances, the value read into my directive will be
> invalid and thus Apache should NOT continue to execute. What do I
> need to do to tell Apache to stop executing?
A cmd handler returns a string pointer with the error message when
it wants to fail. You mig
Sam Carleton wrote:
> Anyone know if it is possible to get the core_module config block
> (core_server_config) by calling ap_find_linked_module()? If so, what
> string do you pass it?
No that's not the mechanism. See any number of httpd's shipped modules
for how they recover the core config.
Sam Carleton wrote:
> Is there any way to *hide* configuration? I would like to set a
> handler within a configuration directive. Can it be done?
Perhaps you can explain what you are asking?
> I have posted a number of questions along these lines and never get a
> response, is this because folk
Sam Carleton wrote:
> The problem was/is the lack of a extern "C" around the ap_provider.h
> file. I put one in my mod_auth_basic.cpp and all is well. I am
> wondering if it is possible to have it added to ap_provider.h itself.
> Anyone know how I would go about getting that done?
Direct these s
Sorin Manolache wrote:
>
>> They expect their initialization to occur when there is nothing but a parent
>> process present.
>
> True, but if you send SIGUSR1 to the parent apache process, the
> children will exit gracefully and the parent will remain alone. Then,
> it will unload the DSOs (the m
Andrej van der Zee wrote:
> Hi,
>
> I was wondering if it is possible to load modules at run-time, without
> restarting httpd?
No.
They expect their initialization to occur when there is nothing but a parent
process present.
Andrej van der Zee wrote:
>
> I was wondering what the purpose is of the macros
> APR_DECLARE_OPTIONAL_FN and APR_RETRIEVE_OPTIONAL_FN. For example, in
> mod_authn_dbd APR_RETRIEVE_OPTIONAL_FN is used to get a hold on the
> functions ap_dbd_acquire and ap_dbd_prepare declared in in mod_dbd
> with
Kevac Marko wrote:
What can i possibly do and what i should do to bring some attention to
opened bug?
Posting to the dev list is a good thing. modules-dev is not the dev list,
this list is for discussion of third party module development. A number
of the core developers follow this list, but
John Hosie wrote:
Planned deployment platform is Red Hat Enterprise 5 Advanced.
Fedora 8 here, just trying a few wildcard searches;
$ yum list apache\*
Available Packages
apachetop.i386 0.12.6-3.fc8 fedora
$ yum list httpd\*
Installed Packages
httpd.i386
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?
Just based on your sig, I'd guess perhaps you are deploying on Windows?
If that's the case, 1.3 was never truly "re
Tim Bray wrote:
Creating a build system for your module will be challenging and irritating.
No doubt :)
Obviously, a one-.c-file project isn't so hard using apxs. Anything more
sophisticated gets messy.
I'd encourage you to take a peek at the work Guenter and I had done at
http://svn.apa
Usually, rpm's are divided into base and -devel, that -devel package is
generally your headers, libs and any build support files.
$ yum list httpd\*
Installed Packages
httpd.i386 2.2.9-1.fc8installed
httpd-devel.i386 2.2.9-1.fc8
César Leonardo Blum Silveira wrote:
Ok, now I got into some doubts. What I'm doing is registering a
cleanup for the pool which is passed as the first argument to my post
config hook. Is that the parent's or the child's pool?
As mentioned, this (config pool) cleanup should be run once all reque
César Leonardo Blum Silveira wrote:
On Tue, Apr 29, 2008 at 1:18 PM, William A. Rowe, Jr.
<[EMAIL PROTECTED]> wrote:
César Leonardo Blum Silveira wrote:
Hello,
The application we develop at the company where I work is presenting
some problems in Windows Server 2008. Basically, the ppli
César Leonardo Blum Silveira wrote:
Hello,
The application we develop at the company where I work is presenting
some problems in Windows Server 2008. Basically, the pplication
consists of a bunch of Apache modules that serves our purposes. For
what we have observed so far, pool cleanups reigster
Manfred Rebentisch wrote:
Hello,
I would be glad, if somebody can tell me, how I can distinguish between
restart and reload in a module inside hooks ap_hook_post_config,
ap_hook_pre_config and create server config.
ap_mpm_query... it will tell you on the restart that the server is now
in its
Sam Carleton wrote:
On Sun, Mar 23, 2008 at 8:24 PM, Joe Lewis <[EMAIL PROTECTED]> wrote:
What I found is that there is an apr_time_ansi_put converts a time_t to
an apr_time_t, but the only thing that may convert the apr_time_t into
the number of seconds since Jan 1st 1970 is apr_time_sec(ap
Sam Carleton wrote:
I have spent my development career in Windows using both DevStudio and
Visual Studio. One of the reasons I am going to be using Apache C
Modules and Axis2/C is to be cross platform. Does anyone have any
recommendations on a good cross platform development environments that
h
Ed Powell wrote:
Problem is, I have no idea how to use this. I suppose its more of a
problem of not knowing how to use pools for storing my own information.
I could allocate sizeof(FILE) to the pchild pool, and I'll get a pointer
back, and store the file descriptor in there. Great... now h
Tim Bray wrote:
On Jan 9, 2008, at 5:16 PM, William A. Rowe, Jr. wrote:
Hi... I'm back to work on mod_atom and chasing a weird bug around.
Anyhow I totally can't figure out what some apr code is doing so I
wanted to step into it with the debugger. This sounds lame, but I
can
Erik Lotspeich wrote:
Hi William,
Thanks for your response.
Your *loadable* module doesn't survive to the end of the proc pool
because it's codepages were already unloaded. Be careful.
So is there a way for a dynamically-loadable module to do any teardown
when Apache quits? It seems that
Tim Bray wrote:
Hi... I'm back to work on mod_atom and chasing a weird bug around.
Anyhow I totally can't figure out what some apr code is doing so I
wanted to step into it with the debugger. This sounds lame, but I can't
figure out how to build an httpd that has APR linked with debug
inform
Erik Lotspeich wrote:
I continued some testing and it seems that the pool cleanup mechanism does not
work.
Of course, it does.
Here's my cleanup register call:
apr_pool_cleanup_register(s->process->pool, mydata, proc_cleanup,
apr_pool_cleanup_null
Sam Carleton wrote:
On 11/26/07, ed <[EMAIL PROTECTED]> wrote:
Generally speaking, if you're using apr routines then they should
handle the memory resources for you, there should be little need for
allocating on the heap.
However - you do have to be very careful of your pool scope. A single
John Zhang wrote:
Anything specif I have to do to make the functions to
be called (so the config parameters are read).
Is your cmd array listed in your module data section?
Farokh Irani wrote:
> apxs -i -n mod_fancy mod_fancy.o config.o
You don't -i'nstall a .o file. It's not a loadable module.
Loadable modules are the .so (.sl/.dll/.dylib) already-linked object files.
Mike wrote:
> On Sat, Jul 21, 2007 at 06:32:09PM -0500, William A. Rowe, Jr. wrote:
>> You probably didn't ensure that the apache2 module structure to be declared
>> in a C namespace as an export. My mod_aspdotnet is one such example,
> He did. It's already declared as
Farokh Irani wrote:
>> On Wed, 2007-07-18 at 07:23 -0400, Farokh Irani wrote:
>>
>>> See any operating system documentation about shared libraries for
>>> more information, such as the ld(1) and ld.so(8) manual pages.
>>> --
>>>
Mike wrote:
> On 7/20/07, Farokh Irani <[EMAIL PROTECTED]> wrote:
>> >So you mean a change from *.cpp to *.c is the only real working
>> >solution? That's strange but anyway it works now...
>> That is how it appears to be. Unfortunately, it's not a good solution
>> because I really don't want to ha
Or, you can inject your own custom BIO layer. This is quite tricky
to do (correctly), which is why most content filters are written for
Apache 2.0 or later.
Bill
Taisuke Yamada wrote:
> IIRC, you can do it by pointing
>
> r->connection->client->fd
> r->connection->client->fd_in
>
> to filt
David Wortham wrote:
> I have (hopefully) a quick question:
> Does anyone know how to compile modules for Windows platforms?
Several alternatives... one nice one for apxs is the work of the modperl
folks... try
http://archive.apache.org/dist/perl/win32-bin/apxs_win32-0.3.tar.gz
documented at
ht
Arturo 'Buanzo' Busleiman wrote:
> William A. Rowe, Jr. wrote:
>>> Of course, it's necessary for you to submit the code to [EMAIL PROTECTED]
>
> Yes, of course! I will not submit an incomplete project :P but thanks for
> the great on-list info! :D
You are
Arturo 'Buanzo' Busleiman wrote:
> William A. Rowe, Jr. wrote:
>>> The ASF only considers contributions of modules which the author has
>>> provided under the AL, and if you hope for redistributors such as RedHat,
>>> Novell etc to pick up your module, s
César Leonardo Blum Silveira wrote:
> Hello,
>
> Can a module be licensed under the MIT license? Can a module be
> proprietary?
Read the Apache License; it provides no restrictions on the combination
of AL code with other code.
The ASF only considers contributions of modules which the author has
Ben Noordhuis wrote:
> On 5/30/07, Souramita Sen <[EMAIL PROTECTED]> wrote:
>> When you say the server forcibly closes the socket, do you mean it closes
>> before sending whole html page. And then the client again connects to the
>> server again and again to get rest of the bytes of text/html page.
Tim Bray wrote:
> Gosh, this looks convenient. Suppose someone malicious POSTS a
> jabber-style endless pipe? Or suppose that as a matter of policy I
> simply don't want to accept something bigger than X, for some value of
> X. Are there any throttles or memory caps or whatever?
>
> I'm kind o
Anique van der Vlugt wrote:
> I should have had my morning coffee before submitting this *wink*
>
> David Wortham wrote:
>> Anique,
>> I'm a little confused by your question.
>>
>> AFAIK, HTTP headers end in a newline which seperates them from the next
>> line of the header. You don't _have_ t
Tim Bray wrote:
> On May 16, 2007, at 11:27 AM, William A. Rowe, Jr. wrote:
>
>> You can count on expat 1.95-ish generation (possibly 2.00) to be built
>> with httpd.
>
> Um... the expat 1.95 that's in the current source doesn't seem to have
> any "gener
Tim Bray wrote:
> I want to generate some fairly large amounts of XML programmatically
> inside my module. Poking around apr_xml.h and util_xml.h doesn't turn
> up a lot of support for this. Am I looking in the wrong place?
> Obviously, with qpr_xml_quote_string and apr_rprintf I can do it by
>
Mark Zetts wrote:
> Yes. All the examples were helpful.
>
> What I meant to ask was, if I flatten a brigade (apr_brigade_pflatten)
> of 5 buckets, 4K bytes each, can I then call apr_bucket_pool_create()
> passing in the whole buffer or do I need to chunk the buffered data?
httpd handles a
Graham Dumpleton wrote:
> Simplest means of setting information for a specific request which can
> then be seen by a handler implemented in a different module is by
> setting values in the 'notes' table of the request object.
>
> For something more elaborate, you may need to look at using optional
Spend some time in mod_example - each phase is invoked in order - if you
waited until the handler phase, the server would do MUCH more work than
it really needs to do.
Zeus Capricorn wrote:
> Hi,folks.
>i am new here .
>
>When i read the mod_file_cache.c in the apache source code,i found
Issac Goldstand wrote:
> Do yourself a favor, and use VC6. Honestly, I've used 2003 also without
> problems here, but 2005 gives headaches (though hopefully one of the
> fixes to the bleeding edge apxs on win32 fixes that).
The *only* issue I have against 2003 is the fact that you cannot create
.
Sam Carleton wrote:
> I know that as of VS200? (2 or 3) that Microsoft started this whole
> manifest thing. It is also my understanding that, for C/C++ apps, it
> can be turned off. What exactly is the issue? Considering it seems
> most of you are *NIX developers, maybe this is something I can d
Sam Carleton wrote:
> Ok,
>
> I have apxs installed!!
>
> I have created a basic project called fancy_image_handler, when I
> follow the instructions in the comment of the
> mod_fancy_image_handler.c, here is what I am getting:
>
> D:\Temp\fancy_image_handler>apxs -c -i mod_fancy_ima
William A. Rowe, Jr. wrote:
> 3. You can always build from a project as well. Simple examples can be
>found in the httpd sources, such as mod_example.dsp. Building out-of
>the httpd tree, you'll have to point your project at the includes for
>httpd and apr (
1. If your module will ONLY ever be a handler that runs on windows,
ISAPI (mod_isapi) might be a better choice. Certainly better than
fastcgi for windows-specific apps. (FastCGI is fast because of fork()
which windows doesn't support).
2. If you want a windows module, and want to build
It would probably merit extending apr_filepath_merge's API to add a
resolve symlinks flag (NT junctions, etc) in a platform agnostic way.
Bill
Dr. Peter Poeml wrote:
> On Thu, Mar 08, 2007 at 10:53:05AM +0100, Dr. Peter Poeml wrote:
>> Hello,
>>
>> is there a function in apache or apr to canonica
David Wortham wrote:
> Sorry for the last mailing list post - my email client sent the message
> prematurely.
>
> I have two questions:
> (1) Has been able to get 'ap_run_sub_req(...)' to execute a sub_request
> without dumping the results straight to the (super|parent)request's output?
> I am usi
Joachim Zobel wrote:
> Am Montag, den 05.03.2007, 17:23 + schrieb Nick Kew:
>> On Mon, 05 Mar 2007 07:55:06 +0100
>> Joachim Zobel <[EMAIL PROTECTED]> wrote:
>>
>>> I can however provide my own memmory allocation functions to libxml2,
>>> so if I can identify apache memory, I can work around th
Andras D wrote:
> Strangely, there is no error noted in the error.log or the
> connection/activity logs.
That is odd. LogLevel says (?) You probably wan to drop it to
LogLevel Info or so for a while.
Certain that windows firewall didn't kick in? If you access the
browser on the machine itself
Brian McQueen wrote:
> I was at a conference for startups last week, and it would have been
> very useful to have someone there representing Apache. It is going to
> drop from the minds of its target audience if its utility is not made
> obvious again and again, obvious and up-to-date. There was
David Wortham wrote:
> On 10/10/06, William A. Rowe, Jr. <[EMAIL PROTECTED]> wrote:
>> You are responsible for mutexing; and remember unless you alloc before
>> fork and never modify the data, it's per-process private.
>
> Is this to say that using a subpool of
Brian McQueen wrote:
> Here is how I'm initializing the table - here with a root pool:
>
> ASSERT(apr_pool_create(&server_config_p->stats_pool, NULL) == APR_SUCCESS);
FYI - the config pool is *nonvolatile* - your approach blows up on threaded
MPM's and further it's just bad practice.
The pool y
Following a vote on dev@httpd.apache.org, and with input from the project
participants on the [EMAIL PROTECTED] Authors' discussion list,
the httpd project is pleased to announce the creation of a new modules-dev
list at httpd.apache.org. Current subscribers to the apache-modules list
will not be
72 matches
Mail list logo