go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Step 3: Adjust Firewall -- optional
 
Subject: Step 3: Adjust Firewall -- optional
Author: Linux
In response to: Step 2: Check your Apache Web Server
Posted on: 11/01/2017 08:49:31 PM


By defaut, the Firewall is inatcive and hence the Apache web server can be accessed from outside.

$ sudo ufw status
Status: inactive


If the firewall is actived. You must instruct your firewall to allow Apache web service to be accessible.

We can first list the ufw application profiles by:
$ sudo ufw app list
Available applications:
  Apache
  Apache Full
  Apache Secure
  OpenSSH


Then allow 'Apache Full'
$ sudo ufw allow 'Apache Full'


Now you should see:
$ sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
Apache Full                ALLOW       Anywhere
OpenSSH                    ALLOW       Anywhere
Apache Full (v6)           ALLOW       Anywhere (v6)
OpenSSH (v6)               ALLOW       Anywhere (v6)


 

> On 11/01/2017 08:48:13 PM Linux wrote:


At the end of the installation process, the system should have started Apache web server and it should already be up and running on port 80

You can check it form server side by:

$ sudo systemctl status apache2

● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: active (running) since Tue 2017-10-31 17:38:33 PDT; 19h ago
     Docs: man:systemd-sysv-generator(8)
   CGroup: /system.slice/apache2.service
           ├─3329 /usr/sbin/apache2 -k start
           ├─3332 /usr/sbin/apache2 -k start
           └─3333 /usr/sbin/apache2 -k start



or

$ netstat -tuln | grep 80

tcp6       0      0 127.0.0.1:8005          :::*                    LISTEN
tcp6       0      0 :::8009                 :::*                    LISTEN
tcp6       0      0 :::8080                 :::*                    LISTEN
tcp6       0      0 :::80                   :::*                    LISTEN



You can also check it from client side by:
http://<your-machine-ip>/






References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.