T
T
tripcollor2018-11-09 13:07:50
Nginx
tripcollor, 2018-11-09 13:07:50

Why is Nginx not registering with the ufw firewall service?

I have ubuntu 16.04
Before that I had apache2, I installed nginx
With the command , the sudo ufw app list
output was like this

Available applications:
 Apache
 Apache Full
 Apache Secure
 OpenSSH

That is, nginx did not appear there, I thought it was due to the fact that I did not remove apache2. In the end, I removed apache2 and reinstalled nginx, but it never appeared in the list, only ssh remained
Available applications:
 OpenSSH

What can I do to make everything work?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TyzhSysAdmin, 2018-11-09
@POS_troi

What is the difference between Apache and Njinx for firewall? :)
the correct answer is nothing, the same 80th and 443rd port.
during installation, the post-install script checked the config and saw the necessary, open ports and quite legally scored on adding duplicates.
then you deleted aach and its scripts cleaned the fire because apache is stupidly purple that you have nginx hanging out somewhere.
in general, add the rules with handles and don't worry.
PS My personal opinion for all ages - packages that themselves delve into the firewall settings - wild evil.

O
OnYourLips, 2018-11-09
@OnYourLips

sudo ufw allow 443
sudo ufw allow 80

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question