As a followup to the original question, what I'm really looking for is for my homepage (index.html) to be served when you go to http://mynginx.example.com, *not* the nginx default page.by zharvey - Nginx Mailing List - English
I am brand new to nginx and have it running on a VM (mynginx.example.com) and running. I am trying to get it to serve content under /opt/mysite (where the homepage is located at /opt/mysite/index.html). Below is the nginx.conf that I'm using: user www-data; worker_processes 4; pid /run/nginx.pid; events { worker_connections 768; } http { senby zharvey - Nginx Mailing List - English
I am trying to see if nginx (OSS, not commercial) can be used not only as a load balancer, but as a network router/switch in the event that I need to shut my app down and redirect traffic to a CDN/static page, etc. I was hoping to find a REST API that might allow me to configure routing rules on the fly but alas, I see nothing. Does nginx provide this functionality out of the box? Or can I pby zharvey - Nginx Mailing List - English