← Back to all services
Reverse Proxy Lb

Nginx (as Reverse Proxy) - Default Port & Configuration

nginx-proxy systemctl: nginx

Nginx configured as reverse proxy/load balancer. Versatile and widely used.

🔌 Default Ports

80
tcp
HTTP
443
tcp
HTTPS

📦 Installation Command

apt install nginx (same as web server)

⚙️ Configuration Files

  • /etc/nginx/nginx.conf
  • /etc/nginx/sites-available/*
  • /etc/nginx/conf.d/upstream.conf

📂 Default Directories

  • config: /etc/nginx
  • data: N/A (proxy only)
  • logs: /var/log/nginx
  • upstream_configs: /etc/nginx/conf.d

🔐 Default Credentials

Username:N/A
Password:N/A
💡 No auth for proxy. Configure basic_auth or auth_request as needed.

⚠️ Conflicts

apache2 (same ports) Port: apache2Port: haproxy

✅ Works With

php-fpmnodejspython appsany HTTP backend

🛡️ Security Notes

Use upstream health checks, limit connections, enable caching, configure proper timeouts