Hi Eugene,
this should work...
We need more of your code and/or logging to figure out what's going on.
Maybe could you also log r and r-notes (with format %pp) to see if
the two modules really share the same request?
Regards,
Yann.
On Sat, May 9, 2015 at 6:40 PM, Eugene Teslenko
I don't know much about mod_fastcgi (third-party module), but it seems
that it uses ap_internal_redirect[_handler]().
This creates a new (redirect) request which is linked with the
original one through the r-next (= newr) and newr-prev (= r).
Unlike sub-requests, internal redirects are fully
mod_a handler function returns declined both times it's being called.
Here is the source of mod's
= mod_a.c =
module AP_MODULE_DECLARE_DATA mod_a;
static int handler(request_rec *r) {
// if (strcmp(r-handler, fastcgi-script)) return DECLINED;
apr_table_set(r-notes, test-var,
Thanks for your replies!
After adding pointers to log and disabling handler check inside mod_a, I've
noted the problem.
Error log has three lines for single http-request now:
mod_a[49059]: test-var=test-string, r_pp=8450610a0, notes_pp=8450621a8,
handler=application/x-httpd-php56
What does mod_a handler return?
How do you register it (ap_hook_handler() line)?
On Sun, May 10, 2015 at 3:59 PM, Eugene Teslenko
eugene.tesle...@gmail.com wrote:
Thanks for your replies!
After adding pointers to log and disabling handler check inside mod_a, I've
noted the problem.
Error log
It may be any handler module. FastCGI is just for example.
In apache's config it's just Action + SetHandler options.
Thank you very much for your replies and suggestions, it was really an
internal redirect and could get an original request rec through r-prev.
2015-05-10 21:30 GMT+03:00 Yann
to the
passerand APR_HOOK_LAST is given to the recipient,
you can receive this in the same way using an apr_table_get/2
Date: Sat, 9 May 2015 19:40:54 +0300
Subject: Share data between apache modules
From: eugene.tesle...@gmail.com
To: modules-dev@httpd.apache.org
Hi!
I'm trying to pass data from
Hi!
I'm trying to pass data from one module to another within a single request.
But after the first module writes data into r-notes table, the second one
reads only (null) from it.
Example.
mod_a (in the handler function):
apr_table_setn(r-notes, test-var, test-string);
ap_log_rerror(APLOG_MARK,
Hi. I am using mcrypt which is recognized by apxs when I compile my module.
However when I visit my website the HTTP Get requests are logged due to the
lines of my code that include mcrypt.
Any suggestion about my mistake here!
Miguel Antonio
Hi, where can I find the C source codes of Apache and headers.
I have been trying to finde them in the Apache website but I have not been able
to find them. I found them in other pages, but I have doubts about if they are
the original (without users' changes).
Please let me know.
Miguel Antonio
Source releases: http://httpd.apache.org/download.cgi#apache24
How to access via SCM: http://httpd.apache.org/dev/devnotes.html
On Fri, Apr 4, 2014 at 1:02 PM, Miguel Villarreal
miguel_villarrea...@hotmail.com wrote:
Hi, where can I find the C source codes of Apache and headers.
I have been
On Fri, Apr 4, 2014 at 1:07 PM, Eric Covener cove...@gmail.com wrote:
Source releases: http://httpd.apache.org/download.cgi#apache24
How to access via SCM: http://httpd.apache.org/dev/devnotes.html
On Fri, Apr 4, 2014 at 1:02 PM, Miguel Villarreal
miguel_villarrea...@hotmail.com wrote:
Hi,
modules apart from
Nick Kew's The Apache Modules book (I am using that one).
You guys are doing a great job, but please answer my few questions,
I would really appreciate it.
Thanks
Abhinav
modules apart from
Nick Kew's The Apache Modules book (I am using that one).
You guys are doing a great job, but please answer my few questions,
I would really appreciate it.
Thanks
Abhinav
On Sun, Jun 27, 2010 at 4:17 AM, Abhinav Upadhyay abhi...@hover.in wrote:
Hello everyone!
I am on an internship, and have developed an Apache 2 module as my project,
that
is to be used by our customers.
Now, we are at the point of distribution of our module, my boss says that
expecting the
Hello everyone!
I am on an internship, and have developed an Apache 2 module as my project, that
is to be used by our customers.
Now, we are at the point of distribution of our module, my boss says that
expecting the users to compile the module from source is not very practical,
although that is
This may be a level problem. Are you thinking of throwing
an error if it's unset, or simply disabling the module for that
VirtualHost, directory, etc.? Pretty much any module must do
a check with each request to see if it should handle the request -
for example the module may be wanted in
parameters for Apache modules
This may be a level problem. Are you thinking of throwing
an error if it's unset, or simply disabling the module for that
VirtualHost, directory, etc.? Pretty much any module must do
a check with each request to see if it should handle the request
Hello,
The Apache web server on start up iterates through the list of
configuration directives and invokes the associated module handler for
each directive.
For e.g. if module A has handlers for directives D1 and D2, then the
httpd process on start up will invoke the handlers within
Hello,
The Apache web server on start up iterates through the list of
configuration directives and invokes the associated module handler for
each directive.
For e.g. if module A has handlers for directives D1 and D2, then the
httpd process on start up will invoke the handlers within
Raj Iyer wrote:
The Apache web server on start up iterates through the list of
configuration directives and invokes the associated module handler for
each directive.
For e.g. if module A has handlers for directives D1 and D2, then the
httpd process on start up will invoke the handlers
parameters for Apache modules
Hello,
The Apache web server on start up iterates through the list of
configuration directives and invokes the associated module handler for each
directive.
For e.g. if module A has handlers
...@nyc.rr.com]
Sent: Wednesday, April 22, 2009 7:46 PM
To: modules-dev@httpd.apache.org
Subject: RE: Location of Apache Modules
I don't think a checking to see if the logged in user name is different from
the credentials user is that much additional overhead.
M*
-Original Message-
From
on this thinking that it was going to be a quick fix.
Michele
-Original Message-
From: Eric Covener [mailto:cove...@gmail.com]
Sent: Tuesday, April 21, 2009 2:00 PM
To: modules-dev@httpd.apache.org
Subject: Re: Location of Apache Modules
On Tue, Apr 21, 2009 at 12:51 PM, Michele Waldman
: Michele Waldman [mailto:mmwald...@nyc.rr.com]
Sent: Wednesday, April 22, 2009 1:37 PM
To: modules-dev@httpd.apache.org
Subject: RE: Location of Apache Modules
I'm looking in modules/http/http_request.c.
Is this even in the right ballpark?
I'm hoping there's one if statement this call is failing
Subject: RE: Location of Apache Modules
Folks I've talked to just don't try to get htaccess to work with ajax
for the most part. They rely on php security.
That's probably because on the backend, they still need to handle
authorization. Unless all users to your backend should have equal access
I ran a find for functions like ap_hook_auth_checker, ap_run_type_checker
and a few other functions.
I could not find the function definitions. All I could find was a
reference to them in server/export.c.
Does anyone know where all of the functions are?
It's difficult to trace through the
Did your browser send digest credentials on the ajax request? You can
log %{Authorization}i in the access log to quickly tell.
Yes. The browser is sending the creditials. I did check this. That's what
was hanging me up.
If credentials were sent, can mod_log_config log a %u or were they
Hi all,
Is it possible to use multithreading in apache modules written in C? As I
searched, apr_thread_proc provides process thread management functions. Does
it come as part of Apache 2.2?
Thanks,
Pooja
* Meet us at Hall 2/Booth 2C111 at the Mobile World
On Fri, Feb 13, 2009 at 11:33, Pooja Maheshwari
pooja.maheshw...@impetus.co.in wrote:
Hi all,
Is it possible to use multithreading in apache modules written in C?
Yes.
As I searched, apr_thread_proc provides process thread management
functions. Does it come as part of Apache 2.2?
Yes
Multithreading in apache modules
On Fri, Feb 13, 2009 at 11:33, Pooja Maheshwari
pooja.maheshw...@impetus.co.in wrote:
Hi all,
Is it possible to use multithreading in apache modules written in C?
Yes.
As I searched, apr_thread_proc provides process thread management
functions. Does
John Zhang wrote:
--- Ray Morris [EMAIL PROTECTED] wrote:
I am using the apr_* functions to allocate
memory (most of the time from the request-pool).
If there are few places where you allocate from
othr than the reqquest pool, I'd look at those
first.
I used the
--- Joe Lewis [EMAIL PROTECTED] wrote:
Your buckets can still be created using the
request-pool . My created
buckets in my output filter are done that way. Have
you tried it? You
still use the request-connection-bucket_alloc for
the other parameter,
but the request-pool for the memory
--- Ray Morris [EMAIL PROTECTED] wrote:
I am using the apr_* functions to allocate
memory (most of the time from the request-pool).
If there are few places where you allocate from
othr than the reqquest pool, I'd look at those
first.
I used the bucket/brigade for my data that
On Dec 14, 2007 6:05 PM, John Zhang [EMAIL PROTECTED] wrote:
When my module processes requests, I see a consistent
memory increase. It is like the memories were never
released. I am using the apr_* functions to allocate
memory (most of the time from the request-pool). My
understanding is
--- Eric Covener [EMAIL PROTECTED] wrote:
It should level out as each thread in the process
has had a chance to
run 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.
I am using the apr_* functions to allocate
memory (most of the time from the request-pool).
If there are few places where you allocate from
othr than the reqquest pool, I'd look at those first.
--
Ray B. Morris
[EMAIL PROTECTED]
Strongbox - The next generation in site security:
builds the page replacing the
variables in the template with the values I set in the PHP.
The more I think about it, the more this sounds like what folks are
doing with input and output filter in Apache modules. I am starting
to think that it is possible to develop a whole solution solely
builtin apache
modules?
Apache code though never call the setlocale function so I think typically
apache runs in system's default locale.
Regards,
Basant.
Hey,
On Mar 21, 2006, at 7:28 AM, William wrote:
What is the url address to the apache-modules list. Thanks
http://modules.apache.org/
No problemo.
S.
smime.p7s
Description: S/MIME cryptographic signature
What is the url address to the apache-modules list. Thanks
[EMAIL PROTECTED] wrote:
Author: stas
Date: Wed Nov 2 12:44:13 2005
New Revision: 330356
URL: http://svn.apache.org/viewcvs?rev=330356view=rev
Log:
tests requiring LWP when LWP is not available are now skipped
A note for the test developers. For the future when you finish changing
the test
[cross posting to two mailing lists]
So far I've received two recommendations about a C library to help
authenticate users based on cookies (and optionally IP/URL/etc.):
Reginald De Crombrugghe recommended mod_auth_tkt (one of the libraries
which were mentioned in my original question), and Ian
Eli Marmor wrote:
As for the long run, I plan to write my own piece of code, based on
libapreq2; I plan to open it, of course.
Meanwhile, I want to thank Ian and Reginald for their generous help!
I've seen lots of people ask for this.
It might not be bad idea to make a libapreq2-util code
On Sun, 2005-09-25 at 18:45 +0300, Eli Marmor wrote:
If anybody else has anything to add about the differences between these
library, or even about another library which does the work, please
speak now or forever hold your peace ;-) (just kidding...)
Only because of the forever hold your
Which operating system you are using? If you are using unix os, this problem
may be due to the prefork process which will be created to serve for
each connection. In that case you may have to use shared memory...
Regards,
Asok
My understanding about per server conf is that any structure
hello,
i'm forwarding a mail i sent to the apache-modules ml. i hope i'll have
answers here, thanks for feedback.
Original Message
Subject: [apache-modules] apache gives me a NULL config_file * pointer
Date: Tue, 15 Jun 2004 16:20:16 +0200
From: Julien ALLANOS [EMAIL PROTECTED
William A. Rowe, Jr. wrote:
Sumeet Singh wrote:
I was wondering if invoking an internal-redirect from within an output filter is legal. I need to do that from my output filter but want to make sure that it conforms to apache2.0 API before I go ahead and design/code it.
I presume this
* Sumeet Singh [EMAIL PROTECTED] wrote:
[internal redirects in output filters]
Yes, I also find it unsafe. However, note that some standard modules do
that too. For example mod_include runs sub-requests from within its
output filters. In my opinion this shouldn't be allowed, because with
André Malo wrote:
* Sumeet Singh [EMAIL PROTECTED] wrote:
[internal redirects in output filters]
Yes, I also find it unsafe. However, note that some standard modules do
that too. For example mod_include runs sub-requests from within its
output filters. In my opinion this shouldn't be
On Sat, 2004-03-27 at 21:54, Joe Lewis wrote:
Allow me to rephrase that in a way I think you are meaning. You are
trying to use one module to alter the configuration of another module.
It really shouldn't be done. However, anything is possible. Using the
ap_get_module_config in a case
* Andres Salomon ([EMAIL PROTECTED]) wrote :
I prefer the 021-pcre_mangle_symbols.patch patch, even though it's
larger; it ensures stability, at the cost of some code duplication. The
020-external_pcre.patch patch isn't as clean as I'd hoped, and for the
added complexity, not much memory is
Currently, apache2 includes a full version of pcre-3.9 in its sources;
this is built during compilation, and statically linked against. The
symbols from this library, are exported to apache modules. This is
undesirable for some apache modules; for example, php. Php links
against libpcre
Nick Kew wrote:
On Wed, 28 Jan 2004, Will Lowe wrote:
If you're looking for Apache 1.x (not 2.x)
Given that he's writing C, and that 2.x is a vastly richer development
environment than 1.3, why should he even consider that?
In 1.3 days, application developers had to resort to all kinds
PROTECTED]
Sent: Thursday, January 29, 2004 11:14 AM
To: [EMAIL PROTECTED]
Subject: Re: Help in Writing Apache Modules in C
If you're looking for Apache 1.x (not 2.x) and you're already fairly
proficient in C, check out the excellent book Writing Apache Modules
in Perl and C. It's written mostly
Hi All,
I have just joined the group. Please could anyone help me on a tutorial with
Writing Apache Modules in C.
Awaiting for a Helping Hand.
Thanks Warm Regards
--BENNY
If you're looking for Apache 1.x (not 2.x) and you're already fairly
proficient in C, check out the excellent book Writing Apache Modules
in Perl and C. It's written mostly with a slant towards Perl but the
concepts all apply and the last few chapters give an excellent
in-depth view of the C
On Wed, 28 Jan 2004, Will Lowe wrote:
If you're looking for Apache 1.x (not 2.x)
Given that he's writing C, and that 2.x is a vastly richer development
environment than 1.3, why should he even consider that?
In 1.3 days, application developers had to resort to all kinds of
add-ons, none of
To: [EMAIL PROTECTED]
Subject: Re: Help in Writing Apache Modules in C
If you're looking for Apache 1.x (not 2.x) and you're already fairly
proficient in C, check out the excellent book Writing Apache Modules
in Perl and C. It's written mostly with a slant towards Perl but the
concepts all apply
Eli Marmor wrote:
Hi,
...
It is VERY easy for mod_proxy of Apache to recognize such sessions and
block them. Before I'm starting such a project, I'd like to know:
1. Is there any existing code and/or module that implements this?
2. Is there any plan to add this to Apache / mod_proxy? My plan
how about we put these 2 presentations on the 'offical' site and link to
them from developer docs?
http://www.apache.org/~jwoolley/bucketbrigades/bucketbrigades.pdf
http://www.apache.org/~gregames/ap2filters.ppt
Original Message
Subject: Re: [apache-modules] Looking for Filter
Hi Günter,
A couple of weeks ago I asked in the Apache developpers' list if anyone
could compile a third party module (mod_replace) for Windows, and you
were very kind and did it. These two weeks I've been trying the module,
which sometimes works and sometimes doesn't. After much investigating, I
Hi all!
Günter sent me a binary version of mod_replace. I started trying it
and I couldn't get it to work. At last I found that there is an error in
the example configuration file. Instead of being 'Replace colour color
text/html', it should be 'Replace colour color text/html'. At least
this
regards,
Juan C. Rivera
Citrix Systems, Inc.
-Original Message-
From: Igor Leturia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 6:06 AM
To: [EMAIL PROTECTED]
Subject: Re: Compiling Apache modules for windows
Hi all!
Günter sent me a binary version of mod_replace. I
Thanks very much, Juan! I tried it and it worked!
-Jatorrizko mezua-
Nondik: Juan Rivera [mailto:[EMAIL PROTECTED]]
Bidalia: Asteartea, 2002.eko urriak 15 15:34
Nora: '[EMAIL PROTECTED]'
Gaia: RE: Compiling Apache modules for windows
Igor,
You have to put the replace entries like
Thanks very much, Günter! I'm going to try it right now!
Igor
-Jatorrizko mezua-
Nondik: Günter Knauf [mailto:[EMAIL PROTECTED]]
Bidalia: Ostirala, 2002.eko urriak 11 20:01
Nora: [EMAIL PROTECTED]
Gaia: Re: Compiling Apache modules for windows
Hi Igor,
I'm
Hi!
I'm interested in a third party module for Apache that I found in the
internet, but there's only the source code of it (a .c file), not the
.so file. I'm a windows user, and I read in the Apache website's faq
that only a limited number of the developers have the capability to
build the
Hi Igor,
please send me the source or a link where I can find it; and I'll give it a try...
in addition you can take a look on my site where you can find a bunch of other module
binaries for Win32:
http://www.gknw.de/development/apache/
Guenter.
I'm interested in a third party module for
Hi Igor,
I'm interested in a third party module for Apache that I found in the
internet, but there's only the source code of it (a .c file), not the
.so file. I'm a windows user, and I read in the Apache website's faq
if that's the module you found:
http://pihl.kumpu.org/apache2/
then you
I'm finding that using the bucket API to develop filters using
Apache2 is very easy and powerful - congratulations to the
desiginers.
One of the things I'm doing is looking for regular expressions
in the contents of buckets. Because the buckets are not null
terminated strings, I must copy
I'm very beginner to Apache API Programming.
Where to find documents?
I am working on a tutorial for new Apache2 module
programmers. There are still some parts of the
documentation I need to touch up, but it's good
enough that it may answer some of your questions.
Hi.
I'm very beginner to Apache API
Programming. where to find documents?
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'm very beginner to Apache API Programming. where to find documents?
http://httpd.apache.org/docs/misc/API.html
- --
Maurizio Marini
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see
, September 22, 2002 7:16 PM
Subject: Re: Apache Modules.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'm very beginner to Apache API Programming. where to find
documents?
http://httpd.apache.org/docs/misc/API.html
- --
Maurizio Marini
-BEGIN PGP SIGNATURE
thanx this is good.
- Original Message -
From: Bojan Smojver [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 23, 2002 5:12 AM
Subject: Re: Apache Modules.
Try this: http://www.onlamp.com/pub/ct/38
I found it to be excellent.
Bojan
Quoting Mustafa Y
Martin Kraemer wrote:
About the X-Forwarded-* stuff: It's non-standard anyway (you can add
any X-whatever header and still be RFC2616 compliant) so I'd rather
not see it in 1.3 now (maybe in the next release ;-)
I've seen proxies like squid hang because of nonstandard headers
Thomas Eibner wrote:
Anyone looked at the remaining open bugs in 1.3 and might want to include
this patch (and bug)?
Only if someone can verify that this patch actually does anything. The
proxy has been largely rewritten since then, so this bug might not still
be outstanding.
There is a
Just FYI.. another datum on the 'AG are snobs' scale..
--
#kenP-)}
Ken Coar, Sanagendamgagwedweinini http://Golux.Com/coar/
Author, developer, opinionist http://Apache-Server.Com/
Millennium hand and shrimp!
---BeginMessage---
Thomas Eibner wrote:
On Tue, May 28, 2002 at
On Wed, May 29, 2002 at 06:47:20PM +0200, Graham Leggett wrote:
Thomas Eibner wrote:
Anyone looked at the remaining open bugs in 1.3 and might want to include
this patch (and bug)?
Only if someone can verify that this patch actually does anything. The
proxy has been largely rewritten
On Wed, May 29, 2002 at 07:10:25PM +0200, Graham Leggett wrote:
Thomas Eibner wrote:
Looking at apache-1.3 in cvs VS httpd-2.0 there seems to be a few
changes, and the X-Forwarded-* headers are some of them. I have a
patch ready if needed (with what I believe are your comments in
it).
Thomas Eibner wrote:
Ah yes, X-Forwarded-For is there, but not the two others there is in
2.0 (X-Forwarded-Server and X-Forwared-Host) I read in the source that
someone thinks it needs to go into the Via header instead. And as I can
read from the source, X-Forwarded-For is only sent when
On Wed, May 29, 2002 at 07:20:17PM +0200, Graham Leggett wrote:
Thomas Eibner wrote:
Ah yes, X-Forwarded-For is there, but not the two others there is in
2.0 (X-Forwarded-Server and X-Forwared-Host) I read in the source that
someone thinks it needs to go into the Via header instead. And
Thomas Eibner wrote:
Inline patch here, but I'm wondering if you want the X-Forwarded-For
header to be stuck inside the conditional too?
I think it should be... will sort this out later tonight or first thing
tomorrow, have to leave the internet cafe now to fetch someone.
Regards,
Graham
--
On Wed, May 29, 2002 at 07:44:16PM +0200, Graham Leggett wrote:
Thomas Eibner wrote:
Inline patch here, but I'm wondering if you want the X-Forwarded-For
header to be stuck inside the conditional too?
I think it should be... will sort this out later tonight or first thing
tomorrow,
At 01:30 PM 05/29/2002, Thomas Eibner wrote:
Index: proxy_http.c
===
RCS file: /home/cvspublic/apache-1.3/src/modules/proxy/proxy_http.c,v
retrieving revision 1.98
diff -u -r1.98 proxy_http.c
--- proxy_http.c21 Apr 2002
On Wed, May 29, 2002 at 02:02:53PM -0400, Greg Marr wrote:
At 01:30 PM 05/29/2002, Thomas Eibner wrote:
Index: proxy_http.c
===
RCS file: /home/cvspublic/apache-1.3/src/modules/proxy/proxy_http.c,v
retrieving revision 1.98
diff
On Wed, May 29, 2002 at 08:18:53PM +0200, Thomas Eibner wrote:
On Wed, May 29, 2002 at 02:02:53PM -0400, Greg Marr wrote:
At 01:30 PM 05/29/2002, Thomas Eibner wrote:
Index: proxy_http.c
===
RCS file:
Now is not the time to be adding in code whilly-nilly...
--
===
Jim Jagielski [|] [EMAIL PROTECTED] [|] http://www.jaguNET.com/
A society that will trade a little liberty for a little order
will
On Wed, May 29, 2002 at 06:28:24PM +0200, Thomas Eibner wrote:
From: Anthony Howe [EMAIL PROTECTED]
Subject: Re: [apache-modules] Setting bytes_sent in Request Record while generating
all headers by myself in Apache 1.3
Number: 6841
ap_kill_timeout(r);
+
+ r
On Wed, May 29, 2002 at 10:44:16PM +0200, Martin Kraemer wrote:
Yes, the patch was correct (IMHO) and yes, I committed this one.
About the X-Forwarded-* stuff: It's non-standard anyway (you can add
any X-whatever header and still be RFC2616 compliant) so I'd rather
not see it in 1.3 now
90 matches
Mail list logo