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!
Will I be able to access Radio Romania International? Their address is www.rri.ro
After step 2, I got Status: inactive and discovered that I needed to run sudo ufw enable. And after that the output was a bit different than described:
Status: active
To Action From
-- ------ ----
Nginx HTTP ALLOW Anywhere
Nginx HTTP (v6) ALLOW Anywhere (v6)
I was also getting Status: inactive by typing sudo ufw allow 'Nginx HTTP'. But I solved it by using sudo ufw enable command.
Hi,
On vmware I have Ubuntu 18.04. When I try this “ip addr show eth0 | grep inet | awk ‘{ print $2; }’ | sed ‘s//.*$//’” I got error saying “Device “eth0” does not exist.” My DNS is working. I also follow the tutorial and create block for domin. But I cannot make it work. when I type http://127.0.0.1/ I can see default nginx index.html But when I try to write my domain it looks like its keep searching. Any idea?
niyazi@niyazi-virtual-machine:~$ sudo lshw -short | grep network /0/100/15/0 ens160 network VMXNET3 Ethernet Controller /2 docker0 network Ethernet interface
I follow the tutorial and set up my Nginx as well as I configure to use as a bypass proxy. When I try to type as http://myserverip/ I get 502 bad gateway error. I am using Nginx bypass proxy so I can test my web api. I created single customize html and put in root /var/www/html/data/; but I still keep getting 502 bad gateway error. How can I correct my configuration?
Below is my Nginx configuration. Any help please?
server {
charset UTF-8;
listen 80;
listen [::]:80;
error_log /var/log/nginx/niyazi.com.error.log debug;
rewrite_log on;
server_name mod.niyazi.com;
include snippets/letsencrypt.conf;
root /var/www/html/data/;
return 301 https://mod.niyazi.com$request_uri;
}
server {
charset UTF-8;
listen 443 ssl http2;
server_name mod.niyazi.com;
ssl_certificate /etc/letsencrypt/live/mod.niyazi.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mod.niyazi.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/mod.niyazi.com/chain.pem;
include snippets/ssl.conf;
include snippets/letsencrypt.conf;
location / {
proxy_pass http://192.168.12.120:8280/;
}
if ($request_method !~ ^(GET|HEAD|POST)$ )
{
return 405;
}
}
http://example.com from where? The client? How would client know what this is referring too? I get some other page describing Example Domain
http://my-IP/example.com gives 404 error.
I don’t have a problem, I wanted to share an extra step I think I figured out. (Full disclosure: I’m a 100% beginner).
This tutorial worked fine for me.
But it seemed like all I was able to serve was www.example.com/index.html.
I wanted to serve all my other pages and projects from http requests like www.example.com/cool-thing-I-built.html
In case it helps anyone, and is not too obvious, you don’t have to build additional server blocks to serve your sub-pages. I don’t know what the real way is but, the simplest thing seems to be: just save cool-thing-I-built.html in the same directory as index.html.
So if you want to respond to a browser request for:
http://example.com/projects/foo.html
you just have to save foo.html in your server as
/var/www/example.com/html# ls /var/www/example.com/html/projects/foo.html
Obviously I will go back and rename the directory so it is not ‘example.com’ but I left it like that to make it connect clearly with the above tutorial.
Just want to point out for others in case they are running into “site cannot be reached” after following all steps in this tutorial.
Make sure you have set up an A record for your domain pointing to your server IP address (the address that brings you to default Nginx landing page in this tutorial).
Read prerequisites section at this link for information on doing that.