Skip to content

Instantly share code, notes, and snippets.

@mynameislau
Created February 2, 2017 10:37
Show Gist options
  • Save mynameislau/59ec0bf069f086d810d8fed5560373b0 to your computer and use it in GitHub Desktop.
Save mynameislau/59ec0bf069f086d810d8fed5560373b0 to your computer and use it in GitHub Desktop.
<VirtualHost *:8080>
ServerName localhost
ServerAlias truc.127.0.0.1.nip.io
ServerAlias truc.*.127.0.0.1.nip.io
ServerAlias *.truc.127.0.0.1.nip.io
DocumentRoot "${WWW_ROOT}"
DirectoryIndex index.php
ErrorLog ${LOG_ROOT}/truc-error.log
CustomLog ${LOG_ROOT}/truc-access.log combined
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule \.(gif|jpe?g|png|bmp) /sites/all/themes/truc/images/blank.png [NC,L]
RewriteRule \.(pdf) /sites/all/themes/truc/images/blank.pdf [NC,L]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment