Difference between revisions of "/etc/nginx/sites-enabled/default"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(4 intermediate revisions by the same user not shown) | |||
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; |
listen [::]:80 default_server; | listen [::]:80 default_server; | ||
[[root]] [[/var/www/html]]; | [[root]] [[/var/www/html]]; | ||
Line 17: | Line 17: | ||
== Related files == | == Related files == | ||
* <code>[[/etc/nginx/nginx.conf]]</code> | * <code>[[/etc/nginx/nginx.conf]]</code> | ||
+ | * [[Welcome to nginx!]] | ||
==See also== | ==See also== | ||
− | *{{Nginx}} | + | * {{nginx.conf}} |
+ | * {{Nginx}} | ||
[[Category:Networking]] | [[Category:Networking]] |
Latest revision as of 12:39, 21 October 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[edit]
See also[edit]
- Nginx:
nginx -t
,nginx.conf
,/etc/nginx/fastcgi.conf
, Nginx Sample Configurations,server
,ssl_certificate
,redirect
,return
,rewrite
,sendfile
,request_uri
,server_name
,listen
,/etc/nginx/snippets/
,/etc/nginx/sites-enabled/default
- 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: