Skip to content

Instantly share code, notes, and snippets.

@bennoislost
bennoislost / gist:7938146
Created December 13, 2013 00:31
varnish hit / miss
sub vcl_deliver {
if (obj.hits > 0) {
set resp.http.X-Varnish-Cache = "HIT"
}
else {
set resp.http.X-Varnish-Cache = "MISS"
}
}
@bennoislost
bennoislost / magento2_install.sh
Last active October 5, 2016 10:51
Magento install
bin/magento setup:install \
--backend-frontname "admin" \
--session-save "files" \
--db-host "127.0.0.1" \
--db-name "magento2_magento_local" \
--db-user "root" \
--db-engine "innodb" \
--db-password "password" \
--skip-db-validation \
--base-url "http://magento2.dev/" \
@bennoislost
bennoislost / vagrant_proxy.conf
Last active December 15, 2015 17:19
Apache2 Reverse Proxy - include this file as part of your apache config
#
# Vagrant Proxy
#
# Make sure the following modules are enabled
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so