This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Helicon Ape
 Helicon Tech : Helicon Ape
Subject Topic: ReplaceFilterDefine multiple mimetypes Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mhaslhofer
Newbie
Newbie


Joined: 05 January 2012
Online Status: Offline
Posts: 2
Posted: 05 January 2012 at 9:40am | IP Logged Quote mhaslhofer

Hi,

i need to use mod_replace for multiple mimetypes (text/html,text/css,text/xml) to reverseproxy an Ajax application.

the "intype" parameter in mod_replace does only take one mimetype. I tried using "text" or "text/*" or "text/.*" to match all text-types - but that didn't work.

I can't define multiple ReplaceFilters (for different mime-types) - the last ReplaceFilter, set via "SetEnv modreplace=<filtername>" overrules the other filters.

I tried to use "SetEnvIfNoCase Mime ^text/xml modreplace=xmlfilter" but that didn't work either (i guess that modreplace is executed, before Mime - Header is available)

Is there another way to solve this, other than using Request_URI - matching in combination with "SetEnvIf" ?

cheers,

moritz

Back to Top View mhaslhofer's Profile Search for other posts by mhaslhofer
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -149
Posted: 06 January 2012 at 7:11am | IP Logged Quote Guests

try using smth like:

Code:
ReplaceFilterDefine revproxy CaseIgnore intype=text/
ReplacePattern revproxy "(http|https)://origin.server/" "\1://revproxy/"
SetEnv mod_replace revproxy


Regards
Andrew
Back to Top View Guests's Profile Search for other posts by Guests
 
mhaslhofer
Newbie
Newbie


Joined: 05 January 2012
Online Status: Offline
Posts: 2
Posted: 09 January 2012 at 8:02am | IP Logged Quote mhaslhofer

Hi Andrew,

"text/" did work

thank you very much!

cheers,

moritz

Back to Top View mhaslhofer's Profile Search for other posts by mhaslhofer
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum