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

joshlittlewood's avatar

Domain redirecting to nginx.

I'm sure this one is a really easy fix, but I cant seem to work it out.

I have my laravel site deployed on a digital ocean server using forge, and I am able to access it through an IP address, however when I go into the Nginx cofig file and change the server name from the IP address to my domain, the domain just shows an standard 'Welcome to Nginx' page.

How do i got the domain to direct to my laravel site?

Thanks in advance!

0 likes
7 replies
bugsysha's avatar

Do you have any more sites on that server?

bugsysha's avatar

I've missed the "forge" part. Shouldn't that be done through web interface and not by changing nginx conf file manually?

joshlittlewood's avatar

How would i go about doing that? Would that be done though digital ocean?

joshlittlewood's avatar

I have followed the tutorial on there but i am still getting the same results. Typing 'mydomain.com' gives me an 'welcome to nginx' page and typing 'www.mydomain.com' returns 'This site can’t be reached - www.mydomain.com’s server DNS address could not be found.'

Please or to participate in this conversation.