Jump to content

Using Apache's proxy module for specific file types


Recommended Posts

Hello,

I'm trying to setup Apache to relay any requests for media files such as images and video using the proxy module. 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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.