Question

Domain pointed to vps, nginx is not pickign it up.

Posted September 7, 2020 83 views
Nginx

I followed this tutorial: https://help.pebblehost.com/en/article/how-to-setup-an-image-hosting-webserver-using-sharex-18brwsw/ to set up a ShareX custom uploader using a vps. I have set up my Nginx files on my droplet, put them into sharex and that seems to be working well. When I take a screenshot ShareX puts the screenshot in the right folder. Now I pointed my domain (from get.tech) to my vps (pointed to DigitalOcean nameservers and made an A record for img.mydomain.com to the vps I am running this on) it’s not working for some reason.

When I go to my site img.mydomain.com/image I get an error “We couldn’t find this website’, it’s not an Nginx error screen it’s just a Firefox error. I opened port 80 tcp and udp on my droplet and I’m out of ideas on what to do.

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.

×
1 answer

Hi @332006,

It could be a DNS issue, please note it may take up to 48 hours for DNS changes to take full effect.

Now, let’s try testing this out. First, ping your domain, make sure it’s loading from the proper IP of your Droplet.

Once you make sure, you have your domain pointing to the exact IP address, check your Nginx configuration file for the said domain. How have you configure it, is it properly setup. You can check the following article if you are unsure how it works :

https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04

Having said that, it does look like a DNS issue rather than anything else on the droplet so you may wish to concentrate your energy there into finding why it’s not resolving properly.

Regards,
KFSys

by Justin Ellingwood
When using the Nginx web server, server blocks (similar to the virtual hosts in Apache) can be used to encapsulate configuration details and host more than one domain off of a single server. In this guide, we'll discuss how to configure server blocks in Nginx on an Ubuntu...
Submit an Answer