Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello.
Shall I know what’s inside
sudo nano /etc/nginx/sites-available/example.com
Thanks!
Wow, ok, I found the problem. The 1-click LEMP app also installs Apache2, and after installing php7.2-gd and running apt upgrade Apache takes over port 80 and if you reboot your server Nginx will not start. I don’t know why Apache is installed with the 1-click LEMP but it would be nice if the docs would warn you because this was painful!
After starting from scratch one more time with 1-click LEMP app and then installing WordPress, I think my problem was simply clearing my web browser cache. I’m not sure what I did wrong the first time, but thank you! I do have one question about the file you mentioned though. After several times through the process, I combined all the steps into a single template (before installing SSL certificates):
server { listen 80; root /var/www/example.com/html; index index.php index.html index.htm index.nginx-debian.html; server_name example.com www.example.com;
location = /favicon.ico { log_not_found off; access_log off; }
location = /robots.txt { log_not_found off; access_log off; allow all; }
location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ {
expires max;
log_not_found off;
}
location / {
# try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}
location ~ /\.ht {
deny all;
}
} I used this to install WordPress for 3 domains, used CertBot to install certificates and had all 3 working until I logged into my terminal and it said ‘system restart required’ and after rebooting I cannot start Nginx. Sudo nginx -t says ‘ok’ and ‘successful’ but error log says: [emerg] 3840#0: bind() to 0.0.0.0:80 failed (98: Address already in use) Any ideas?