cvs commit: modperl-2.0 Changes
dougm 2002/09/27 08:11:21 Modified:.Changes Log: 1.99_06 release Revision ChangesPath 1.46 +1 -1 modperl-2.0/Changes Index: Changes === RCS file: /home/cvs/modperl-2.0/Changes,v retrieving revision 1.45 retrieving revision 1.46 diff -u -r1.45 -r1.46 --- Changes 16 Sep 2002 19:14:16 - 1.45 +++ Changes 27 Sep 2002 15:11:21 - 1.46 @@ -8,7 +8,7 @@ =over 3 -=item 1.99_06-dev +=item 1.99_06 - September 25, 2002 add support for pod directives (=pod,=back,=cut) and __END__ directive [Philippe M. Chiasson [EMAIL PROTECTED]]
cvs commit: modperl-2.0/lib mod_perl.pm
dougm 2002/09/27 08:18:37 Modified:.Changes lib mod_perl.pm Log: bump version Revision ChangesPath 1.47 +2 -0 modperl-2.0/Changes Index: Changes === RCS file: /home/cvs/modperl-2.0/Changes,v retrieving revision 1.46 retrieving revision 1.47 diff -u -r1.46 -r1.47 --- Changes 27 Sep 2002 15:11:21 - 1.46 +++ Changes 27 Sep 2002 15:18:37 - 1.47 -8,6 +8,8 =over 3 +=item 1.99_97-dev + =item 1.99_06 - September 25, 2002 add support for pod directives (=pod,=back,=cut) and __END__ directive 1.7 +1 -1 modperl-2.0/lib/mod_perl.pm Index: mod_perl.pm === RCS file: /home/cvs/modperl-2.0/lib/mod_perl.pm,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- mod_perl.pm 20 Aug 2002 16:49:12 - 1.6 +++ mod_perl.pm 27 Sep 2002 15:18:37 - 1.7 -4,7 +4,7 use strict; BEGIN { -our $VERSION = 1.9906; +our $VERSION = 1.9907; } 1;
cvs commit: modperl-2.0/t/response/TestDirective pod.pm
dougm 2002/09/27 12:33:33 Modified:.Changes lib/ModPerl TestRun.pm t/response/TestDirective pod.pm Log: Submitted by: gozer Reviewed by: dougm fix =pod directive test config problem Revision ChangesPath 1.48 +4 -1 modperl-2.0/Changes Index: Changes === RCS file: /home/cvs/modperl-2.0/Changes,v retrieving revision 1.47 retrieving revision 1.48 diff -u -r1.47 -r1.48 --- Changes 27 Sep 2002 15:18:37 - 1.47 +++ Changes 27 Sep 2002 19:33:32 - 1.48 @@ -8,7 +8,10 @@ =over 3 -=item 1.99_97-dev +=item 1.99_07 - September 25, 2002 + +fix =pod directive test config problem +[Philippe M. Chiasson [EMAIL PROTECTED]] =item 1.99_06 - September 25, 2002 1.4 +13 -0 modperl-2.0/lib/ModPerl/TestRun.pm Index: TestRun.pm === RCS file: /home/cvs/modperl-2.0/lib/ModPerl/TestRun.pm,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- TestRun.pm27 Aug 2002 04:31:55 - 1.3 +++ TestRun.pm27 Sep 2002 19:33:32 - 1.4 @@ -47,6 +47,19 @@ MyOtherTest value /Location EOF + +#XXX: this should only be done for the modperl-2.0 tests +$self-postamble('EOF'); +=pod +This is some pod data +=over apache +PerlSetVar TestDirective__pod_over_worked yes +=back +This is some more pod +=cut +PerlSetVar TestDirective__pod_cut_worked yes +EOF + } 1; 1.2 +0 -13 modperl-2.0/t/response/TestDirective/pod.pm Index: pod.pm === RCS file: /home/cvs/modperl-2.0/t/response/TestDirective/pod.pm,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- pod.pm17 Sep 2002 02:37:44 - 1.1 +++ pod.pm27 Sep 2002 19:33:32 - 1.2 @@ -22,16 +22,3 @@ } 1; -__END__ -=pod -This is some pod data - -=over apache -PerlSetVar TestDirective__pod_over_worked yes -=back - -This is some more pod - -=cut - -PerlSetVar TestDirective__pod_cut_worked yes
cvs commit: modperl-2.0/lib mod_perl.pm
dougm 2002/09/27 12:41:51 Modified:.Changes lib mod_perl.pm Log: bump version Revision ChangesPath 1.49 +2 -0 modperl-2.0/Changes Index: Changes === RCS file: /home/cvs/modperl-2.0/Changes,v retrieving revision 1.48 retrieving revision 1.49 diff -u -r1.48 -r1.49 --- Changes 27 Sep 2002 19:33:32 - 1.48 +++ Changes 27 Sep 2002 19:41:50 - 1.49 -8,6 +8,8 =over 3 +=item 1.99_08-dev + =item 1.99_07 - September 25, 2002 fix =pod directive test config problem 1.8 +1 -1 modperl-2.0/lib/mod_perl.pm Index: mod_perl.pm === RCS file: /home/cvs/modperl-2.0/lib/mod_perl.pm,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- mod_perl.pm 27 Sep 2002 15:18:37 - 1.7 +++ mod_perl.pm 27 Sep 2002 19:41:51 - 1.8 -4,7 +4,7 use strict; BEGIN { -our $VERSION = 1.9907; +our $VERSION = 1.9908; } 1;
ProxyRewrite configuration
I'm having problem with the ProxyRewrite configuration. My enviroment is: Internal Site: http://a.a.a.a/site External Site (The proxy server): http://b.b.b.b/site I'd like to configure a Reverse Proxy so that all resquests to http://b.b.b.b/site would be redirected to http://a.a.a.a/site. So first I tried the Apache module mod_proxy with the configuration at the httpd.conf. --- ProxyRequests Off ProxyPass /site http://a.a.a.a/site ProxyPassReverse /site http://b.b.b.b/site Everything worked fine. But the problem was with the embedded URLs. The mod_proxy doen't change them. So that's why I'm trying to use the ProxyRewrite module. I put the following lines at the end of the httpd.conf: Location /site SetHandler perl-script PerlHandler Apache::ProxyRewrite PerlSetVar ProxyTo http://a.a.a.a/site PerlSetVar ProxyAuthInfo BASIC aGb2c3ewenQ6amF4szzmY3b= PerlSetVar ProxyAuthRedirect Off PerlSetVar ProxyRewrite http://a.a.a.a/ = / /Location -- What I see is that all the embedded URLs that begin with http://a.a.a.a/; are changed to /. So the links works well but the redirects that I have in my CGI scripts doesn't work. The server don't find the page. Exemple of redirect on my CGI scripts written with perl: print redirect(http://a.a.a.a/site/cgi-bin/.cgi;); As I don't have a DNS, I tried to change the line: PerlSetVar ProxyRewrite http://a.a.a.a/ = / To: PerlSetVar ProxyRewrite http://a.a.a.a/ = http://b.b.b.b/; But the embedded URLs are still changed to /. I can't understand. Can anyone help me? I'd be very grateful. I think that my problem is very simple. I'd like to configure a Reverse Proxy that changes the embedded URLs too, not only the Location URL. Thank you very much. --- Rodney A. Ramos
RE: ProxyRewrite configuration
This seems to be more of a general apache thing. I try never to use the domain name/IP anywhere that isn't totally necessary. So, instead of: print redirect(http://a.a.a.a/site/cgi-bin/.cgi;); Why not: print redirect(/site/cgi-bin/.cgi); This way, there is no need to hardcode the domain/IP information -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 1:32 PM To: [EMAIL PROTECTED] Subject: ProxyRewrite configuration I'm having problem with the ProxyRewrite configuration. My enviroment is: Internal Site: http://a.a.a.a/site External Site (The proxy server): http://b.b.b.b/site I'd like to configure a Reverse Proxy so that all resquests to http://b.b.b.b/site would be redirected to http://a.a.a.a/site. So first I tried the Apache module mod_proxy with the configuration at the httpd.conf. --- ProxyRequests Off ProxyPass /site http://a.a.a.a/site ProxyPassReverse /site http://b.b.b.b/site Everything worked fine. But the problem was with the embedded URLs. The mod_proxy doen't change them. So that's why I'm trying to use the ProxyRewrite module. I put the following lines at the end of the httpd.conf: Location /site SetHandler perl-script PerlHandler Apache::ProxyRewrite PerlSetVar ProxyTo http://a.a.a.a/site PerlSetVar ProxyAuthInfo BASIC aGb2c3ewenQ6amF4szzmY3b= PerlSetVar ProxyAuthRedirect Off PerlSetVar ProxyRewrite http://a.a.a.a/ = / /Location -- What I see is that all the embedded URLs that begin with http://a.a.a.a/; are changed to /. So the links works well but the redirects that I have in my CGI scripts doesn't work. The server don't find the page. Exemple of redirect on my CGI scripts written with perl: print redirect(http://a.a.a.a/site/cgi-bin/.cgi;); As I don't have a DNS, I tried to change the line: PerlSetVar ProxyRewrite http://a.a.a.a/ = / To: PerlSetVar ProxyRewrite http://a.a.a.a/ = http://b.b.b.b/; But the embedded URLs are still changed to /. I can't understand. Can anyone help me? I'd be very grateful. I think that my problem is very simple. I'd like to configure a Reverse Proxy that changes the embedded URLs too, not only the Location URL. Thank you very much. --- Rodney A. Ramos
RE: ProxyRewrite configuration
I've already tried without the domain name/IP and I didn't have success. I don't use domain name/IP on my scripts. I did it only on the scripts that I want to redirect with the reverse proxy, as I was having problems whith the embedded URLs. Thanks for yuor help. --- Rodney A. Ramos Adam Nelson [EMAIL PROTECTED] em 27/09/2002 15:06:02 Para: [EMAIL PROTECTED], [EMAIL PROTECTED] cc: Assunto:RE: ProxyRewrite configuration This seems to be more of a general apache thing. I try never to use the domain name/IP anywhere that isn't totally necessary. So, instead of: print redirect(http://a.a.a.a/site/cgi-bin/.cgi;); Why not: print redirect(/site/cgi-bin/.cgi); This way, there is no need to hardcode the domain/IP information -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 1:32 PM To: [EMAIL PROTECTED] Subject: ProxyRewrite configuration I'm having problem with the ProxyRewrite configuration. My enviroment is: Internal Site: http://a.a.a.a/site External Site (The proxy server): http://b.b.b.b/site I'd like to configure a Reverse Proxy so that all resquests to http://b.b.b.b/site would be redirected to http://a.a.a.a/site. So first I tried the Apache module mod_proxy with the configuration at the httpd.conf. --- ProxyRequests Off ProxyPass /site http://a.a.a.a/site ProxyPassReverse /site http://b.b.b.b/site Everything worked fine. But the problem was with the embedded URLs. The mod_proxy doen't change them. So that's why I'm trying to use the ProxyRewrite module. I put the following lines at the end of the httpd.conf: Location /site SetHandler perl-script PerlHandler Apache::ProxyRewrite PerlSetVar ProxyTo http://a.a.a.a/site PerlSetVar ProxyAuthInfo BASIC aGb2c3ewenQ6amF4szzmY3b= PerlSetVar ProxyAuthRedirect Off PerlSetVar ProxyRewrite http://a.a.a.a/ = / /Location -- What I see is that all the embedded URLs that begin with http://a.a.a.a/; are changed to /. So the links works well but the redirects that I have in my CGI scripts doesn't work. The server don't find the page. Exemple of redirect on my CGI scripts written with perl: print redirect(http://a.a.a.a/site/cgi-bin/.cgi;); As I don't have a DNS, I tried to change the line: PerlSetVar ProxyRewrite http://a.a.a.a/ = / To: PerlSetVar ProxyRewrite http://a.a.a.a/ = http://b.b.b.b/; But the embedded URLs are still changed to /. I can't understand. Can anyone help me? I'd be very grateful. I think that my problem is very simple. I'd like to configure a Reverse Proxy that changes the embedded URLs too, not only the Location URL. Thank you very much. --- Rodney A. Ramos
access_log numbers lower than expected....
I'm using mod_perl, and am getting some inaccurate numbers in my access_log file. for example, i have the google search engine on my page (http://www.euroseek.com), they are claiming our number of searches are 200,000 per day. However, my log file only shows about 18,000 queries for the search.cgi script. Is there any possibility that the search.cgi is cached and not reporting accurate numbers to the access_log? Just curious. Thanks, Anthony E. = Anthony Ettinger [EMAIL PROTECTED] http://apwebdesign.com mobile: 415.385.0146 __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com
RE: access_log numbers lower than expected....
It's my understanding that unless you have setup something explicitly otherwise it would report even the cached accesses in your access_log. Are you rotating your script or anything like that? Are you sure all searches are going through that one file? Is it accounting for mutiple domains etc? -Ben -Original Message- From: Anthony E. [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 12:47 PM To: [EMAIL PROTECTED] Subject: access_log numbers lower than expected I'm using mod_perl, and am getting some inaccurate numbers in my access_log file. for example, i have the google search engine on my page (http://www.euroseek.com), they are claiming our number of searches are 200,000 per day. However, my log file only shows about 18,000 queries for the search.cgi script. Is there any possibility that the search.cgi is cached and not reporting accurate numbers to the access_log? Just curious. Thanks, Anthony E. = Anthony Ettinger [EMAIL PROTECTED] http://apwebdesign.com mobile: 415.385.0146 __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com
RE: access_log numbers lower than expected....
One possibility is that if you (or some process) edits the logfile in question while apache is running, logging will stop until you restart apache. You might consider logging directly from your mod_perl handler to a file or DB. Charles -Original Message- From: Anthony E. [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 1:47 PM To: [EMAIL PROTECTED] Subject: access_log numbers lower than expected I'm using mod_perl, and am getting some inaccurate numbers in my access_log file. for example, i have the google search engine on my page (http://www.euroseek.com), they are claiming our number of searches are 200,000 per day. However, my log file only shows about 18,000 queries for the search.cgi script. Is there any possibility that the search.cgi is cached and not reporting accurate numbers to the access_log? Just curious. Thanks, Anthony E. = Anthony Ettinger [EMAIL PROTECTED] http://apwebdesign.com mobile: 415.385.0146 __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com
ANNOUNCE: mod_perl-1.99_07
The URL http://perl.apache.org/dist/mod_perl-1.99_07.tar.gz has entered CPAN as file: $CPAN/authors/id/D/DO/DOUGM/mod_perl-1.99_07.tar.gz size: 610901 bytes md5: e1be9ce97a9fe52564d6b436dcacb375 Changes since 1.99_05: add support for pod directives (=pod,=back,=cut) and __END__ directive [Philippe M. Chiasson [EMAIL PROTECTED]] tweaks to support Test.pm 1.21 [Philippe M. Chiasson [EMAIL PROTECTED]] add $r-add_config method to add dynamic configuration at request time add Apache::DIR_MAGIC_TYPE constant add support for directive handlers fix source_scan to run with current httpd/apr add Apache::Server-add_config method to add dynamic configuration at server startup time add Apache::Directive-to_string method add support for pluggable Perl sections fix compilation probs with get_remote_host() that had a wrong prototype [Stas Bekman] Apache::SubProcess now has a manpage [Stas Bekman] fix the Apache::SubProcess tests to work with perlio-disabled Perl [Stas Bekman] fix the filehandle leak in APR::PerlIO (both perlio-disabled and perlio-enabled Perl) [Stas Bekman] remove dup() when converting filehandles from apr_file_t to FILE* under perlio-disabled Perl (APR::PerlIO) [Stas Bekman] fix compilation if apache/apr do not have thread support --- Enjoy, -Doug
newbie: apache, mod_perl, mod_ssl (openssl) installation...
quick question, probably a stupid one at that... do i need a secure certificate from thawte.com to install a secure server? if not, what's the point of the certificate? Can someone briefly explain the process... thanks __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com
ANNOUNCE: Bricolage 1.4.2
The Bricolage team would like to announce the release of Bricolage 1.4.2. This is a maintenance release that fixes several critical bugs in version 1.4.1. All users of earlier versions of Bricolage are strongly encouraged to upgrade. Bricolage is a full-featured, enterprise-class content management and publishing system. It offers a browser-based interface for ease-of use, a full-fledged templating system with complete programming language support for flexibility, and many other features. It operates in an Apache/mod_perl environment, and uses the PostgreSQL RDBMS for its repository. For a complete list of the changes, See Bric::Changes at http://bricolage.cc/docs/Bric/Changes.html. Learn more about Bricolage and download it from the Bricolage home page, http://bricolage.cc/. Enjoy! --The Bricolage Team
UTF8 character issue with Apache::Request?
Hi All- We are using Apache::Request to handle our uploads via the browser. Now that we switched to UTF-8 encoding any filename with Kanji in the filename uploads with a size of '0' and nothing goes to disk. Take the same file, put its name to roman chars and it uploads fine. All other file fields handle Kanji inputs without any problems, only TYPE=FILE bomb under Apache::Request. Has anyone else seen a problem with Apache::Request and kanji character filenames? # # Read and Encode the uploaded document # my $upload = $r-upload() ; my $fh = $upload-fh() ; my $info = $upload-info; my $size = $upload-size; $Title = $upload-filename ; print STDERR Size is $size\n if $debug ; if( $debug ) { while (my($key, $val) = each %$info) { print STDERR UPL:$key=$val\n ; } } while( $buf = $fh ) { $TEMP .= $buf ; } With Kanji filename : Size is 0 UPL:Content-Disposition=form-data; name=UPLOADFILE; filename=.DOC UPL:Content-Type=application/octet-stream Without Kanji filename Size is 306688 UPL:Content-Disposition=form-data; name=UPLOADFILE; filename=copy.DOC UPL:Content-Type=application/msword Any thoughts or input would be great. John-
RE: Help with Install
Thanks. The docs suggest not using the threaded version. Although I do not see why. anyway, i am stuck on the Apache install at the moment. -Original Message- From: Lester Vecsey [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 7:52 PM To: [EMAIL PROTECTED] Subject: Re: Help with Install prefork is the way it comes stock, what you probably want is mpm=worker for the threaded version. I notice there is also an option in ./configure called 'threadpool' for the mpm, but its not defined either there or in the website documentation.. i'm in the same boat as you though, trying to find the appropriate setup to use for apache 2.0. in my case i think i can get it working if /usr/bin/perl is my upgraded perl installation, but i'm so far testing with /usr/bin/perl-5.8.0 and /usr/bin/perl-5.8.0-threaded installed, with /usr/bin/perl still pointing to 5.6.0. I was able to get the perl modules DBD, sybase/freettds, etc, running on each of these three independent installations so now I'm trying to get modperl 1.99/2.0 built correctly with the latter two so I can compare mod_perl.so from the 5.8.0 threaded and non-threaded versions in different apache installations. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002
RE: newbie: apache, mod_perl, mod_ssl (openssl) installation...
Hey Anthony -- quick question, probably a stupid one at that... do i need a secure certificate from thawte.com to install a secure server? Not strictly. if not, what's the point of the certificate? The point is to raise $55 million so that Mark Shuttleworth can travel in space? Hehe... The serious reason is a bit more complicated. SSL provides encryption. That's the sole advantage for most uses. The third-party certificate vendors are not needed if all you want is encryption. Companies like Thawte/Verisign provide an additional facility: Authentication of the server to which you are sending data. In theory, they would prevent you from inadvertently submitting your super-secret data to amazone instead of amazon. Or something like that. In practice, the only real reason seems to be to prevent those annoying dialog boxes from popping up when you visit an unblessed SSL website. It's a protection racket if you ask me. Can someone briefly explain the process... To make your own self-signed certificate you run openssl: 1. Create a private key: $ openssl genrsa -out httpsd.key 1024 2. Create a Certificate Signing Request (CSR): $ openssl req -new -key httpsd.key -out httpsd.csr 2. Create self-signed certificate: $ openssl req -x509 -days 365 -in httpsd.csr -key httpsd.key -out httpsd.crt TTYL, -Jesse- -- Jesse Erlbaum The Erlbaum Group [EMAIL PROTECTED] Phone: 212-684-6161 Fax: 212-684-6226