This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Jump to the post that solved this thread.
Port 80 http closed
#1
[Solved] Port 80 http closed
Port 80 is closed on my machine.
It is not iptables...
It is not a port forwarding issue on my network.

Sentora "knows" the port is closed in the Service Status section.

I never really noticed this as everything on this server is using Let'sEncrypt / Certbot certificates.

I am left to assume it could be in my port override(s) or something I did. I seem to recall having to screw with the port 80 entry (because I am running CentOS 7) when setting up for Let'sEncrypt long ago. Does anyone have any quick advice on tracking this down?

I thought I would post first as I work on it so if I am not successful in figuring this out. This is sort of my fault as I was lazy in installing Zabbix and used the repo instead of installing it from source - thinking updates would be easier, but this also means zabbix is not in the sentora hostdata directory as a site. I don't think that matters, but if I would have done it that way, I would have secured it with SSL too and not have an issue with needing port 80.

I am stumped since SENTORA "knows" the port is closed...

Cheers @TGates if you are out there, I'm back! Thanks in advance.
Everyone makes mistakes, but to truly screw up it takes the root password!
Reply
Thanks given by:
#2
[Solved] RE: Port 80 quandary
Hey buddy! Does LISTEN 80 exist in the httpd-vhosts.conf?
What is your default apache port? Did you change that to 443 instead of keeping it 80 and using forwards?
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support or modules helpful? Donate HERE
Get your domains using my affiliate link:
GoDaddy - Domains
Reply
Thanks given by:
#3
[Solved] RE: Port 80 quandary
(01-13-2018, 01:44 PM)TGates Wrote: Hey buddy! Does LISTEN 80 exist in the httpd-vhosts.conf?
What is your default apache port? Did you change that to 443 instead of keeping it 80 and using forwards?

The LISTEN 80 is commented, and apache fails if you uncomment it.

Default apache port is 80 and every domain has overrides, well barring the zabbix install which since I did not install it from source, it is in /usr/share/zabbix.

I tried moving it (zabbix web frontend) out and can't get it to work in the hostdata path. I have been able to log in to zabbix using https and the server IP. - Less than desirable...
Everyone makes mistakes, but to truly screw up it takes the root password!
Reply
Thanks given by:
#4
[Solved] RE: Port 80 quandary
If apache fails when uncommented, then LISTEN 80 is added somewhere else. What does zabbix use? Does it install it's own web service? I am not familiar with zabbix, and I didn't find what I was looking for on their site.
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support or modules helpful? Donate HERE
Get your domains using my affiliate link:
GoDaddy - Domains
Reply
Thanks given by:
#5
[Solved] RE: Port 80 quandary
(01-14-2018, 02:06 AM)TGates Wrote: If apache fails when uncommented, then LISTEN 80 is added somewhere else. What does zabbix use? Does it install it's own web service? I am not familiar with zabbix, and I didn't find what I was looking for on their site.

zabbix only uses port 80 by default to connect to the web frontend - remote ports are random open ports (can't recall which ATM) way above that. I would have to look at our Let'sEncrypt posts, but I think this has always been a problem (port 80 closed) I think I had to comment it in httpd-vhosts.conf to get the ssl and redirection to work.

The only thing I can think of is that the Module>Admin> Apache is the only place I see port 80 entered and I think it should be there. dunnoh...
Everyone makes mistakes, but to truly screw up it takes the root password!
Reply
Thanks given by:
#6
[Solved] RE: Port 80 quandary
Very strange as I either accidentally fixed this or it fixed itself.
Everyone makes mistakes, but to truly screw up it takes the root password!
Reply
Thanks given by:
#7
[Solved] RE: Port 80 quandary
(01-15-2018, 02:16 AM)worksmarter Wrote: Very strange as I either accidentally fixed this or it fixed itself.

Nope port 80 is down again. I am very confused about this one. This is a real problem as it explains why none of my sites are getting traffic or indexed by robots and spiders.

(01-16-2018, 03:38 PM)worksmarter Wrote: Nope port 80 is down again. I am very confused about this one. This is a real problem as it explains why none of my sites are getting traffic or indexed by robots and spiders.

OK, if I add Listen 80 to /etc/sentora/configs/apache/httpd-vhosts.conf it works until the daemon rewrites the file.

In Sentora Menu -> Admin -> Module Admin -> Apache config has the apache service port set to 80.

As lamented before, all of my sites are using Let's Encrypt SSL certs and they redirect to port 443 in the overrides options.

I am at a total loss about this. Does this look right??? Why is it set for Listen 443 when Sentora is set to 80?

################################################################
# Apache VHOST configuration file
# Automatically generated by Sentora 1.0.3
# Generated on: 01:04 16th Jan 2018 EST
#==== YOU MUST NOT EDIT THIS FILE : IT WILL BE OVERWRITTEN ====
# Use Sentora Menu -> Admin -> Module Admin -> Apache config
################################################################

Listen 443

# Configuration for Sentora control panel.
Everyone makes mistakes, but to truly screw up it takes the root password!
Reply
Thanks given by:
#8
[Solved] RE: Port 80 quandary
I think this was a bug I fixed recently. If all sites are 443, for some reason LISTEN 80 was not being added.


Well, it appears this was an issue we both worked on a while back:
http://forums.sentora.org/showthread.php...8#pid20198
GitHub: https://github.com/sentora/sentora-core/issues/301

Me.B
I need to update this fix to master before v1.0.4 release.

Never mind, official fix is here: https://github.com/sentora/sentora-core/...2ce0328ce0
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support or modules helpful? Donate HERE
Get your domains using my affiliate link:
GoDaddy - Domains
Reply
Thanks given by: worksmarter
#9
[Solved] RE: Port 80 quandary
(01-17-2018, 12:57 AM)TGates Wrote: I think this was a bug I fixed recently. If all sites are 443, for some reason LISTEN 80 was not being added.


Well, it appears this was an issue we both worked on a while back:
http://forums.sentora.org/showthread.php...8#pid20198
GitHub: https://github.com/sentora/sentora-core/issues/301

@[Me.B]
I need to update this fix to master before v1.0.4 release.

Never mind, official fix is here: https://github.com/sentora/sentora-core/...2ce0328ce0

Sorry, I missed this change. Thanks a lot I was really tearing my hair out!
I changed the title of this thread so it will be easier for others to find in the search results; thanks again.
Everyone makes mistakes, but to truly screw up it takes the root password!
Reply
Thanks given by:
#10
[Solved] RE: Port 80 http closed
No problem, good thing I remembered it LOL
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support or modules helpful? Donate HERE
Get your domains using my affiliate link:
GoDaddy - Domains
Reply
Thanks given by:
Jump to the post that solved this thread.


Possibly Related Threads...
Thread Author Replies Views Last Post
Access PHP file directly via http & IP address 7rdoq 2 443 11-15-2018, 11:14 AM
Last Post: TGates
Can i use http/2 for Sentora Panel? lalapo 1 303 11-15-2018, 07:27 AM
Last Post: Me.B
Port 443 goes active, https causes error rsthomas 21 5,765 10-29-2018, 04:55 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)