# nginx default page, installed by the n.wtf package

nginx is
running.

If you can read this, the web server is serving requests. Replace this page with your own site whenever you are ready.

n.wtf build / debian & ubuntu / this server
next-steps.sh
# the page you are looking at
$ ls /var/www/html
index.nginx-debian.html
# point the default server at your own files
$ sudo nano /etc/nginx/sites-enabled/default
# check the syntax, then apply it
$ sudo nginx -t
$ sudo systemctl reload nginx
$

Where things live

This build follows the Debian layout, so every path below is where you would expect it on a Debian or Ubuntu system.

/etc/nginx/nginx.conf

Main configuration. Pulls in conf.d, modules-enabled and sites-enabled.

/etc/nginx/sites-enabled/

Active server blocks, symlinked from sites-available.

/etc/nginx/modules-enabled/

Dynamic modules loaded at startup, one load_module per file.

/var/www/html/

Document root of the default server block, including this page.

/var/log/nginx/

access.log and error.log, rotated by logrotate.

/usr/share/nginx/html/

Package copy of this page. The postinst script seeds /var/www/html from it.

Next steps

Four things worth knowing before you put this server in front of real traffic.

Read the full guide

service.sh
# is it up, and did it survive the last reload sudo systemctl status nginx # start, stop, restart sudo systemctl start nginx sudo systemctl stop nginx sudo systemctl restart nginx # bring it back on boot sudo systemctl enable nginx

Running the latest nginx mainline.

n.wtf tracks upstream releases and packages them for Debian and Ubuntu, with TLS 1.3, HTTP/3, Brotli, Zstd and more built in.