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
Install Docker on Debain 10 December 21, 2021 Installing Docker The Docker installation package available in the official Debian repository may not be the latest version. To ensure we get the latest version, we’ll install Docker from the official Docker repository. To do that, we’ll add a new package source, add the GPG key from Docker to ensure… Read More
Install MySQL 5.7 on Ubuntu 20.04 January 9, 2024 Prerequisites Linux servers running Ubuntu 20.04 root privileges Step 1 – Add MySQL APT repository in Ubuntu Ubuntu already comes with the default MySQL package repositories. In order to add or install the latest repositories, we are going to install package repositories . Download the repository using the below command:… Read More
Install LEMP with phpmyadmin on CentOS 7 November 20, 2017 To add the CentOS 7 EPEL repository, open terminal and use the following command: yum install epel-release Since we are using a sudo command, these operations get executed with root privileges. It will ask you for your regular user’s password to verify that you have permission to run commands with root privileges…. Read More