Re: Problems with Apache::ASP, SSI/Filter, and Redirects
Joshua Chamas wrote: Your exact config worked for me, I have the latest installed of everything ( 2.07 is latest ASP ) and I got: CPAN only has 2.03... I would check the error_log, The error log didn't give anything (except the "need AuthName" warning). and double check that you have EVERYTHING built for mod_perl failing there being anything in the error_log. I triple checked it. In fact, I did a make distclean and rebuilt Apache/mod_perl just to make sure. I get the same results. -m -- ## Mark T. Dame: mailto:[EMAIL PROTECTED] ## WWW: http://www.mfm.com/~mdame/ ## MFM Communication Software: http://www.mfm.com/ "The opposed thumb is one of the defining characteristics of our species, and mine are strongly opposed to working pointing devices." -- Bill Machrone, PC Magazine, Sep. 28, 1993, discussing miniature trackballs
Re: Problems with Apache::ASP, SSI/Filter, and Redirects
"Mark T. Dame" wrote: Joshua Chamas wrote: Your exact config worked for me, I have the latest installed of everything ( 2.07 is latest ASP ) and I got: CPAN only has 2.03... OK, I found and installed 2.07 and I get the same results... -m -- ## Mark T. Dame: mailto:[EMAIL PROTECTED] ## WWW: http://www.mfm.com/~mdame/ ## MFM Communication Software: http://www.mfm.com/ "The opposed thumb is one of the defining characteristics of our species, and mine are strongly opposed to working pointing devices." -- Bill Machrone, PC Magazine, Sep. 28, 1993, discussing miniature trackballs
Problems with Apache::ASP, SSI/Filter, and Redirects
We have a strange problem using Redirects with Apache::ASP 2.03. With this in the .htaccess file: # .asp files for Session state enabled Files ~ (\.asp) SetHandler perl-script PerlHandler Apache::ASP PerlSetVar CookiePath / PerlSetVar Global /path/to/asp/directory PerlSetVar StateDir /path/to/state/directory /Files the following works correctly: $Response-Redirect("/index.html"); However, if we change the .htaccess file to set up ASP to handle SSI: # .asp files for Session state enabled Files ~ (\.asp) SetHandler perl-script PerlHandler Apache::ASP Apache::SSI PerlSetVar Filter On PerlSetVar CookiePath / PerlSetVar Global /path/to/asp/directory PerlSetVar StateDir /path/to/state/directory /Files it doesn't work. Here is the result from each: (with first .htaccess file) % telnet test.site.com 80 Trying x.x.x.x... Connected to test.site.com. Escape character is '^]'. get /test.asp HTTP/1.0 HTTP/1.1 302 Found Date: Tue, 12 Dec 2000 17:03:13 GMT Server: Apache/1.3.14 (Unix) mod_perl/1.24_01 mod_ssl/2.7.1 OpenSSL/0.9.5a Set-Cookie: session-id=6f995b76dccf9e0a96533aa2aacd3b60; path=/ Location: /index.html Cache-Control: private Connection: close Content-Type: text/html Connection closed by foreign host. (with second .htaccess file) % telnet test.site.com 80 Trying x.x.x.x... Connected to test.site.com. Escape character is '^]'. get /test.asp HTTP/1.0 Connection closed by foreign host. We have Apache::Filter version 1.011 and Apache::SSI version 2.13. Any ideas? -m -- ## Mark T. Dame: mailto:[EMAIL PROTECTED] ## WWW: http://www.mfm.com/~mdame/ ## MFM Communication Software: http://www.mfm.com/ "You watch this door, it's about to open again. I can tell by the intolerable air of smugness it suddenly generates." -- The Hitchhiker's Guide to the Galaxy, Douglas Adams: Marvin
Apache::ASP and @INC
Hello all. According to the docs for Apache::ASP (http://www.nodeworks.com/asp/config.html#Global), the Global directory and the IncludesDir directory will be added to @INC so you can 'use' and 'require' perl modules in these directories. This doesn't seem to be working for me. I have a simple ASP file: html head titleTest/title /head body % use TestModule; my $r = Apache-request; my $c = $r-connection; my $host = $c-remote_host; my $user = $c-user; % Host: %=$host%br User: %=$user%br /body /html TestModule.pm is in /var/www/htdocs/asp. This script fails with: [Tue Apr 11 13:10:51 2000] [error] [asp] [12553] [error] Can't locate TestModule.pm in @INC (@INC contains: /var/www/perllib /var/www/perllib /var/www/perllib /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 . /usr/local/ /usr/local/lib/perl) at (eval 187) line 8. -- BEGIN failed--compilation aborted at (eval 187) line 8. -- , /usr/lib/perl5/site_perl/5.005/Apache/ASP.pm line 1180 If I add this right before the 'use TestModule;' use lib "/var/www/htdocs/asp"; It works fine. I'm using Apache::ASP version 0.18, perl 5.005_03, mod_perl 1.21, and Apache version 1.3.9. Anyone have any ideas? -m -- ## Mark T. Dame: mailto:[EMAIL PROTECTED] ## WWW: http://www.mfm.com/~mdame/ ## MFM Communication Software: http://www.mfm.com/ "Our aim is to show the essential elements of the language in real programs, but without getting bogged down in detail, rules, and exceptions." -- The C Programming Language, Kernighan and Ritchie
Re: Apache::ASP and @INC
"Mark T. Dame" wrote: Hello all. According to the docs for Apache::ASP (http://www.nodeworks.com/asp/config.html#Global), the Global directory and the IncludesDir directory will be added to @INC so you can 'use' and 'require' perl modules in these directories. This doesn't seem to be working for me. I have a simple ASP file: html head titleTest/title /head body % use TestModule; my $r = Apache-request; my $c = $r-connection; my $host = $c-remote_host; my $user = $c-user; % Host: %=$host%br User: %=$user%br /body /html TestModule.pm is in /var/www/htdocs/asp. This script fails with: [Tue Apr 11 13:10:51 2000] [error] [asp] [12553] [error] Can't locate TestModule.pm in @INC (@INC contains: /var/www/perllib /var/www/perllib /var/www/perllib /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 . /usr/local/ /usr/local/lib/perl) at (eval 187) line 8. -- BEGIN failed--compilation aborted at (eval 187) line 8. -- , /usr/lib/perl5/site_perl/5.005/Apache/ASP.pm line 1180 If I add this right before the 'use TestModule;' use lib "/var/www/htdocs/asp"; It works fine. I'm using Apache::ASP version 0.18, perl 5.005_03, mod_perl 1.21, and Apache version 1.3.9. Anyone have any ideas? I guess I should have added my .htaccess file too. Here's the relevant part: PerlSetVar Global /var/www/htdocs/asp PerlSetVar StateDir /var/www/aspstate PerlSetVar StateDB DB_File PerlSetVar StatINC 1 PerlSetVar CookiePath / PerlSetVar UseStrict 1 Files ~ (\.asp) SetHandler perl-script PerlHandler Apache::ASP /Files -m -- ## Mark T. Dame: mailto:[EMAIL PROTECTED] ## WWW: http://www.mfm.com/~mdame/ ## MFM Communication Software: http://www.mfm.com/ "The future has arrived; it's just not evenly distributed." -- William Gibson