Skip to content

Instantly share code, notes, and snippets.

@randy-johnson
Created August 23, 2011 00:35
Show Gist options
  • Save randy-johnson/1164013 to your computer and use it in GitHub Desktop.
Save randy-johnson/1164013 to your computer and use it in GitHub Desktop.
ProxyPass / Railo / Tomcat URL Rewriting
ProxyPreserveHost On
ProxyPass /dealers/ !
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
RewriteEngine On
ProxyRequests Off
RewriteCond %{REQUEST_URI} !^.*/(fancybox|flex2gateway|jrunscripts|cfide|cfformgateway|railo-context|files|images|javascripts|miscellaneous|stylesheets|robots.txt|sitemap.xml|rewrite.cfm|index.cfm|favicon.ico|ckfinder|ckeditor|assets|product-images|store|dealers)($|/.*$) [NC]
RewriteRule "^/(.*)" ajp://localhost:8009/rewrite.cfm/$1 [P,QSA,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment