how to check default path of the nginx 1

how to check default path of the nginx

#nginx configuration file
$ nano /etc/nginx/sites-available/default

Here is what the above code is Doing:
1. We’re telling Nginx to listen on port 80.
2. We’re telling Nginx to use the /var/www/html directory as the root directory.
3. We’re telling Nginx to use index.html as the default file to serve.
4. We’re telling Nginx to serve static files directly.
5. We’re telling Nginx to pass PHP requests to the PHP processor.
6. We’re telling Nginx to pass requests for missing files to index.php.

Similar Posts