lighttpd forum migration > Apache mod_rewrite [P] (proxy) to lighttpd

Posted by Alexander Skwar
on 26.02.2008 14:28
Hello.

In my Apache configuration, I've got the following:

  RewriteRule ^/photos(.*) http://10.10.109.44:48443$1 [P]

What this does is, that any request to http://host.example/photos is
internally fetched by apache from http://10.10.109.44:48443. This way,
I don't have to directly expose the web server on 
http://10.10.109.44:48443
to the internet. And, additionally, I can have two web servers running
(Apache on port 80 and that other server on Port 48443) and users only
access port 80.

Can I somehow translate that configuration to lighttpd?

Thanks,
Alex
Posted by Anthony P.v.
on 03.03.2008 20:02
Alexander Skwar wrote:

> In my Apache configuration, I've got the following:
> 
>   RewriteRule ^/photos(.*) http://10.10.109.44:48443$1 [P]
> 
> What this does is, that any request to http://host.example/photos is
> internally fetched by apache from http://10.10.109.44:48443. This way,
> I don't have to directly expose the web server on 
> http://10.10.109.44:48443
> to the internet. And, additionally, I can have two web servers running
> (Apache on port 80 and that other server on Port 48443) and users only
> access port 80.
> 
> Can I somehow translate that configuration to lighttpd?

I too would like to know how to do this in lighttpd.

P.V.Anthony