Nginx: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 31: Line 31:
| valign="top" |
| valign="top" |
<source lang="bash">
<source lang="bash">
sudo ufw status
sudo ufw app list
sudo ufw allow 'Nginx HTTP'
sudo ss -tulpn    | grep LISTEN
sudo ss -tulpn    | grep LISTEN
sudo lsof -i -P -n | grep LISTEN
sudo lsof -i -P -n | grep LISTEN

Revision as of 10:45, 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 ufw status
sudo ufw app list
sudo ufw allow 'Nginx HTTP'
sudo ss -tulpn     | grep LISTEN
sudo lsof -i -P -n | grep LISTEN

References