sudo apt update sudo apt install nginx
systemctl status nginx
sudo chown -R www-data:www-data /var/www/html/Earthquakes
sudo chmod -R 755 /var/www/html/Earthquakes
server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html/Earthquakes; index index.html index.htm; server_name Earthquakes; location / { try_files $uri $uri/ =404; } }
sudo ln -s /etc/nginx/sites-available/Earthquakes /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx
Collaborate with other users in our discussion forums
A valid service agreement or active software subscription may be required, and support options vary by country.
Helpful
Not Helpful