NGINX active but not serving

April 19, 2017 4.7k views
Nginx CentOS Django

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?

1 Answer

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
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!