NGINX active but not serving

Posted April 19, 2017 7.5k views

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?

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.

Submit an Answer
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