modperl with SSL

2008-03-24 Thread J. Peng
hello list, we have our own realserver called QHttpd. This realserver doesn't support SSL protocal (https). So I have to develop a proxy before QHttpd to get it be compatible with SSL. I was thinking using modperl handler to do it. modperl accept the SSL connection from clients, do the

Re: return DECLINED or OK?

2008-02-29 Thread J. Peng
On Fri, Feb 29, 2008 at 7:03 PM, Torsten Foertsch [EMAIL PROTECTED] wrote: Example continued: The entry /var/www/a/b exists on disk either as file or as directory but /var/www/a/b/c does not. Then after MapToStorage $r-filename is /var/www/a/b and $r-path_info is /c/d/e. Sorry I can't

Re: return DECLINED or OK?

2008-02-29 Thread J. Peng
On Fri, Feb 29, 2008 at 8:13 PM, Raymond Wan [EMAIL PROTECTED] wrote: Say you have a news site like: http://example.com/archive/news/2008/02/29/index.html A user might request that, but it wouldn't make sense to have 365 index.html's every year (ok, 366 this year :-) ). Instead, you

Re: return DECLINED or OK?

2008-02-29 Thread J. Peng
On Fri, Feb 29, 2008 at 9:52 PM, Raymond Wan [EMAIL PROTECTED] wrote: I think you'll pick it up in time and one starting point is to write some sample code and try things out... I have written lots of modperl codes actually,:) But I primarilly write with AccessHandler or ResponseHandler,

Re: MapToStorage and the use of path_info (was Re: return DECLINED...)

2008-02-29 Thread J. Peng
I'm still confused why we need a path_info for the additional info to CGI/modperl scripts? Generally under CGI we say x.cgi?key=value to pass arguments, under modperl handler we say /myHandler/?key=value to do it, or using POST method. Under what case we use path_info? //joy On Sat, Mar 1, 2008

Re: MapToStorage and the use of path_info (was Re: return DECLINED...)

2008-02-29 Thread J. Peng
On Sat, Mar 1, 2008 at 1:37 PM, Raymond Wan [EMAIL PROTECTED] wrote: Not a very technical answer, but maybe an easy way of thinking of things. The second scenario also makes it possible for Google, etc. to index your web pages since it is a real URL. In the first case, it is possible,

Re: need to write a fitler based on request header

2008-02-28 Thread J. Peng
On Thu, Feb 28, 2008 at 8:30 PM, Torsten Foertsch [EMAIL PROTECTED] wrote: On Thu 28 Feb 2008, J. Peng wrote: currently I write it with PerlAccessHandler, it also works. is it right with this handler? Do you want to send a redirect to the browser (HTTP code 3xx)? I use apache's inner

Re: need to write a fitler based on request header

2008-02-28 Thread J. Peng
So as I've said, you can't rewrite the request based on Accept-Encoding header.Is it? Thanks. On Thu, Feb 28, 2008 at 8:30 PM, Torsten Foertsch [EMAIL PROTECTED] wrote: On Thu 28 Feb 2008, J. Peng wrote: no, mod_rewrite can't rewrite requests based on Accept-Encoding header. yes

Re: return DECLINED or OK?

2008-02-28 Thread J. Peng
Thanks to all. That really be helpful.

Re: return DECLINED or OK?

2008-02-28 Thread J. Peng
On Fri, Feb 29, 2008 at 11:26 AM, Geoffrey Young [EMAIL PROTECTED] wrote: they usually alter the uri then let the default apache trans handler do the mapping. btw, mapping uri to disk sources in apache2 was done in MapToStorageHandler rather than Trans handler, is it?

need to write a fitler based on request header

2008-02-27 Thread J. Peng
Hello members, I need to write an input filter based on the request headers. If request includes a Accept-Encoding: gzip, deflate header, I should redirect the request to /pathA. If request doesn't include that header, I should redirect the request to /pathB. (pathA and pathB are web document

Re: Amazon

2008-02-26 Thread J. Peng
I like Perl than others. once a company wanted to hire me and gave me much higher salary than the current job. But one of their conditions is not permit to use perl, but use python instead. I'm familiar with python too, but I hate that clause. So I gave up that job finally.:) On Tue, Feb 26, 2008

Re: Amazon

2008-02-26 Thread J. Peng
coding from perl to python is easy,at least it's easy for me. but,as many guys have said to me, from python to perl is not easy. perl's many features,like the rich built-in variables and context,are not so easy to be accetable by newbies. //joy On Wed, Feb 27, 2008 at 12:50 AM, Aaron Trevena

Re: Amazon

2008-02-23 Thread J. Peng
modperl is fast, but it consumes too much memory. so we choose fastcgi written by C++. On Sat, Feb 23, 2008 at 10:49 PM, Roberto C. Sánchez [EMAIL PROTECTED] wrote: On Sat, Feb 23, 2008 at 06:25:42PM +1100, Jie Gao wrote: Choosing java for better performance would certainly be a joke. If a

Re: Amazon

2008-02-23 Thread J. Peng
On Sat, Feb 23, 2008 at 11:08 PM, Tina Müller [EMAIL PROTECTED] wrote: offtopic: On Sat, 23 Feb 2008, J. Peng wrote: modperl is fast, but it consumes too much memory. so we choose fastcgi written by C++. actually it consumes less memory than FastCGI if you do it right. If you load

Re: AP2.2.7 + MP2.0.3 on Win32

2008-01-17 Thread J. Peng
thanks, good note. On Jan 14, 2008 5:12 PM, Foo JH [EMAIL PROTECTED] wrote: Hi all, Just want to slap a quick note that I've tried the following combo on Win32 platform (Windows 2003 Server x86): Apache 2.2.7 from ApacheLounge (apachelounge.com) modperl 2.0.3 from theoryx5 (ppd) libapreq