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

Geordienz's avatar

Accessing site without domain

Not using domain - should I be able to see my site simply by entering Forge IP address of my site in the browser? As you may be able to tell, I'm a newbie. Getting a 404 error.

0 likes
7 replies
Cronix's avatar

If it's set up as the "default" site, yes, because you can have many "sites" set up on the same ip address. So it has to know which one to serve when using just the IP, so it uses the default site for that.

1 like
Geordienz's avatar

Thanks for replying. 'Scuse my ignorance, but is there a way of specifying it's the default, or merely that it's the first (or only) app there?

Cronix's avatar

When you create the server, it creates a "default" site for it. Visiting the servers ip address shows a phpinfo() page. You can go and edit the "default" site. Once you login to Forge, if you go to edit the "server", it should give you a list of the "domains" on that server. The "default" should be the first listed, unless you removed it.

1 like
johncarter's avatar

@geordienz how did you end up fixing this. I deleted the default site and created a new site with the root domain as a domain I hadn't yet setup DNS for.

Even though the new site was setup as the only site on forge when I visited example.com I got the 404 too.

I ended up recreating a site with the root domain as "default" then deployed my code there - seems to fix it. Do you have a better solution?

Please or to participate in this conversation.