By mnyu
I’m having issues pointing my domain to my IP.
My django app is deployed at : http://159.203.117.240/ without an issue, but I cannot point a domain I bought: magnacreativelabs.club to the IP.
My Domain has a custom DNS of: ns1.digitalocean.com ns2.digitalocean.com ns3.digitalocean.com
A *.magnacreativelabs.club directs to 159.203.117.240 A magnacreativelabs.club directs to 159.203.117.240 A www.magnacreativelabs.club directs to 159.203.117.240
NS magnacreativelabs.club directs to ns3.digitalocean.com NS magnacreativelabs.club directs to ns1.digitalocean.com. NS magnacreativelabs.club directs to ns2.digitalocean.com.
server {
listen 80;
server_name magnacreativelabs.club;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /home/michael/magna/magna/magna;
}
location / {
include proxy_params;
# proxy_pass http://159.203.117.240;
proxy_pass http://unix:/home/michael/magna/magna/magna.sock;
}
}
server { listen 80 default_server; listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
}
Any help would be appreciated!
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!
Accepted Answer
Real issue maybe your sites-enabled not symlinked. Run this on terminal:
sudo ln -s /etc/nginx/sites-available/*.conf /etc/nginx/sites-enabled/Nginx uses two separate folders, only confs in sites-enabled run.
You only need one A and a CNAME record to make it work.
A magnacreativelabs.club directs to 159.203.117.240 removing other A’s.www pointing to @server_name .magnacreativelabs.club;I have issues pointing my droplet to cloudflare. Would be great if someone can help me! Thanks
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.