| 1 | <VirtualHost *:8888> |
|---|
| 2 | ServerAdmin paul@localhost |
|---|
| 3 | DocumentRoot "/Users/paul/Sites/clients/transition-network/transitionnetwork-org/www" |
|---|
| 4 | ServerName transitionnetwork-org.dev |
|---|
| 5 | ServerAlias *.transitionnetwork-org.dev |
|---|
| 6 | ErrorLog "/Users/paul/Sites/clients/transition-network/transitionnetwork-org/error_log" |
|---|
| 7 | CustomLog "/Users/paul/Sites/clients/transition-network/transitionnetwork-org/access_log" common |
|---|
| 8 | |
|---|
| 9 | RewriteEngine on |
|---|
| 10 | # Force image styles that have local files that exist to be generated. |
|---|
| 11 | RewriteCond %{REQUEST_URI} ^/sites/([^\/]*)/files/styles/[^\/]*/public/((.*))$ |
|---|
| 12 | RewriteCond %{DOCUMENT_ROOT}/sites/%1/files/%2 -f |
|---|
| 13 | RewriteRule ^(.*)$ $1 [QSA,L] |
|---|
| 14 | # Otherwise, send anything else that's in the files directory to the |
|---|
| 15 | # production server. |
|---|
| 16 | RewriteCond %{REQUEST_URI} ^/sites/[^\/]*/files/.*$ |
|---|
| 17 | RewriteCond %{REQUEST_URI} !^/sites/[^\/]*/files/css/.*$ |
|---|
| 18 | RewriteCond %{REQUEST_URI} !^/sites/[^\/]*/files/js/.*$ |
|---|
| 19 | RewriteCond %{REQUEST_FILENAME} !-f |
|---|
| 20 | RewriteCond %{REQUEST_FILENAME} !-d |
|---|
| 21 | RewriteRule ^(.*)$ http://www.transitionnetwork.org/$1 [QSA,L] |
|---|
| 22 | |
|---|
| 23 | </VirtualHost> |
|---|