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

From wikieduonline
Jump to navigation Jump to search
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
*<code>[[apt install nginx]]</code>  
 
*<code>[[apt install nginx]]</code>  
 +
 +
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 ==
 +
* <code>[[/etc/nginx/nginx.conf]]</code>
 +
* [[Welcome to nginx!]]
  
 
==See also==
 
==See also==
*{{Nignx}}
+
* {{nginx.conf}}
 +
* {{Nginx}}
  
 
[[Category:Networking]]
 
[[Category:Networking]]

Latest revision as of 12:39, 21 October 2021

Advertising: