A reverse proxy sits between users and your backend services.
🔹 Why Use Reverse Proxy?
- Security
- Load balancing
- SSL termination
🔹 Nginx Example
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://127.0.0.1:3000;
}
}
🔹 Apache Example
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
🔹 Use Cases
- WordPress behind proxy
- Docker services exposure
- Internal dashboards