NGINX active but not serving

On my droplet, I have installed Nginx server its active. On installing Openswan VPN Nginx server is running but not serving. Anyone who can assist on this issue?

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.

Hi @accountsb540b5883b9995e0d6

Are you sure Nginx is active? OpenSwan is probably setup to run on the same ports as Nginx, so only one of them can be active at the same time.

Can you run this command to list all services and their ports

sudo lsof -iTCP -sTCP:LISTEN -P

Also have a look in the Nginx error log

tail -20 /var/log/nginx/error.log