Nginx: Difference between revisions
Jump to navigation
Jump to search
→Initial setup
imported>Sjwhitak (→TLS) |
imported>Sjwhitak |
||
</syntaxhighlight>
{{Note|If that's all you want, don't use nginx; it'd be easier to write a [https://funprojects.blog/2021/04/11/a-web-server-in-1-line-of-bash/ single-lined Bash script] to run a single page.
In <code>/etc/nginx/nginx.conf</code>, <code>/etc/nginx/conf.d/*.conf</code> and <code>/etc/nginx/sites-enabled/*</code> are included. Therefore, if you have a complicated set up, you can split up your configuration among multiple files.
To test your configuration,
To test your configuration, <code>nginx -t</code> will tell you what syntax is wrong if there happens to be any. For instance, some directives can't be certain areas.▼
{{RootCmd|nginx -t}}
▲
== A single domain ==
|