Nginx directory list allow Rumi, December 19, 2024 location /somedirectory/ { autoindex on; autoindex_exact_size off; autoindex_format html; autoindex_localtime on; } Continue Reading
Install Nginx Proxy Manager on CentOS 7 Rumi, November 22, 2023 Nginx Proxy Manager is built on docker container. So, we need to deploy Docker first. Update Docker Package Database. In a terminal window, type: sudo yum check-update Allow the operation to complete. Remove if any docker is preinstalled with your OS- sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate… Continue Reading
Nginx Reverse Proxy with Sub Directory Mapping Rumi, May 30, 2023May 30, 2023 Setup Note: My web application has a sub-directory, 192.168.1.8:8088/messages, that I want to expose to the outside world as messages.mysite.com. I’ve gotten half way there but I seem to be stuck. My requirements are as follows Redirect the site from HTTP to HTTPS. As I cannot edit the links the… Continue Reading
Build WAF with Reverse Proxy Load Balancer using Nginx Rumi, November 16, 2022 Getting Started First, it is recommended to update and upgrade all your software packages to the latest version. You can update all of them by running the following command: apt update -y apt upgrade -y Once all the packages are updated, install other required packages with the following command: apt… Continue Reading
Using NGinx to serve static files and Apache for dynamic Rumi, September 6, 2019 Apache is a great web-server, but it has a pretty heavy memory footprint. It can get quite restrictive quite quickly, especially if you’re on a system will limited resources (given how many people now run on a VPS, and the poor disk IO of these systems it’s all the more… Continue Reading
NGINX as a Reverse Proxy Rumi, August 30, 2019 Configure NGINXPermalink At this point, you could configure Node.js to serve the example app on your Linode’s public IP address, which would expose the app to the internet. Instead, this section configures NGINX to forward all requests from the public IP address to the server already listening on localhost. Basic Configuration… Continue Reading
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 } } Continue Reading
DNS UDP Load Balancer using Nginx Rumi, June 14, 2018March 12, 2023 The plan is to build a DNS- UDP load balancer DNS recursive server (actually forwarding service). The design logic is simple- On client side a public recursive+forwarding DNS IP –> hits the Nginx Load Balancers –> sends traffic to Google Public DNS/IBM Public DNS/Own recursive DNS/OpenDNS. The configuration is quite… Continue Reading
Nginx upstream timed out Rumi, April 22, 2018 There are two main directives responsible for Nginx upstream timed out (110: Connection timed out) error: proxy_read_timeout – Defines a timeout for reading a response from the proxied server. Default is 60 seconds. location ~ ^/slow-proxy { proxy_read_timeout 180; # <— proxy_pass …; } * you can use proxy_read_timeout inside… Continue Reading
Set Up Nginx Load Balancing with SSL Termination Rumi, March 23, 2018 Nginx can be configured as a load balancer to distribute incoming traffic around several backend servers. SSL termination is the process that occurs on the load balancer which handles the SSL encryption/decryption so that traffic between the load balancer and backend servers is in HTTP. The backends must be secured… Continue Reading