0

I am running Ubuntu server 12.04 with Apache2.

My port 80 is not reachable and closed. Any idea how can I open it so I can access to my web admin?

I noticed that port 80 is reachable under LAN, but its not able to reach outside of LAN even I had done port forwarding.

What should I do?

Thanks.

  • How do you know your port is closed? Any result? Please include output of sudo iptables -L – Achu Feb 21 '14 at 5:19
  • I downloaded a software from portforward.com to check is my port is reachable or not. Then I got the result its close. Below is my result of iptables -L root@server:~# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination – user1343112 Feb 21 '14 at 5:23
  • 1
    What about sudo ufw allow 80? – UniversallyUniqueID Apr 17 '16 at 9:39
  • @BharadwajRaju UFW generates IPtables rules, which would have shown up in user1343112's answer if it was enabled. Also, port 80 being reachable on the LAN is a very good sign that UFW is not blocking this. – Azendale Sep 4 '17 at 3:07
0

To access webmin you have to use the port 10000 with https like this: https://localhost:10000/

Moreover if you want to change Apache port

Open /etc/apache2/ports.conf file, enter:

$ gksu gedit /etc/apache2/ports.conf

To make the server accept connections on both port 8010, enter:

Listen 8010

To make the server accept connections on both port 80 and port 8010, use:

Listen 80
Listen 8010

Now restart apache

sudo service apache2 restart

and try.


  • I had done this process. But still fail. – user1343112 Feb 21 '14 at 5:26
  • localhost:10000 have you try this – Maythux Feb 21 '14 at 5:26
  • u mean add localhost:10000 into my /etc/apache2/ports.conf? – user1343112 Feb 21 '14 at 5:28
  • no run in browser – Maythux Feb 21 '14 at 5:28
  • be sure to run https not http – Maythux Feb 21 '14 at 5:29
0

As mentioned Port 80 is reachable from LAN but from not WAN with configuration of port forwarding.

When you configure Port forwarding, you must to check that gateway routes are configured properly in server. While port forwarding you need to take care of this point, otherwise you will not able to access application, even you have configured port forwarding properly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.