Yannick PEREIRA-REIS bio photo

Yannick PEREIRA-REIS

Full stack web developer Symfony2, VueJs and AngularJs in Lyon (France), I also play with DevOps tools like Docker, Vagrant, Elasticsearch, Logstash, Kibana, Supervisor, ...

Twitter LinkedIn Github

Docker

Example configuration for haproxy.cfg

acl example-1 hdr(host) -i example-1.com
acl example-2 hdr(host) -i example-2.com

http-request redirect location https://www.%[hdr(host)]%[url]\r\nCache-Control:\ no-cache,\ no-store,\ max-age=0,\ must-revalidate code 301 if example-1 or example-2