RewriteEngine on # add some compression AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript # fastwww rewrite rules # slowserve these files RewriteRule ^(/mathdoxplayer/config/theme/theme.xsl) ajp://localhost:8009/$1 [P,L] # fastserve these files RewriteRule ^/mathdoxplayer/(util/jsmath.*) /mathdoxplayer-fastwww/$1 [P,L] RewriteRule ^/mathdoxplayer/(config/theme.*) /mathdoxplayer-fastwww/$1 [P,L] RewriteRule ^/mathdoxplayer/(images.*) /mathdoxplayer-fastwww/$1 [P,L] RewriteRule ^/mathdoxplayer/(applets.*) /mathdoxplayer-fastwww/$1 [P,L] RewriteRule ^/mathdoxplayer/(ops/javascript.*) /mathdoxplayer-fastwww/$1 [P,L] RewriteRule ^/mathdoxplayer/(player/mathdox/mathdox.css) /mathdoxplayer-fastwww/$1 [P,L] RewriteRule ^/mathdoxplayer/(.*jasymca.*class) /mathdoxplayer-fastwww/$1 [P,L] RewriteRule ^/mathdoxplayer/(formulaeditor.*) /mathdoxplayer-fastwww/$1 [P,L] RewriteRule ^(/mathdoxplayer/.*) ajp://localhost:8009/$1 [P,L]