%%
date:: [[2024-01-08]]
parent::
%%
# [[Installing Nginx on Ubuntu]]
%%
Last Updated:
- [[2021-02-09]]
%%
## Install Nginx using the package manager
`sudo apt-get update` to fetch the full list of software that can be installed with the package manager.
`sudo apt-get install nginx`
## Enable HTTP traffic
Configure your web server's firewall, if you've enabled it, to allow incoming HTTP traffic.
`sudo ufw allow 'Nginx HTTP'`
## Access your server from the internet
If it's a web server you're building, access it by typing its IP address into your browser. You should get the Nginx default landing page.
![[Nginx landing page.png]]
## See also
- [[Nginx]]
- [[DigitalOcean]]
- [[Installing an SSL certificate on Nginx server with Let's Encrypt and Certbot]]
- [[Setting up server blocks on Nginx]]