Nginx: Difference between revisions
Jump to navigation
Jump to search
m
server_name
imported>Sjwhitak m (Grammar) |
imported>Sjwhitak m (server_name) |
||
listen [::]:80;
}
The [https://nginx.org/en/docs/http/ngx_http_core_module.html#server_name <code>server_name</code>]
The [https://nginx.org/en/docs/http/ngx_http_core_module.html#root <code>root</code>] directive tells nginx where to serve files. So, inside <code>/var/www/html</code>, you'll want to have an <code>index.html</code> file in there, or more. Everything inside <code>/var/www/html</code> will be served via nginx.
|