i open server through ip not has domain yet! when i open ip in browser i get nginx default page before i install it. after install nginx still get default page . i remove default file from site available and still show nginx welcome
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
After removing the default Nginx server block, did you restart the Nginx service?
Every time you make a change to the Nginx configuration, you would need to restart the Nginx service.
It is a good practice you first do a config test with
nginx -t
and only if you getSyntax OK
then proceed with the restart.Let me know how it goes.
- Bobby
Heya, @husseinahmed
You can test your Nginx configuration for syntax errors:
The next step will be to reload Nginx to apply the changes:
Also, ensure your firewall allows HTTP traffic. For example, if you are using UFW, run:
Now you should see the content of your custom
index.html
file instead of the Nginx default welcome page.Regards