nginx_serverblock
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
nginx_serverblock [2017/11/27 09:53] – luke7858 | nginx_serverblock [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | First we need to **/ | + | === Basic HTTP-only nginx server_block === |
+ | \\ | ||
+ | First we need to edit **/ | ||
This guide will show how to configure server blocks in the same manner as Ubuntu apache vhosts, using sites-available and sites-enabled. | This guide will show how to configure server blocks in the same manner as Ubuntu apache vhosts, using sites-available and sites-enabled. | ||
\\ | \\ | ||
Line 27: | Line 29: | ||
location / { | location / { | ||
index index.html index.htm index.php; | index index.html index.htm index.php; | ||
+ | try_files $uri $uri/ =404; | ||
} | } | ||
nginx_serverblock.1511776424.txt.gz · Last modified: 2024/05/23 07:26 (external edit)