Nginx: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
  sudo apt install haproxy
  sudo apt install nginx
 
==Reverse Proxy==
<source lang="text">
location /minio/ {
  proxy_set_header Host $http_host;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_buffering on;
  proxy_buffer_size 8k;
  proxy_buffers 2048 8k;
  proxy_redirect off;
  proxy_pass http://127.0.0.1:9801;
}
</source>


==Knowledge==
==Knowledge==

Revision as of 10:43, 4 April 2023

sudo apt install nginx

Reverse Proxy

location /minio/ {
   proxy_set_header Host $http_host;
   proxy_set_header X-Forwarded-Proto $scheme;
   proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
   proxy_buffering on;
   proxy_buffer_size 8k;
   proxy_buffers 2048 8k;
   proxy_redirect off;
   proxy_pass http://127.0.0.1:9801;
}

Knowledge

ufw status
netstat -a
netstat -lpn
apt install ufw
apt install nmap
apt install telnet
apt list --installed
netstat -uap|grep nginx
sudo ss -tulpn     | grep LISTEN
sudo lsof -i -P -n | grep LISTEN

References