Difference between revisions of "/etc/nginx/sites-enabled/default"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 5: Line 5:
 
  cat /etc/nginx/sites-available/default | grep -v "#" | grep .
 
  cat /etc/nginx/sites-available/default | grep -v "#" | grep .
 
  server {
 
  server {
         listen 80 default_server;
+
         [[listen]] 80 default_server;
 
         listen [::]:80 default_server;
 
         listen [::]:80 default_server;
 
         [[root]] [[/var/www/html]];
 
         [[root]] [[/var/www/html]];

Revision as of 10:31, 27 August 2021

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: