Ubuntu Server Port 80 not reachable/closed
up vote
0
down vote
favorite
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.
port-forwarding
add a comment |
up vote
0
down vote
favorite
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.
port-forwarding
How do you know your port is closed? Any result? Please include output ofsudo 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 aboutsudo 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
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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.
port-forwarding
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.
port-forwarding
port-forwarding
edited Feb 21 '14 at 6:58
asked Feb 21 '14 at 5:08
user1343112
781313
781313
How do you know your port is closed? Any result? Please include output ofsudo 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 aboutsudo 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
add a comment |
How do you know your port is closed? Any result? Please include output ofsudo 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 aboutsudo 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
How do you know your port is closed? Any result? Please include output of
sudo iptables -L
– Achu
Feb 21 '14 at 5:19
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
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
1
What about
sudo ufw allow 80
?– UniversallyUniqueID
Apr 17 '16 at 9:39
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
@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
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
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
|
show 2 more comments
up vote
0
down vote
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.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
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
|
show 2 more comments
up vote
0
down vote
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
|
show 2 more comments
up vote
0
down vote
up vote
0
down vote
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.
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.
answered Feb 21 '14 at 5:21
Maythux
49.9k32164214
49.9k32164214
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
|
show 2 more comments
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
I had done this process. But still fail.
– user1343112
Feb 21 '14 at 5:26
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
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
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
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
be sure to run https not http
– Maythux
Feb 21 '14 at 5:29
|
show 2 more comments
up vote
0
down vote
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.
add a comment |
up vote
0
down vote
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.
add a comment |
up vote
0
down vote
up vote
0
down vote
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.
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.
answered Sep 17 at 15:14
Ketan Patel
10.1k94365
10.1k94365
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f424013%2fubuntu-server-port-80-not-reachable-closed%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
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