Dateien in Varnish invalidieren

Um in Varnish eine bestimmte Datei zu invalidieren, die bspw. unter mehreren URLs geliefert wird, kann man diese mittels „ban“-Befehl invalidieren.

Beispiel:
varnishadm ban req.url '~' 'DATEINAME\\.zip$'

Install Varnish with XKey on CentOS 7.x

#Install requirements
yum install autoconf automake jemalloc-devel libedit-devel libtool ncurses-devel pcre-devel pkgconfig python-docutils python-sphinx graphviz

#Download Varnish and install package
wget http://repo.varnish-cache.org/redhat/varnish-4.1/el7/x86_64/varnish/varnish-4.1.6-1.el7.x86_64.rpm
rpm -i varnish-4.1.6-1.el7.x86_64.rpm

#Download level-pack and install
wget http://repo.varnish-cache.org/redhat/varnish-4.1/el7/x86_64/varnish/varnish-devel-4.1.6-1.el7.x86_64.rpm
rpm -i varnish-devel-4.1.6-1.el7.x86_64.rpm

#Download modules and compile
wget https://github.com/varnish/varnish-modules/archive/master.zip
unzip master.zip
cd varnish-modules-master
./bootstrap
./configure
make
make check
make install

Plesk adjust customer


#Remove unwanted files
find . -name .svn -exec rm -rf '{}' \;
find . -name .svn -exec ls '{}' \;

#Change owner / group
chown -R USERNAME httpdocs
chgrp -R psacln httpdocs/*
chgrp psaserv httpdocs

#Change rights
chmod -R -s ./httpdocs/*
find ./httpdocs/ -type f -exec chmod 0644 {} \;
find ./httpdocs/ -type d -exec chmod 0755 {} \;