Using Apache's proxy module for specific file types

Forum Index » Forums » Programming and Development
Author Message
Joined: Jul 17, 2008
Posts: 2
Other Topics
Posted Jul 17, 2008 at 11:23:13 PM
Subject: Using Apache's proxy module for specific file types
Hello everyone, I was reading the article found at: http://www.linux.com/articles/51673 (great read btw, very helpful) And a question came to mind. How would I go about specifying specific file types to go through lighttpd in the httpd.conf file? The code mentioned in the article is: [code]ProxyRequests Off ProxyPreserveHost On ProxyPass /images http://0.0.0.0:81/ ProxyPassReverse / http://0.0.0.0:81/ [/code] But I'd like to use a conditional statement to specify that all images with an extension of mp3, gif, jpg, bmp, png, etc, etc (any media) instead of simply those within the images folder. Unfortunately, I'm unaware if it's even possible to use some sort of condition in an httpd.conf file. (I'm thinking almost along the lines of what is possible in an .htaccess file) If this is infact not possible, would anyone have any suggestions for an alternative? Thank you for your time, Daniel St. Jules
Back to top Profile Email Website
Daniel St. Jules
Joined Jul 17, 2008
Posts: 2

Other Topics
Posted: Jul 18, 2008 4:48:39 AM
[code]ProxyRequests Off ProxyPreserveHost On ProxyPass .*\.(jpe?g|gif|bmp|png)$ http://0.0.0.0:81/ ProxyPassReverse / http://0.0.0.0:81/ [/code] Would something like this possibly work?
Back to top Profile Email Website
Forum Index » Forums » Programming and Development