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

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 3: Line 3:
 
Ubuntu default:
 
Ubuntu default:
  
  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;

Revision as of 17:11, 31 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: