Nginx Reverse Proxying Multiple Domains Using map Module Rumi, August 24, 2019 map_hash_bucket_size 128; map $http_host $backend_servers { hostnames; default www.example.com; frontend.example2.com backend.example2.com frontend.example3.com backend.example3.com www.example.org backend.example.org } proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; server { location / { proxy_pass http://$backend_servers } } Related Administrations Configurations (Linux) nginxReverse Proxy
CentOS: Configure Piranha as Load Balancer (Direct Routing Method) April 19, 2013 I am currently working on a web cluster project using CentOS. In this project, I have 2 web servers running on Apache and mounted the same document root to serve the HTTP content. I also have 2 servers in front of it to become the load balancer and failover to… Read More
Configuring Postfix to block outgoing mail to all but one domain September 6, 2019 This is so simple to do, but I have to look it up every time I need it (not something that comes up regularly!); When configuring a development server, you may find you have a need to ensure that emails will not be sent to any domain except those you… Read More
Fix on connecting to NFS server from Proxmox Centos 7/Debian Container January 7, 2018November 11, 2019 I hope you already know how to allow NFS from proxmox host server. if not, you may read my earlier post: NFS fix on LXC Host Server The fix works for Proxmox 4.x I was actually receiving a error like below: # mount -t nfsd nfsd /proc/fs/nfsd mount: nfsd is… Read More