Re: mod_accel reverse proxying?

2001-12-27 Thread Igor Sysoev

On Thu, 27 Dec 2001, Philip Mak wrote:

> Does mod_accel have a reverse proxying directive (similar to the
> ProxyPassReverse directive in mod_proxy) in order to make redirects work?

Yes, AccelPass automatically handles reverse proxying in
"Location" and "Refresh" headers.

> I believe the "AccelPass" directive automatically handles reverse
> proxying, but what if I used RewriteRule instead:
> 
> RewriteRule ^(.*)\.asp$ http://127.0.0.1:8001/$1.asp [L,P]
> 
> That does not setup reverse proxying for me...

Yes, it doesn't. It's difficult to figure proxied URL parts in mod_rewrite
so I have to make explicit directive to specify reverse rewrite.
I will make it today or tomorrow.
I think it should have reverse syntax:

AccelReverse  http://127.0.0.1:8001/   /

Or not ? Of course it complicates porting from mod_proxy to mod_accel
but I think it's clearer then ProxyPassReverse syntax.

Igor Sysoev




Re: how to access the perl file from palm top

2001-12-27 Thread A. Farber

Maybe http://www.samag.com/documents/s=1131/sam05040004/



Re: PerlEditor - Freeware or Trialware

2001-12-27 Thread Franck PORCHER

or 'vim', as a matter of personnal preferences, and like Emacs, part of any Linux 
distibution.

On Tue, 25 Dec 2001, Chris Jones wrote:

> Anand Ratnasabapathy wrote:
> >
> > Can any one help me with a Nice Editor for
> > working on Perl-cgi,
>
> Emacs.  http://www.gnu.org/software/emacs/emacs.html




CGI module bug, Internet Explorer 6 problems and workaround...

2001-12-27 Thread Rob Mueller (fastmail)



We've just recently started having problems 
with some people using Internet Explorer 6 to access our web-site. Basically 
they would receive an error message like:
 
The XML page cannot be displayed Cannot 
view XML input using style sheet. Please correct the error and then click the 
Refresh button, or try again later. 
 
A string literal was expected, but no opening quote character was found. 
Error processing resource 'http://www.fastmail.fm/mail/login/'. Line 4, Position 
2 SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

 
After playing around for a while, I 
discovered that each web-page we were generating was XHTML, even though I 
had:
 
    use CGI 
qw(-no_xhtml);
 
in our code. More searching showed that the 
first page generated by a process was correctly "HTML 4.01 Transitional", but 
every page after that was XHTML.
 
Anyway, it turns out when you do something 
like:
 
    my $q = new 
CGI({});
 
In your code, it registers an Apache 
cleanup handler which clobbers all the global setup variables (eg $XHTML, 
$DEBUG, etc) after the first run. I've passed this on to Lincoln Stein who 
currently agrees with me that this is a bug. For the moment, I've added this to 
my code as a hack which works:
 
    $CGI::XHTML = 
0;

    my $q = new 
CGI({});
 
Hope this helps any people who encounter 
the same problem. Though it of course raises the question, is the XHTML 
incorrect in someway to cause IE to barf, or is IE barfing 
incorrectly?
 
Version information:
CGI Version: 2.79Perl Version: This is perl, v5.6.1 built for 
i686-linuxWeb server: Apache 1.3.22 with mod_perl 1.26
 
Rob
 


mod_accel reverse proxying?

2001-12-27 Thread Philip Mak

Does mod_accel have a reverse proxying directive (similar to the
ProxyPassReverse directive in mod_proxy) in order to make redirects work?

I believe the "AccelPass" directive automatically handles reverse
proxying, but what if I used RewriteRule instead:

RewriteRule ^(.*)\.asp$ http://127.0.0.1:8001/$1.asp [L,P]

That does not setup reverse proxying for me...




Apache::Cookie->expires under Windows

2001-12-27 Thread Alexei Danchenkov

Hi, All,
I posted a message on the subject a little earlier, but apparently I need
to learn more.

The Apache::Cookie->expires as below adds unwanted information
(header dump attached) to the date and subsequently does not want to
bake ($cookie->bake).

This is the code:
my $cookie = Apache::Cookie->new( $r, -name=>"access",
-value=>$cookie{"access"}->value, -expires=>'+20m' );

I run ActiveState Perl under the Win32 (WinME) with mod_perl 1.26
under Apache 1.3.22. Whether I run it on the Linux or use CGI::Cookie
everything goes just fine. What's so wrong with Windows or the script
or mod_perl (libapreq) that this happens?
Cheers, Alexei
mailto:[EMAIL PROTECTED]




Re: how to access the perl file from palm top

2001-12-27 Thread Brendan W. McAdams

Most Cellphones use WAP/WML format.

It's a highly simplified markup language with limited functionality;
there may be mod_perl modules out there to handle it.

You could try a google search for WML (Wireless Markup Language); it's
been a while since i did anything with it and don't have any resources
handy.

