For the complete documentation index, see llms.txt. This page is also available as Markdown.

NGINX

01. NGINX Reverse Proxy

  • Basic Setup

## ------------------| Setup
sudo apt-get update
sudo apt-get install nginx
sudo systemctl enable nginx
sudo systemctl restart nginx

## ------------------| Config Headers
## sudo vi /etc/nginx/proxy_params
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

## ------------------| Configuration
## sudo vi /etc/nginx/sites-available/h4rithd.com
server {
    listen 80;
    server_name h4rithd.com www.h4rithd.com dev.h4rithd.com;
    
    location / {
            proxy_pass http://127.0.0.1:8080;
            include proxy_params;
    }
}

## ------------------| Enable the site
sudo ln -s /etc/nginx/sites-available/your_domain /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx
  • SSL Setup

02. Exploits

Last updated