Hello,
I assumed that this would be the appropriate location for this topic and question. If that's not the case, I apologize.
Anyway, to the topic at hand. I'm trying to setup lighttpd alongside Apache on my VPS. I'd like to have Apache relay any requests for media files such as images and video to lighttpd in order to improve performance. (simply removing Apache isn't an option) So, to do this, I need to modify the httpd.conf to include the proxy module, then add something along the lines of:
ProxyRequests Off
ProxyPreserveHost On
ProxyPass .*/.(jpe?g|gif|bmp|png)$ http://0.0.0.0:81/
ProxyPassReverse / http://0.0.0.0:81/
This was something I had whiped up, basing it on the idea that I could simply use conditions like an .htaccess file, but I have no idea if that's true or not as I haven't been able to find a read on what is permitted, or the "syntax" of the httpd.conf file. So, I was wondering if someone could confirm whether or not this is infact possible, or if I'm going about this all wrong. Any help would be greatly appreciated.
Thanks.