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.

Port 80 http closed
#1
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
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 - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#3
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
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 - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#5
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
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
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
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 - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by: worksmarter
#9
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
RE: Port 80 http closed
No problem, good thing I remembered it LOL
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Install guide wget over http? edavidf 5 11 ,163 12-15-2020, 07:07 PM
Last Post: jibranahmed
Having both HTTP & HTTPS (Port 443 and Port 80) sites on a server dsmarter 14 46 ,252 08-22-2020, 02:49 PM
Last Post: kenzopoker1
Using Sentora to forward HTTP/S traffic to another server RobbGG 1 4 ,494 07-14-2020, 10:27 AM
Last Post: RobbGG

Forum Jump:


Users browsing this thread: 2 Guest(s)