httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tle...@quicknet.net
Subject Re: [users@httpd] ProxyPass as a handler
Date Wed, 19 Mar 2003 22:13:48 GMT
That's perfect!  Thanks! I'll let you know if I run in to any problems
w/it.

-Theron

On Wed, 19 Mar 2003, Joshua Slive wrote:

>
> On Wed, 19 Mar 2003 tlewis@quicknet.net wrote:
>
> > I am trying to increase our site performance by setting up an apache
> > server to serve all of the static content while using a seperate apache
> > server compiled with mod_perl to serve up the dynamic pages.  I am using
> > apache 1.3.27 with mod_ssl 2.8.12.
> >
> > Currently I have one server that spawns off approximately 150 apache
> > processes.  These processes take up between 200 and 350 meg of space each.
>
> Ouch!
>
> > I would like to do something like this:
> >
> > # mod_perl handler
> > AddProxyPassHandler .asp http://127.0.0.2/
> > AddProxyPassHandler .htm http://127.0.0.2/
> >
> > # mod_php handler
> > AddProxyPassHandler .php http://127.0.0.3/
> >
> > # iis server for legacy stuff (optional, but would be nice)
> > <Location /legacy>
> > # IIS server behind firewall for security
> > AddProxyPassHandler .asp http://192.168.1.22/
> > </Location>
>
> You need mod_rewrite:
>
> RewriteEngine On
> RewriteRule ^/legacy/(.*)\.asp http://192.168.1.22/legacy/$1.asp [P]
> RewriteRule (.*)\.asp$ http://127.0.0.2/$1.asp [P]
> RewriteRule (.*)\.htm$ http://127.0.0.2/$1.htm [P]
> RewriteRule (.*)\.php$ http://127.0.0.3/$1.php [P]
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message