On Thu, May 16, 2002 at 11:40:49AM +0100, Jonathan M. Hollin wrote:
> Hi JAPHs,
>
> Is it possible to force a 404-error from within a mod_perl CGI?
>
> I am working on my CMS and I want to generate a 404 if the user hacks
> the URI in a certain way: i.e, if the use passes a value in the URI that
Hi all,
I'm actually working on a application for generating dynamic virtual
host and locations in these virtual host from a web interface.
The purpose of this application is to give a non-administrator the
possibility of adding on the fly virtualhost to a webserver without
modifying http
Hi all,
I'm actually working on a application for generating dynamic virtual
host and locations in these virtual host from a web interface.
The purpose of this application is to give a non-administrator the
possibility of adding on the fly virtualhost to a webserver without
modifying httpd
At 16:10 17.05.2002, Viljo Marrandi wrote:
>Hello,
>
>Sorry about non mod_perl question, but as I'm subscribed to this list and
>I know I can get help from here, I ask my question here.
>
>Can anyone tell me, what's wrong with this piece of code:
>
>$vars->{'key2'} = "value of second key";
>$vars
Thanks Drew, I tried that, but it did not work.
Ted
Drew Taylor wrote:
> Have you tried moving the PerlInitHandler & PerlSetVar up and out of the
> directive, making it global for the server? I'm not sure that
> would fix it, but it's worth a try.
>
> Drew
>
> At 02:37 PM 5/17/02 -0400, Ted Pr
Have you tried moving the PerlInitHandler & PerlSetVar up and out of the
directive, making it global for the server? I'm not sure that
would fix it, but it's worth a try.
Drew
At 02:37 PM 5/17/02 -0400, Ted Prah wrote:
>I have tried Apache::Reload as well, but I get the same results.
>
>Ted
>
I have tried Apache::Reload as well, but I get the same results.
Ted
Drew Taylor wrote:
> Take a look at Apache::Reload or Apache::StatINC. Reload is more flexible,
> but StatINC has been around a little longer. Both have worked well for me.
> But be sure that you don't use these modules on a p
Take a look at Apache::Reload or Apache::StatINC. Reload is more flexible,
but StatINC has been around a little longer. Both have worked well for me.
But be sure that you don't use these modules on a production server. :-)
httpd.conf
==
PerlInitHandler Apache::Reload
Drew
At 01:38 PM
Gregory Matthews wrote:
> Stas:
>
> Out of curiosity, what do YOU use to debug perl running under mod_perl?
Apache::DB
__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --->
Hi,
I am new to mod_perl and am having problems seeing the
changes made to library files. Must I restart the server every
time I change a library file in order to see my changes? My
test code and environment is below.
z.pl - test script which calls entry_point in z_lib.pl
[please don't forget that to CC the list!]
Gregory Matthews wrote:
> Stas:
>
> Thanks for your reply on my issue in the Mod_Perl list.
>
> Excuse my ignorance, but how do I do the following:
>
> before you try to build Apache::DB try to build test.c with the contents:
> #include
> int main(vo
You'll find a few other issues with AuthCookie and mod_perl-1.9.9_01
beyond the REDIRECT constant. Here's a quick summary:
1) move all the $r->connection->user() calls to $r->user() calls
2) change all the err_header_out() calls to err_headers_out() calls.
< $r->err_headers_
On Thu, 16 May 2002, James Luberda wrote:
> I have installed Randy Kobes' 5-10-2002 Apache-2/modperl-2 Win32
> binaries on a Win2k Professional P3 uniprocessor development machine. I
> have left all of the startup.pl script as is. Everything works
> great--however, with some scripts I seem to sti
In support of F. Xavier Noria, and in simpler terms - your $vars = {
. } overwrote your previous assignment of $vars->{'key2'}.
Perhaps you could have done:
my $var = {};
$var->{'key2'} = "some value";
my @args = qw/ XXX YYY ZZZ /;
my @vals = qw/ AAA BBB CCC /;
my $i;
for ($i =0; $i < scalar
Stas Bekman wrote:
> I know I don't sound nice, but we try hard to keep a low Sound to Noise
> Ratio here.
of course I meant a *high* Sound to Noise Ratio. the heat and humidity
shows :)
p.s. sorry for adding to the noise. back to work on adding more sound.
__
Viljo Marrandi wrote:
> Sorry about non mod_perl question, but as I'm subscribed to this list and
> I know I can get help from here, I ask my question here.
Please do NOT do that in the future. This is the *modperl* list. There
are hundreds of perl lists which will gladly help you out. perlmonk
Jim Morrison [Mailinglists] wrote:
> Anyhow... I was wondering... is there a simple way to set up a sort
> of "idle timeout" to get each single httpd to restart itself if two
> conditions are met: - 1 - It has compiled mod_perl - 2 - The mod_perl
> aliases have not been accessed for 'x' minu
On Fri, 17 May 2002 17:10:53 +0300 (EEST)
Viljo Marrandi <[EMAIL PROTECTED]> wrote:
: $vars->{'key2'} = "value of second key";
The hash $vars points to has a key named "key2".
: $vars = {
: xxx => "AAA",
: yyy => "BBB",
: zzz => "CCC",
: };
Now you change the reference stored in $v
Guys,
I am currently using mod_perl & XML::Xalan.. which is going well.. (For
those of you who answered questions of mine about memory usage, I found some
big memory leaks in my code... Doh!... Much better now... )
However, because it's only a little box, and because Xalan (and therefore
mod_per
Hello,
Sorry about non mod_perl question, but as I'm subscribed to this list and
I know I can get help from here, I ask my question here.
Can anyone tell me, what's wrong with this piece of code:
$vars->{'key2'} = "value of second key";
$vars = {
xxx => "AAA",
yyy => "BBB",
zzz => "
At 09:59 17.05.2002, simran wrote:
>ps: We are intending on having something like where when people go to
> http://www.testsite.com/preview/contactus/index.html we strip out
> the "/preview" from the URL (i assume i can change this via
> $r->uri... and change the document root from
>
At 06:41 17.05.2002, Gregory Matthews wrote:
>Hello All.
>
>I am trying to install Apache::DB and am getting the following error:
>
>+
>
> > make test
>cc -c-DVERSION=\"0.06\" -DXS_VERSION=\"0.06\" -DPIC -fpic
>-I/usr/libdata/perl/5.00503/mach/CORE DB.c
>In file included from /u
> Is there a way to do this? The documentation does not have any reference
> to be able to change the document root (just get it via
> $r->document_root).
see recipe 4.3 in the cookbook for a description of $r->document_root
and the perils involved. the minimum you should be aware of is tha
> The 'staged' version of their site is stored in a different directory,
> and if i could just changed the document_root dynamically, most(?) of
> our issues would be over.
>
> Is there a way to do this? The documentation does not have any reference
> to be able to change the document root (just g
Jie Gao wrote:
> Hi all,
>
> I've been trying to get httpd-2.0.35 + mod_perl-1.99_01 work with backward
> compatibility.
>
> MY startupl.pl:
>
> #! /usr/bin/perl
> use lib '/usr/lib/perl5/site_perl/5.6.1/i386-linux/Apache2';
> use strict;
> use Apache::compat ();
> use Apache2 ();
> use My::Aut
>See Chapter 4, "Handling Errors", in the Eagle book.
Great Thomas, I have a working handler now. Thanks very much to Thomas
and everyone else who replied with suggestions.
Jonathan M. Hollin - WYPUG Co-ordinator
West Yorkshire Perl User Group
http://wypug.pm.org/
http://wypug.digital-word.co
Hi All,
We are currently building a mod_perl application that has a content
management component in it.
After editing a page, we want to be able to give people a 'Preview your
site' ability where they are view a 'preview/staged' mode of their site.
The 'staged' version of their site is stored
Gregory Matthews wrote:
> Hello All.
>
> I am trying to install Apache::DB and am getting the following error:
>
> +
>
> > make test
> cc -c-DVERSION=\"0.06\" -DXS_VERSION=\"0.06\" -DPIC -fpic
> -I/usr/libdata/perl/5.00503/mach/CORE DB.c
> In file included from /usr/include/
Hello!
Here some details of my httpd.conf
PerlTaintcheck On
Alias /perl/ /home/httpd/perl/
PerlModule Apache::Registry
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
PerlSendHeader On
PerlModule newdate::index
29 matches
Mail list logo