Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question
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 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
What about sudo ufw allow 80? – Bharadwaj Raju Apr 17 at 9:39

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.

share|improve this answer
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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