On Thu, 2001-12-27 at 06:18, SubbaReddy M wrote:
> Hello Gurus,
> 
> I have apache with mod-perl env. on Redhat linux 6.2 and mysql as backend.
> Written perl script that fetch the data from mysql database and generate the
> dynamic page to view
> from PC based browser.
> >>>
> 
> #!/usr/bin/perl -w
> use CGI qw(:standard);
> use DBI;
> $driver = "mysql";
> $database = "MsgBoard";
> $user = "root";
> $password = "";
> $host = "127.0.0.1";
> $port = "";
> $dsn = "DBI:$driver:database=$database;host=$host;port=$port";
> $dbh = DBI->connect($dsn, $user, $password,{'RaiseError' => 1});
> $drh = DBI->install_driver("mysql");
> 
> my $cgiQuery = new CGI;
> print $cgiQuery->header,start_html("check user");
> $myTable = "UNAME";
> $sth = $dbh->prepare("Select uname From $myTable WHERE uname =
> 'required user' ");
> 
>  if (!$sth)
> {
>$ERROR="Error:" . $dbh->errstr." Network Failed by Your
> request";
> }
>  if (!$sth->execute)
> {
>   $ERROR="Error: " . $dbh->errstr;
> }
>   $sth->bind_columns( undef,\$uid);
>   $sth->fetch();
> 
> print " $uid user found ";
> $cgiQuery->end_html;
> 
> >
> But, now I want to access the same file from Palm top and Cell phone.
> 
> What is content-type and in what format the page need to generate to access
> from the Palm top?
> and from Cell phone?
> 
> If Generate the XML data repository using perl script, to view from Palm top
> what are the parser need to use at Palm top and server.
> 
> Kindly, please give me suggestion and if any examples.
> 
> Thanks  in advance.
> 
> ~ SubbaReddy .M
-- 
Brendan W. McAdams | [EMAIL PROTECTED]
Senior Applications Developer  | (646) 375-1140
TheMuniCenter, LLC | www.themunicenter.com

"Always listen to experts. They'll tell you what can't be done, and why.
Then do it."
- Robert A. Heinlein

rm -rf /bin/laden; chmod a+rwx /dev/freedom




msg23838/pgp0.pgp
Description: PGP signature


how to access the perl file from palm top

2001-12-27 Thread SubbaReddy M

Hello Gurus,

I have apache with mod-perl env. on Redhat linux 6.2 and mysql as backend.
Written perl script that fetch the data from mysql database and generate the
dynamic page to view
from PC based browser.
>>>

#!/usr/bin/perl -w
use CGI qw(:standard);
use DBI;
$driver = "mysql";
$database = "MsgBoard";
$user = "root";
$password = "";
$host = "127.0.0.1";
$port = "";
$dsn = "DBI:$driver:database=$database;host=$host;port=$port";
$dbh = DBI->connect($dsn, $user, $password,{'RaiseError' => 1});
$drh = DBI->install_driver("mysql");

my $cgiQuery = new CGI;
print $cgiQuery->header,start_html("check user");
$myTable = "UNAME";
$sth = $dbh->prepare("Select uname From $myTable WHERE uname =
'required user' ");

 if (!$sth)
{
   $ERROR="Error:" . $dbh->errstr." Network Failed by Your
request";
}
 if (!$sth->execute)
{
  $ERROR="Error: " . $dbh->errstr;
}
  $sth->bind_columns( undef,\$uid);
  $sth->fetch();

print " $uid user found ";
$cgiQuery->end_html;

>
But, now I want to access the same file from Palm top and Cell phone.

What is content-type and in what format the page need to generate to access
from the Palm top?
and from Cell phone?

If Generate the XML data repository using perl script, to view from Palm top
what are the parser need to use at Palm top and server.

Kindly, please give me suggestion and if any examples.

Thanks  in advance.

~ SubbaReddy .M



Re: irc

2001-12-27 Thread Philippe M. Chiasson

On Wed, Dec 26, 2001 at 11:07:46PM -0800, brian moseley wrote:
> On Wed, 26 Dec 2001, Philippe M. Chiasson wrote:
> 
> > I am usually on rhizomatic, and #mod_perl sounds pretty
> > good to me.
> 
> there's folks on both #mod_perl and #modperl. let's drop
> #mod_perl, cos the other is easier to type.
> 
> who runs rhizomatic? do they have a standard channel
> registration process? can somebody in the know make that all
> happen?

Leon Brocard is taking care of a big part of it, I'll drop
him a note about this, but I am not sure there is really
a process for anything on rhizomatic

> sweet!
> 



Philippe M. Chiasson /gozer\@(cpan|ectoplasm)\.org/ 88C3A5A5 (122FF51B/C634E37B)
http://gozer.ectoplasm.org/F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3 A5A5
Q: It is impossible to make anything foolproof because fools are so ingenious.
perl -e'$$=\${gozer};{$_=unpack(P7,pack(L,$$));/^JAm_pH\n$/&&print||$$++&&redo}'



msg23836/pgp0.pgp
Description: PGP signature