Nginx Virtual host not working on Ubuntu 16 after apt update
My html location is
/var/www/html/
and the sub domains(api.example.com, portal.example.com) were working fine until last week when I did apt update and install.
For now its not looking at the desired root location but at /usr/local/nginx/html and showing the default nginx index.html file.
Not sure how I can fix this issue? Can someone please help
1 Reply
@vignesh8veeran It sounds like you want NGINX to use a specific root location. You should be able to accomplish this by specifying the desired directory in the location block of this site's NGINX configuration. NGINX's official documentation can walk you through how to configure these changes. You might also find some additional help from our How to Configure NGINX guide.
Let us know if you have any additional questions!