/etc/nginx/sites-enabled/default

From wikieduonline
Revision as of 10:29, 27 August 2021 by Welcome (talk | contribs)
Jump to navigation Jump to search

Ubuntu default:

cat /etc/nginx/sites-available/default | grep -v "#" | grep .
server {
        listen 80 default_server;
        listen [::]:80 default_server;
        root /var/www/html;
        index index.html index.htm index.nginx-debian.html;
        server_name _;
        location / {
                try_files $uri $uri/ =404;
        }
}

Related files

See also

Advertising: