Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tammerjammer's avatar

Keep getting "404 Not Found" Error with Forge

Hi Everyone,

New here, trying out Laraval Forge as a student. I'm trying to install Statamic, a flat file CMS. Think I installed everything okay, but keep receiving error when I try and access site by IP or domain in browser.

Domain name is registered with Namecheap with the following settings:

Type: A Record Host: * IP Address: IP of Digital Ocean server Type: A Record Host: @ IP Address: IP of Digital Ocean server Type: CNAME Host: www Target: mydomain.com

Steps taken:

  1. Created Server in Forge on Digital Ocean
  2. Added SSH public key info generated from my Macbook into SSH screen in Forge and in Digital Ocean Security settings
  3. Created site with mydomain.com, removed "/public" from web directory, selected "General PHP / Laravel" for project type
  4. Clicked "Manage" and selected Git Repository to install private repo, unticked "Install Composer Dependencies
  5. Selected "Deploy Now"

Issues:

  • Tried to access site IP of Digital Ocean server, receiving a 404 Not Found (nginx/1.11.8) screen.
  • Accessing site in Safari just brings up a "Can't find server" page

I've tried restarting services, restarting Nginx specifically.

Can anybody advise? Much appreciated!

0 likes
4 replies
lasse's avatar

Does pinging (ping mydomain.com) return your Forge IP or is it still an IP at Namecheap? Normally it does takes some time for DNS settings to propagate. Check the TTL settings at Namecheap to see roughly how long. Should be all alright by now though given your post is a day old.

ejdelmonico's avatar

Did you follow the Statamic install for Forge process? Here is the video: https://docs.statamic.com/knowledge-base/forge

They explain how to do a deploy to Forge server with excellent detail. I have followed it a few times and it works perfectly. Have a look at the video if you haven't already.

codedungeon's avatar

Did you ever get this situation resolved. I am experiencing the same thing (but in my case, it is a simple laravel new app) I am trying to connect to site using IP address (do not have domain yet)

NicolasGoosen's avatar

I know this is an old post, but bumping it up hoping to find a solution. Same with me: IP address returns 404, but using whole URL works fine.

Please or to participate in this conversation.