The original post: /r/nginx by /u/mbuhlayaw on 2025-02-10 14:13:20.
I’m new with nginx. From workplace requirements, I have been ordered to build nginx as a jump host server which will function as a reverse proxy. The webserver application which needs to be accessed is located in other web server, I’ll use alias f050i.corp for the website name which needs to be accessed by users. I have built the Ubuntu VM, and installed nginx. I have checked some online documents how to enable the reverse proxy by creating configuration file in /etc/nginx/sites-available, as per below.
server { listen 80; server_name example.com *.example.com;
access_log /var/log/nginx/reverse-access.log;
error_log /var/log/nginx/reverse-error.log;
location / {
proxy_pass http://127.0.0.1:5001;
} }
Based on my requirements which I mentioned above, for the server_name what will be the value? Is this the Ubuntu VM IP address which I created? Also for the proxy_pass value, is this the website page f050i.corp?