Host static website and api service on same server using nginx
I want to serve my static website and API service from same machine using nginx. Website is present in /var/www/html API service is running on port 8000 http://localhost should open static website http://localhost/api should proxy api service which is running…