Month: January 2017

How To Route SSL Traffic With Nginx

This is the code in /etc/nginx/conf.d/default.conf: server { listen 443; ssl on; server_name; ssl_certificate /var/lib/lxc/lxc_container/rootfs/etc/apache2/cert.crt; ssl_certificate_key /var/lib/lxc/lxc_container/rootfs/etc/apache2/cert.key; location / { proxy_pass; proxy_set_header X-Forwarded-Proto https; add_header Front-End-Https on; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_buffering off; proxy_redirect off; } } Note: nginx (on the main host) is using same ssl certificate as … Read more

How To Setup OpenVPN In Ubuntu14.04 LXC Behind Nginx Reverse Proxy With Squid Proxy Used As AdBlocker

The objective for today is: Setup OpenVPN in lxc in Ubuntu 14.04 Setup Squid Setup Nginx Reverse Proxy Block Ads With Squid This is not a step–by-step tutorial but an article full of detailed notes ad resources for the steps I’ve made to get this job done. So I’ve started from here: system Ubuntu 14.04 … Read more