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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.