Skip to content

Instantly share code, notes, and snippets.

@paivaric
Created December 5, 2013 11:48
Show Gist options
  • Save paivaric/7804036 to your computer and use it in GitHub Desktop.
Save paivaric/7804036 to your computer and use it in GitHub Desktop.
Apache configuration to disable cache and rewrite url to other domain/server like tomcat
<FilesMatch "\.*$">
ExpiresActive On
ExpiresDefault A1
Header append Cache-Control must-revalidate
</FilesMatch>
RewriteEngine On
# RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/rest/(.*)$ http://localhost:8080/doccon-view/rest/$1 [R,L] # Temporary Move
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment