0

I've got app on GCP up and running. I can view the app after typing its external IP so I know the app works fine.

Now I'm trying to point domain purchased on Godaddy to it. After following a tutorial I got 404 from the browser.

cloud DNS zone:

cloud DNS zone screenshot

Godaddy DNS records for the domain: enter image description here enter image description here

According to tutorial after taking these steps I should be able to access my app after typing the domain in. I'm getting 404.

Any help is much appreciated.

Nginx config:

enter image description here

Web server is running fine: enter image description here

Update:

I've made changes based on your feedback:

Godaddy nameservers are now replaced with GCP nameservers GCP zone DNS config

11
  • 404 is an HTTP error. It has nothing to do with DNS. Check your web server logs and configuration. May 9, 2021 at 8:30
  • 2
    The NS records at godaddy look very strange as that is clearly a screenshot of a zone hosted at godaddy, not the delegation of the zone? Did you mean to delegate the zone to google domains, instead? May 9, 2021 at 11:26
  • @EsaJokinen I've added my Nginx config. Judging the fact that the app loads fine when typing in external IP of the server is telling me that the config is OK.
    – Mark
    May 9, 2021 at 12:41
  • Screenshots added. Logs are clean and server is running fine too.
    – Mark
    May 9, 2021 at 12:51
  • 1
    Frankly, it's hard to investigate this because you obfuscate the domain and the IP address, while it would be trivial if you didn't. If it's sensitive and you can't figure it out by yourself, you could hire a professional. May 9, 2021 at 18:55

1 Answer 1

0

When you change your NS records to GCP that means you are changing where the DNS records for the domain is existing on in that case adding A records on godaddy won't make any changes you have to add A record and Cname records on GCP

3
  • Please review update I added to the question.
    – Mark
    May 9, 2021 at 16:07
  • Yes just saw that if it is giving youa 404 error that means there is something wrong with the nginx conf file does it work if you manually call it using index.php or any file that serves the website
    – Abhijith
    May 9, 2021 at 16:09
  • I can confirm that when I stop Nginx and run the app only on Gunicorn (http server) the app loads OK on port 5000, then I restart the Nginx and the app loads OK on port 80 of the external IP but throws 404 when I use my domain.
    – Mark
    May 9, 2021 at 16:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .