nginx as a reverse proxy

I installed nginx as a reverse proxy but it 's not working. I cannot access my website from outside but if I run curl command (curl -v , I got the information.

Please help.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello, @pennicilin

Would you mind sharing the steps you’ve taken in order to configure the reverse proxy and also share the output of these commands:

netstat -plunta | grep nginx
netstat -plunta | grep 80
netstat -plunta | grep 443

You can double check that you’ve properly set the ports in the both the configuration files (presumably Apache and Nginx)

Also make sure that both web servers are up and running and that there are no syntax errors in the web config files, which you can check by this command:

sudo nginx -t


sudo apache2 -t

Regards, Alex