Last active
December 29, 2015 11:09
-
-
Save jtrobman/7661586 to your computer and use it in GitHub Desktop.
Apache config to render all Drupal files from www except CSS and JS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ProxyPassMatch .+/files/(css|js)/.+ ! | |
ProxyPassMatch ^/sites/(.+)/files/(.+)$ http://www.$1/sites/$1/files/$2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Similar rule for nginx
Nate show me this for apache a few days ago, the best tip of the year. Thank you !