Skip to content

Instantly share code, notes, and snippets.

@jackwilsdon
Created September 7, 2018 15:55
Show Gist options
  • Save jackwilsdon/6c4214ae88a6b9d344d9fc05feab8c64 to your computer and use it in GitHub Desktop.
Save jackwilsdon/6c4214ae88a6b9d344d9fc05feab8c64 to your computer and use it in GitHub Desktop.
<Directory "/var/www/vhosts/*">
AllowOverride All
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /var/www/vhosts/.*?/(.*) /index.php/$1 [L]
Options Indexes FollowSymLinks
Require all granted
</Directory>
<VirtualHost *>
ServerAlias *.jack
VirtualDocumentRoot /var/www/vhosts/%-2+
LogLevel debug
<IfModule mod_headers.c>
<FilesMatch "\.(html?|js|json|css|map)$">
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
Header set X-Outgoing-Says "Don't worry! This file isn't cached :)"
</FilesMatch>
</IfModule>
<IfModule mod_env.c>
SetEnv WSENVIRONMENT development
</IfModule>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment