Re: Malformed header problem
ciccio4242 wrote: Hi, See my interspersed print statement below. Read up on HTTP Headers how apache/mod_perl deals with them and why static files are different. #!/usr/bin/perl print Content-Type: text/html\n\n; print \n; print !DOCTYPE html PUBLIC \-//W3C//DTD HTML 4.01 Transitional//EN\\n\n; print html\n; print head\n; print meta content=\text/html; charset=ISO-8859-1\ http-equiv=\content-type\\n; print/head\n; print body\n; print HELLO\n; print /body\n; print /html\n; -- Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708 Consultant / http://p6m7g8.net/Resume/resume.shtml Senior Software Engineer - TicketMaster - http://ticketmaster.com 1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F It takes a minute to have a crush on someone, an hour to like someone, and a day to love someone, but it takes a lifetime to forget someone...
Where do the warn message go? (Ap2 MP2 on Win32)
Hi, I'm currently running Apache 2.0.54 with MP 2.0.2, on Win32. When I'm doing a print STDERR "Hello\n";warn "Hello\n"; at server startup, i.e.in a Perl block in httpd.cong, both messages go to the console, and to error.log as well. But when I'm doing the same thing within a script (handleed by ModPerl::Registry), these message don't appear anywhere. So, I'm wondering where they get redirected? The fact I'm running that under Win32 (threaded MPMs) may be important? Thanks, Lionel.
Re: Where do the warn message go? (Ap2 MP2 on Win32)
Lionel MARTIN wrote: Hi, I'm currently running Apache 2.0.54 with MP 2.0.2, on Win32. When I'm doing a print STDERR Hello\n; warn Hello\n; at server startup, i.e.in a Perl block in httpd.cong, both messages go to the console, and to error.log as well. But when I'm doing the same thing within a script (handleed by ModPerl::Registry), these message don't appear anywhere. So, I'm wondering where they get redirected? The fact I'm running that under Win32 (threaded MPMs) may be important? http://httpd.apache.org/docs/2.0/mod/mod_cgi.html#scriptlog Bill
Re: Where do the warn message go? (Ap2 MP2 on Win32)
Thanks, I'm sorry, but I may have misled you: I said script, but I'm not talking about CGI scripts here. In fact, even when puttting my warn $msg; in a custom MP handler, the message doesn't go to the error log. So, I'd like to understand when the content of the warn message is going. (please have a look at the details below for the original question) - Original Message - From: William A. Rowe, Jr. [EMAIL PROTECTED] To: Lionel MARTIN [EMAIL PROTECTED] Cc: modperl@perl.apache.org Sent: Thursday, May 04, 2006 12:28 PM Subject: Re: Where do the warn message go? (Ap2 MP2 on Win32) Lionel MARTIN wrote: Hi, I'm currently running Apache 2.0.54 with MP 2.0.2, on Win32. When I'm doing a print STDERR Hello\n; warn Hello\n; at server startup, i.e.in a Perl block in httpd.cong, both messages go to the console, and to error.log as well. But when I'm doing the same thing within a script (handleed by ModPerl::Registry), these message don't appear anywhere. So, I'm wondering where they get redirected? The fact I'm running that under Win32 (threaded MPMs) may be important? http://httpd.apache.org/docs/2.0/mod/mod_cgi.html#scriptlog Bill
Re: mod_proxy_add_forward
Hi, I'm using mod_rpaf for many years. I think it can provide you with same functionality and it is very easy to setup and compile. http://stderr.net/apache/rpaf/ Kepi David Romero wrote: Hi I need the client ip on a backend server. docs say. that i need the mod_proxy_add_forward.c module for apache, but i not find the module. the web page http://develooper.com/code/mpaf/ send Forbidden error Some one can share to me this module? Or have other ways to obtain the client ip on a backend server (mod_proxy - mod_perl) Thanks on advantage.
Re: mod_proxy_add_forward
David Romero wrote: Hi I need the client ip on a backend server. Plain old mod_proxy will pass along the ip in an X-Forwarded-For header. Regards, Michael Schout
modperl Apache keeps freezing up
My modperl Apache keeps freezing up every few days. When it freezes up, here's what ps looks like: $ ps ux --width= USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND shoujoai 29179 0.0 0.2 8036 5928 ?Ss May03 0:00 /usr/local/perlhttpd/bin/httpd -f /home/shoujoai/httpd/httpd.conf shoujoai 30337 0.0 0.9 21344 18728 ? SMay03 0:02 /usr/local/perlhttpd/bin/httpd -f /home/shoujoai/httpd/httpd.conf shoujoai 14289 0.0 1.0 23708 21156 ? SMay03 0:36 /usr/local/perlhttpd/bin/httpd -f /home/shoujoai/httpd/httpd.conf shoujoai 14366 0.0 0.9 22168 19584 ? SMay03 0:25 /usr/local/perlhttpd/bin/httpd -f /home/shoujoai/httpd/httpd.conf shoujoai 17662 0.0 0.9 21656 19132 ? SMay03 0:19 /usr/local/perlhttpd/bin/httpd -f /home/shoujoai/httpd/httpd.conf shoujoai 26427 0.0 0.9 21364 18836 ? SMay03 0:06 /usr/local/perlhttpd/bin/httpd -f /home/shoujoai/httpd/httpd.conf When I try to telnet to it, it goes like this: $ telnet localhost 8002 Trying 127.0.0.1... then it hangs for a few minutes before this: Connected to localhost.localdomain. Escape character is '^]'. Then if I try to do an HTTP request: GET /server-status HTTP/1.1 Host: www.shoujoai.com it'll hang for another few minutes and then it just does: Connection closed by foreign host. Any ideas what's going on? The access_log showed normal traffic patterns up until the time it froze then it just stops: 206.57.89.207 - - [03/May/2006:23:44:04 -0500] GET /forum/board_show.pl?bid=12 HTTP/1.0 200 15098 http://www.shoujoai.com/forum/forum_show.pl; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 (ax) 68.107.121.19 - - [03/May/2006:23:44:04 -0500] GET /forum/board_show.pl?bid=7;pg=2 HTTP/1.0 200 15752 http://www.shoujoai.com/forum/board_show.pl?bid=7; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 70.244.35.23 - - [03/May/2006:23:44:05 -0500] GET /forum/forum_search.pl HTTP/1.0 200 6525 http://www.shoujoai.com/forum/board_show.pl?bid=12; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.3; .NET CLR 1.1.4322) If I kill and restart the Apache then it's fine but it'll freeze up in a few days again. I'm perplexed.