This is my final set of RewriteRules. I've added one that specifically
tackles the /farcry or /farcry/ request. I'm sure these could be
improved and refined. If anyone finds or knows of anything better,
please post!

# Proxy access to railo
RewriteRule  ^/railo/admin/(.*)  
ajp://scottmebberson.local:8009/railo-context/admin/$1
[P]

# Handle static assets without rewrite:
RewriteRule  ^.*\.(bmp|gif|jpe?g|ico|png|css|js|txt|pdf|doc|xls|xml)$
-  [L]

# Pass site root request directly to Tomcat:
RewriteRule  ^/?$ ajp://scottmebberson.local:8009/  [P]

# Proxy CFML requests to Tomcat (if file exists):
RewriteCond  %{DOCUMENT_ROOT}/$1  -f
RewriteRule  ^/(.*\.cf[cm]l?)(/.*)?$  ajp://scottmebberson.local:8009/$1$2
[P]

# Proxy /farcry directly to tomcat
RewriteRule  ^/farcry/?$  ajp://scottmebberson.local:8009/farcry/index.cfm
[L,P]

# Friendly URLs for FarCry
RewriteCond %{REQUEST_URI} !(^/farcry|^/webtop|^/flex2gateway|^/
flashservices|^/CFIDE)($1/)
RewriteRule ^([a-zA-Z0-9\/\-\%:\[\]\{\}\|\;\<\>\?\,\*...@\#\$\ \(\)
\^_`~]*)$ ajp://scottmebberson.local:8009/index.cfm?furl=$1  [L,P,QSA]

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to