Does anyone know where to find the Apache module mentioned (use
Apache;) in the tracking users with cookies code example code found
in the Apache::Session manpage?
Thanks,
Carl Holm,
[EMAIL PROTECTED]
On Mon, 2003-02-24 at 19:49, Carl Holm wrote:
Does anyone know where to find the Apache module mentioned (use
Apache;) in the tracking users with cookies code example code found
in the Apache::Session manpage?
It's part of mod_perl. If you have installed mod_perl 1.x, you have it.
[please keep it on the list]
Carl Holm wrote:
I'm running mod_perl2
The examples in the documentation of Apache::Session are for mod_perl
1.x. If you want to run them under mod_perl 2, you have to port them or
use the backward compatibility functions. Documentation is on the
perl.apache.org
=98295430720401w=2
as you can see from the rest of the thread, doug applied it but it looks as
if Apache::Module hasn't had a release since then.
HTH
--Geoff
i'm not sure that this is an actual problem with Apache::Module itself, but
it seems to stem from mod_perl distribution's mod_perl.h here:
#ifdef PERL_THREADS
#define _INCLUDE_APACHE_FIRST
#endif
#ifdef _INCLUDE_APACHE_FIRST
#include apache_inc.h
#endif
the perl i built against was the stock
dorian wrote:
i'm not sure that this is an actual problem with Apache::Module itself, but
it seems to stem from mod_perl distribution's mod_perl.h here:
#ifdef PERL_THREADS
#define _INCLUDE_APACHE_FIRST
#endif
#ifdef _INCLUDE_APACHE_FIRST
#include apache_inc.h
#endif
the perl i built against
I don't remember what was the outcome of the patch I've posted a long time
ago. I sent it after having the same problem.
ah, so it's actually a problem with the mod_perl distribution then?
i'm actually curious as to where apache_inc.h is supposed to be included,
if threads aren't defined.
stas2002/12/12 00:43:38
Modified:xs/Apache/Module Apache__Module.h
Log:
prevent segfaults, when scfg is NULL
Revision ChangesPath
1.8 +2 -1 modperl-2.0/xs/Apache/Module/Apache__Module.h
Index: Apache__Module.h
Hi Tim, thanks for replying,
At 22:33 23.06.2002, Tim Bunce wrote:
Why am I adressing you? Because Randy suggested, and I agreed, that some
kind of module listing in categories would be interesting for the modules
and for the mod_perl community--probably having a page dedicated to
On Tue, Jun 18, 2002 at 12:48:57PM +0200, Per Einar Ellefsen wrote:
Hi people,
Time for a post that's a little different than your usual New user and
New module e-mails :) I'm posting here since it seems like the most
appropriate place to discuss these issues.
I adressed an issue on
Hi people,
Time for a post that's a little different than your usual New user and
New module e-mails :) I'm posting here since it seems like the most
appropriate place to discuss these issues.
I adressed an issue on the mod_perl list lately concerning the Apache::
namespace organization. As
dougm 01/03/26 07:51:51
Modified:xs/Apache/Module Apache__Module.h
Log:
s/top_module/ap_top_module/
Revision ChangesPath
1.2 +1 -1 modperl-2.0/xs/Apache/Module/Apache__Module.h
Index: Apache__Module.h
dougm 01/03/25 14:30:12
modperl-2.0/xs/Apache/Module - New directory
Hello,
I am writing an apache perl module which logs HTTP
environment variables. This is fine for static content
(html, images) but is a problem for dynamic content
such as php.
I want my module to process the required HTTP
variables and seamlessly pass the http request back to
the control of
On Thu, 1 Mar 2001, Michael Turley wrote:
Hello,
I am writing an apache perl module which logs HTTP
environment variables. This is fine for static content
(html, images) but is a problem for dynamic content
such as php.
I want my module to process the required HTTP
variables and
I am writing an apache perl module which logs HTTP
environment variables. This is fine for static content
(html, images) but is a problem for dynamic content
such as php.
Why doesn't Log Format work for you?
- Perrin
You mean in httpd.conf? I could use that but what I
hoped to do was pull http vars into a database for
each server request. This is so someone could
interactively view accesses rather than reviewing
static pregenerated files.
The overhead of opening and closing readonly
filehandles on different
I have written a module for Apache which sets the X-Original-URI field
to the original URI when doing a ProxyPass, similar to what
mod_proxy_add_forward.c does for the remote IP address.
The code is available at http://tjmather.com/mod_proxy_add_uri.c
Any comments or suggestions welcome.
On Dec 22, 1:15pm, darren chamberlain wrote:
How is this different from using Template Toolkit directly? It's not,
except that using the module is as simple as:
FilesMatch "*.html$"
SetHandler perl-script
PerlHandler Grover
/FilesMatch
The module's working name is Grover, but it
.
I've been working on an Apache module for a while which utilizes
Template Toolkit, and provides a more or less generic interface to the
power of TT. Configuration is done through configuration directives,
which are the options that get passed to the Template object.
Pages that get processed
something to do the actual
processing of the templates.
I've been working on an Apache module for a while which utilizes
Template Toolkit, and provides a more or less generic interface to the
power of TT. Configuration is done through configuration directives,
which are the options that get
At 09:32 AM 12/15/00 -0300, you wrote:
Jeremy Howard wrote:
IMHO, the best open source WebMail servers are PHP based
I have this dangling idea of building a TWIG lookalike (in Perl), with
a 'plug-in'/'module' structure, so I may write the email client, and
others fill with their desired
On Fri Dec 15 11:28:03 2000 -0800 brian moseley wrote:
On Fri, 15 Dec 2000, Perrin Harkins wrote:
Is there a reason you don't want to just hack on WING?
It's a pretty powerful system and it was designed for
mod_perl. Look it up on CPAN.
it's an option, but it's got a
Jeremy Howard wrote:
IMHO, the best open source WebMail servers are PHP based
true, I am using and patching TWIG quite a lot, and that made me see how
messy PHP gets when dealing with libraries and things. It's not nice to
see a large app written in PHP... at least not this one.
I have
On Fri, 15 Dec 2000, martin langhoff wrote:
I have this dangling idea of building a TWIG
lookalike (in Perl), with a 'plug-in'/'module'
structure, so I may write the email client, and others
fill with their desired modules. Anyway, it's a seriuos
undertaking, but it's in my plans to
brian moseley wrote:
(speaking as the author of a proprietary mod_perl
webmail...)
DO IT!!
my fear is that writing it as a mod_perl app, it'd be terribly niche,
and we wouldn't get it rolling. I'd rather write a bunch of modules,
that can be called from a CGI or a templating
On Fri, 15 Dec 2000, martin langhoff wrote:
brian moseley wrote:
(speaking as the author of a proprietary mod_perl
webmail...)
DO IT!!
my fear is that writing it as a mod_perl app, it'd be terribly niche,
and we wouldn't get it rolling. I'd rather write a bunch of modules,
On Fri, 15 Dec 2000, martin langhoff wrote:
I have this dangling idea of building a TWIG lookalike (in Perl), with
a 'plug-in'/'module' structure, so I may write the email client, and
others fill with their desired modules.
Is there a reason you don't want to just hack on WING? It's a
martin langhoff wrote:
brian moseley wrote:
(speaking as the author of a proprietary mod_perl
webmail...)
DO IT!!
my fear is that writing it as a mod_perl app, it'd be terribly niche,
and we wouldn't get it rolling. I'd rather write a bunch of modules,
that can be called
On Fri, 15 Dec 2000, Perrin Harkins wrote:
Is there a reason you don't want to just hack on WING?
It's a pretty powerful system and it was designed for
mod_perl. Look it up on CPAN.
it's an option, but it's got a large amount of dependencies,
which makes it a tremendous effort for me to
On Fri Dec 15 11:28:03 2000 -0800 brian moseley wrote:
On Fri, 15 Dec 2000, Perrin Harkins wrote:
Is there a reason you don't want to just hack on WING?
It's a pretty powerful system and it was designed for
mod_perl. Look it up on CPAN.
it's an option, but it's got a large amount
At 11:28 15/12/2000 -0800, brian moseley wrote:
On Fri, 15 Dec 2000, Perrin Harkins wrote:
Is there a reason you don't want to just hack on WING?
It's a pretty powerful system and it was designed for
mod_perl. Look it up on CPAN.
it's an option, but it's got a large amount of dependencies,
Perrin Harkins wrote:
Is there a reason you don't want to just hack on WING?
I've seen TWIG and its *very* clever, if ugly. It'll let you
authenticate against a lot of things. Use IMAP or POP. Use News. Use
mysql, Postgres, MySQL, or none. Use cookies or encoded links for state.
It's *very*
On Fri, 15 Dec 2000, Robin Berjon wrote:
Wing has been widely tested in the field iirc, it's
probably a good idea to base anything in that domain on
it.
possibly. groupware applications aren't that complex really,
tho (except for calendaring and scheduling); the main
problem is that they're
On Fri, 15 Dec 2000, martin langhoff wrote:
Perrin Harkins wrote:
Is there a reason you don't want to just hack on WING?
I've seen TWIG and its *very* clever, if ugly. It'll let you
authenticate against a lot of things. Use IMAP or POP. Use News. Use
mysql, Postgres, MySQL, or none.
At 12:23 15/12/2000 -0800, brian moseley wrote:
On Fri, 15 Dec 2000, Robin Berjon wrote:
Wing has been widely tested in the field iirc, it's
probably a good idea to base anything in that domain on
it.
possibly. groupware applications aren't that complex really,
tho (except for calendaring
Hi
- Original Message -
From: "George Sanderson" [EMAIL PROTECTED]
Sent: Thursday, December 14, 2000 22:47
Subject: RFC: Email (mod_perl) Apache module?
The module would allow the users to read and send email.
Now that would be advocacy;-)
No, that would be spam.
--
\js
Leon Brocard wrote:
Jeremy Howard sent the following bits through the ether:
IMHO, the best open source WebMail servers are PHP based:
In Perl, there's also WING: http://users.ox.ac.uk/~mbeattie/wing/ and
my oh-my-god-it's-still-in-development-and-I'm-still-breaking-
I think it would be cool to have an email Apache module. I was thinking
that if the URL was something like:
http://www.site.com/user/mail
it would activate the module.
The module would allow the users to read and send email. Kind of like how
I did Apache::FileMan (an Apache web site file
George Sanderson wrote:
I think it would be cool to have an email Apache module. I was thinking
that if the URL was something like:
http://www.site.com/user/mail
it would activate the module.
The module would allow the users to read and send email. Kind of like how
I did Apache
Prior to creating any file, the user would have been authenticated and an
authorize module
would have supplied the UID to be used for the request in an environment
variable. The location
of the user's files has to read by Apache so such that it can serve the
files (HTML).
The rational behind
On Wed, 29 Nov 2000, [EMAIL PROTECTED] wrote:
Any ideas about the best way to change the permissions and UID?
Create an external minimum perl script with the SUID bit set and with
root as it's owner. Use this script to change the file
permissions.
See you,
--
Godoy. [EMAIL PROTECTED]
hanging a file's UID from within an Apache module?
On Wed, 29 Nov 2000, [EMAIL PROTECTED] wrote:
Any ideas about the best way to change the permissions and UID?
Create an external minimum perl script with the SUID bit set and with
root as it's owner. Use this script to change the file
pe
I am creating a mod_perl Apache module. The last functionality that I need
to implement is the ability to set the UID of the files and directories
which are created and modified by the Apache module to something other than
Apache's child UID.
For example, if when I built Apache 1.3.14 on Linux
Hi,
The module would handle the requests before any other
modules and check
in its database if there is a cached page for that request uri. If the
page is cached, it will send the cached page and return DONE.
As Matt already said, Embperl 2.x will support exactly this (among
Luis Henrique Cassis Fagundes ([EMAIL PROTECTED]) said something to this effect:
The idea of a 404 handler will fit perfectly with mod_rewrite: I can
create a 404 handler that writes the page to a static file and to the
browser and a rewrite rule that redirects request of the dynamic
The problem I'm having is not to write the contents, the problem is to
get the contents I'm going to write. I must get the output of the
dynamic page (that can be CGI, PHP, SSI, or anything) before it's sent
to the browser... I'm now trying to do it with Apache::OutputChain.
[]s
Luis Henrique Cassis Fagundes ([EMAIL PROTECTED]) said something to this effect:
The problem I'm having is not to write the contents, the problem is to
get the contents I'm going to write. I must get the output of the
dynamic page (that can be CGI, PHP, SSI, or anything) before it's sent
[EMAIL PROTECTED] (Luis Henrique Cassis Fagundes) wrote:
The problem I'm having is not to write the contents, the problem is to
get the contents I'm going to write. I must get the output of the
dynamic page (that can be CGI, PHP, SSI, or anything) before it's sent
to the browser... I'm
Hi,
Recently I started to have problems in developing my CGIs because in my
new job most of the servers run Netscape instead of Apache. The
administrator told me that the reason is that Netscape has a better
performance than Apache 1.3. I'm now developing a module that caches in
Yes. It's Apache::Registry.
On 12-Jul-2000 Luis Henrique Cassis Fagundes wrote:
Hi,
Recently I started to have problems in developing my CGIs because in my
new job most of the servers run Netscape instead of Apache. The
administrator told me that the reason is that Netscape has a
"j" == jbodnar [EMAIL PROTECTED] writes:
j Yes. It's Apache::Registry.
No. Registry does not cache the generated pages. Try any of the
standard "template" packages like Mason or AxKit.
Sorry. I was attempting to answer what I thought was his real question. He
mentioned performance of CGI scripts and so Apache::Registry would be the ideal
choice. I don't think he wants to rewrite his CGIs so the template packages
won't work for him.
On 12-Jul-2000 Vivek Khera wrote:
"j" ==
How do I use Apache::Registry to cache pages in disk? The module
I have
in mind is something transparent to the programmer, you just tell apache
that some CGI (or PHP, or any request) will be cached and the server
will cache the stdout in disk, and next time someone requests a page,
the
Perhaps you'd rather use something like the squid proxy, then:
http://www.squid-cache.org/
When you decide to switch back to Apache, which may not take too long,
you can continue to use squid as a front-end proxy. =)
[EMAIL PROTECTED] (Luis Henrique Cassis Fagundes) wrote:
How do
On Wed, 12 Jul 2000, Luis Henrique Cassis Fagundes wrote:
How do I use Apache::Registry to cache pages in disk? The module
I have
in mind is something transparent to the programmer, you just tell apache
that some CGI (or PHP, or any request) will be cached and the server
will cache
normally, but
it will cache the output in disk before sending it to the client.
This is simple and could be done with a proxy server instead of an
Apache module, but the cache must be cleaned whenever the page is
changed. I want to make this module and make an interface to clean the
cache when
Luis Henrique Cassis Fagundes ([EMAIL PROTECTED]) said something to this effect:
How do I use Apache::Registry to cache pages in disk? The module
I have
in mind is something transparent to the programmer, you just tell apache
that some CGI (or PHP, or any request) will be cached and
So is it true that Netscape has a better performance than Apache 1.3?
Here, we are trying to move over from Netscape to Apache not so much coz of
performance issues with the web server, but more to add mod_perl/fastcgi
and cool stuff like that.
-Pramod
At 12:18 PM 7/12/00 +0200, Luis Henrique
On Wed, 12 Jul 2000, Luis Henrique Cassis Fagundes wrote:
Hi,
The module would handle the requests before any other modules and check
in its database if there is a cached page for that request uri. If the
page is cached, it will send the cached page and return DONE.
What if the
[EMAIL PROTECTED] (darren chamberlain) wrote:
Luis,
Write a handler (or cgi script, or registry script, or NSAPI plugin, or
PHP page) that handles 404 Errors, generates the (static) page, and
writes it to the location in the file system where the requested page
should live. The next time it is
According to Ken Williams:
Another option is to set up whatever handler you want, on a development
or staging server (i.e., not the live one), and grab the pages with
lynx -dump or GET or an LWP script, and write them to the proper places
in the filesystem where the live server can access
Matt Sergeant
On Wed, 12 Jul 2000, Luis Henrique Cassis Fagundes wrote:
How do I use Apache::Registry to cache pages in disk? The module
I have
in mind is something transparent to the programmer, you just tell apache
that some CGI (or PHP, or any request) will be cached and
and return DONE. If the
page is not cached, it will let Apache handle the request normally, but
it will cache the output in disk before sending it to the client.
This is simple and could be done with a proxy server instead of an
Apache module, but the cache must be cleaned whenever the page
John Edstrom ([EMAIL PROTECTED]) said something to this effect:
The problem here is that you can't simply cache the page, because the
server and even the script can't know when to replace the cached page
until after its heard from the database or the source that is feeding
the database. It
at a time earlier than now, darren chamberlain wrote:
Write a handler (or cgi script, or registry script, or NSAPI plugin, or PHP
page) that handles 404 Errors, generates the (static) page, and writes it to
the location in the file system where the requested page should live. The
next time
Ken Williams [EMAIL PROTECTED] writes:
Putting squid in front of an Apache server used to be very popular - has
it fallen out of favor? Most of the answers given in this thread seem
to be more of the roll-your-own-cache variety.
Squid's OK provided you can coax Apache to send the header
Or have them be resident in memory, which squid can do. Why reinvent this?
b/c to use squid, you have to be able to use HTTP headers to do
cache validation. sometimes that works, sometimes it doesn't.
Putting squid in front of an Apache server used to be very popular - has
it fallen
at a time earlier than now, darren chamberlain wrote:
How are your files uploaded? If you use some sort of an automated system,
add a line to delete or rename or whatever the current version of the file,
so that when the URI gets called again, it is regenerated. Or, if you
generate the
The idea of a 404 handler will fit perfectly with mod_rewrite: I can
create a 404 handler that writes the page to a static file and to the
browser and a rewrite rule that redirects request of the dynamic page to
the static page.
The only problem is one I already had trying to
, it will let Apache handle the request normally, but
it will cache the output in disk before sending it to the client.
This is simple and could be done with a proxy server instead of an
Apache module, but the cache must be cleaned whenever the page is
changed. I want to make this module
So is it true that Netscape has a better performance than Apache 1.3?
Here, we are trying to move over from Netscape to Apache not so much coz of
performance issues with the web server, but more to add mod_perl/fastcgi
and cool stuff like that.
-Pramod
At 12:18 PM 7/12/00 +0200, Luis Henrique
--On Wednesday, July 12, 2000 4:14 PM -0700 Pramod Sokke
[EMAIL PROTECTED] wrote:
So is it true that Netscape has a better performance than Apache 1.3?
Don't know. Haven't seen any benchmark data.
However, there is a need to define one's terms as well. Probably, the
Netscape (now Iplanet)
On 12-Jul-2000 Rob Tanner wrote:
--On Wednesday, July 12, 2000 4:14 PM -0700 Pramod Sokke
[EMAIL PROTECTED] wrote:
So is it true that Netscape has a better performance than Apache 1.3?
But, scalibility in a large site depends an awful lot on all kinds of
things over and above the WEB
aaron wrote:
for example, in discussion software you have a very clear moment when you
want to invalidate specific pages: when a message arrives. now i don't want
squid or any other cache to even check w/ every request. i know darn well
when the cache is no longer valid!
I've been
On Mon, 1 Nov 1999, John Siracusa wrote:
On 11/1/99 2:32 AM, Doug MacEachern wrote:
or use this undocumented feature:
$Apache::ERRSV_CAN_BE_HTTP = 1; #set this anywhere, startup script is best
die FORBIDDEN;
mod_perl peeks at $@, if it's a 3 digit http status code, it propagates
On Thu, 28 Oct 1999, Public Interactive wrote:
I'd like to be able to prematurely end the thread of execution
within a Perl apache module from someplace *other than* the
PerlHandler entry point subroutine (usually "handler()"). That is,
when I'm a few subroutines deep inside my
On 10/28/99 12:34 PM, Eric Cholet wrote:
You could use "eval" and "die", Perl's standard exception mechanism.
I thought of that, but I was concerned that my module would suffer
a performance hit. Granted, it's not a strong eval, but it just
seems ugly. If that's the only way, I guess I'm
On Thu, 28 Oct 1999, Public Interactive wrote:
I'd like to be able to prematurely end the thread of execution
within a Perl apache module from someplace *other than* the
PerlHandler entry point subroutine (usually "handler()"). That is,
when I'm a few subroutines deep inside my
On 10/28/99 1:31 PM, Ken Y. Clark wrote:
for what it's worth, here's what i do:
[snip]
my $err = $r-pnotes(ERROR_NAME) or return OK;
Speaking of pnotes(), how stable, API-wise, is it? It isn't documented
at all in the O'Reilly Apache Modules book, but I was very happy to find
it in the
fine,
it sends two line
of "Set-Cookie". Apache-header_out doesn't work, if I call it twice, only the
second
cookie is sent in one "Set-Cookie" line. So I wonder is it because I'm not
familiar with
the methods in Apache module, i.e. I miss out something, or Apache-header_
n one "Set-Cookie" line. So I wonder is it because I'm not
familiar with
the methods in Apache module, i.e. I miss out something, or Apache-header_out
does
not support this?
$r-headers_out-add( 'Set-Cookie' = $cookie );
Rick Myers
82 matches
Mail list logo