Difference between revisions of "/etc/nginx/sites-enabled/default"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
Line 1: | Line 1: | ||
*<code>[[apt install nginx]]</code> | *<code>[[apt install nginx]]</code> | ||
+ | |||
+ | Ubuntu default: | ||
+ | <pre> | ||
+ | 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; | ||
+ | } | ||
+ | } | ||
+ | </pre> | ||
==See also== | ==See also== |
Revision as of 10:27, 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; } }
See also
- Web server: Nginx:
/etc/nginx/nginx.conf
,nginx -t
, Nginx logs, Nginx change log, PHP,php-fpm
, Let's encrypt, Nginx directives, Reverse Proxy, Configure HTTP redirection Nginx, Return,proxy_pass (Reverse proxy)
,ngx_http_rewrite_module
,/etc/nginx/sites-enabled/
,error.log
,access.log
,/nginx status
, AIO
Advertising: