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

RonB1985's avatar

Can see site via domain name but not via IP Address

So I've created my first server using Forge on Digital Ocean and I changed my DNS settings for my domain. I can see my site using my domain name, but when I go directly to the IP Address (82.196.9.234) I only see a 404 not found. Not sure if this matters ofcourse since my site works, but I was wondering why this is. Can anyone enlighten me? Thanks :)

0 likes
1 reply
pmall's avatar
pmall
Best Answer
Level 56

This is perfectly normal your virtual host is configured to respond to requests with your domain name as hostname.

1 like

Please or to participate in this conversation.