You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by titetluc titetluc <ti...@gmail.com> on 2009/02/11 12:47:30 UTC

Using mod_perl in a non httpd environment

Hello all,

I wrote a mod_perl module managing FORM authentication (and a lot of other
things).
This module had to run on a platform (router) with a lot of memory/CPU.
These last days, our marketing team changed the platform definition (few
memory, cheap CPU) !!!!
In other words, apache/mod_perl/my_module will not be used as is on the new
platform.

My questions: is there a way to run mod_perl/my_module on an HTTP
server/reverse proxy other than apache ?
If so, what kind of HTTP server/reverse proxy ?

Thanks

Re: Using mod_perl in a non httpd environment

Posted by Perrin Harkins <pe...@elem.com>.
On Wed, Feb 11, 2009 at 6:47 AM, titetluc titetluc <ti...@gmail.com> wrote:
> I wrote a mod_perl module managing FORM authentication (and a lot of other
> things).
> This module had to run on a platform (router) with a lot of memory/CPU.
> These last days, our marketing team changed the platform definition (few
> memory, cheap CPU) !!!!

How much?  I've run mod_perl comfortably on machines that look pretty
small by today's standards.

> My questions: is there a way to run mod_perl/my_module on an HTTP
> server/reverse proxy other than apache ?
> If so, what kind of HTTP server/reverse proxy ?

Apache is a fast, small, and efficient HTTP server.  It can run in
tiny amounts of RAM.  Your problem here is Perl, which, like most
high-level languages, uses a lot of memory.  If you have to work in a
really tight space, I'd suggest rewriting your module as an apache
module in C.

- Perrin

Re: Using mod_perl in a non httpd environment

Posted by Michael Peters <mp...@plusthree.com>.
titetluc titetluc wrote:

> My questions: is there a way to run mod_perl/my_module on an HTTP 
> server/reverse proxy other than apache ?
> If so, what kind of HTTP server/reverse proxy ?

mod_perl is an Apache module written to the Apache API. Like every other Apache module, it will only 
work under Apache. The only exception would be if someone wrote a compatibility layer between some 
other HTTP server and Apache, but that would almost certainly not save you any memory.

-- 
Michael Peters
Plus Three, LP