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

Rtransat's avatar

Sub domain

Hello,

I'm actually testing forge and I have something that I don't understand. I have a droplet with Digital Ocean and my domain is register on namecheap.

The DNS are configured in namecheap, it works fine.

But when I create a new site test.domain.fr forge create /home/forge/test.domain.fr, then i create a test.html file. And I configure the DNS in DigitalOcean :

type A test SERVER IP

But if I'm going to the domain subdomain.domain.fr it display the current phpinfo from which directory ? I would like a 404 if the sub domain doesn't exists (subdomain).

test.domain.fr/test.html display my html file, but the other sub domains doesn't display a 404, why ?

Thanks.

PS : (sorry for my english)

0 likes
1 reply
Rtransat's avatar

My bad, it was the DNS propagation ;). Before I was type A : * SERVER IP

Please or to participate in this conversation.