Report this

What is the reason for this report?

NGINX issue, curl work but request from the browser doesn't

Posted on September 8, 2017

I have Debian 9.1, but used this one guide for installation Nginx https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-debian-8

So, in part where i should type my server Ip in browsers, it returns error

This site can’t be reached

178.62.247.93 took too long to respond.

While trying same with SSH, second not root account

demo@Debian-512MB-Ams3:~$ curl ***.**.***.**
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
    body {
        width: 35em;
        margin: 0 auto;
        font-family: Tahoma, Verdana, Arial, sans-serif;
    }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>

<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>

<p><em>Thank you for using nginx.</em></p>
</body>
</html>

So, Nginx is up, but browser got Error. Why?



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.

This comment has been deleted

This question was answered by @BonBonslick:

Thank you very much for your response, i have configured it. Installed php and it is modules, and it worked. I have one more question if you do not mind.

Website domainname is grabgg.com, bought at 1&1.com, have setup DNS servers there, but currenty you can see only Test project from provided server IP, domainname does not work. It Redirects to 404 Not Found

I have also used many guides like this link, but my OS is Debian 9.1

View the original comment

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.