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.

HTTP Service closed (Port 80 Closed)
#1
HTTP Service closed (Port 80 Closed)
On the Service Status Page only HTTP is closed. I can my websites with https but not via http (also no redirect). First i toughed i forgot to restart apache after i added a ssl certificate trough LetsEnrcypt. There is nothing special in the error log from apache and apache is running.

On the virtual Host Override Page I have marked all tick boxes, port override is 443 and no ip override.
Custom Entry lookes like this:
Code:
SSLEngine on
SSLProtocol ALL -SSLv2 -SSLv3
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCertificateFile /etc/letsencrypt/live/DOMAIN/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/DOMAIN/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/DOMAIN/chain.pem
# Keeping bellow for future upgrades.
# Requires Apache >= 2.4
SSLCompression off

I done eveything like descriped here: http://docs.sentora.org/?node=103'

I have 1 Domain and 1 Subdomain (The panel works on its own subdomain).


I asked Google and found nothing useful (or i asked wrong questions).
Reply
Thanks given by:
#2
RE: HTTP Service closed (Port 80 Closed)
You may have accidentally changed the apache service port. (This is rather common mistake.)

Using command line as root user:
Code:
setso --set apache_port 80
setso --set apache_changed true
Wait for the daemon to run (~5 mins) and test.

~OR~

Using PhpMyAdmin:
Open phpmyadmin and log in as root.
Navigate to: sentora > sentora_core > x_settings > line 80 (apache_port) and make sure it is set to 80.
Change line 92 (apache_changed) to true
Wait for the daemon to run (~5 mins) and test.
-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: inkoop@topmatica.nl
#3
RE: HTTP Service closed (Port 80 Closed)
Didn't worked.

Here are the vhost file:

/etc/sentora/configs/apache/httpd-vhosts.conf
https://pastebin.com/vrmaTfwm

I only removed my Domain and changed the panel subdomain to SUB.


I didn't changed much. On my main Webspace is not much and on my dev Webspace i added a htaccess file to protect this webspace. I also messed up some ssl certificates (was in the wrong tutorial) but did it right after that.
Reply
Thanks given by:
#4
RE: HTTP Service closed (Port 80 Closed)
Apache is not listening on port 80. It should say:

Code:
Listen 443
Listen 80

at the top of the vhost file. Again, make sure that line 80 in the x_settings table (apache_port) shows 80
You may have to run the daemon manually.
-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: HTTP Service closed (Port 80 Closed)
Still not working. I never changed the Apache Port and its still Port 80 after several Deamon runs.
What I tried was to change the "Sentora Apache Port" from 443 to 80 but than everything broke. I fixed it when i manually changed the vhost file and restarted apache before the next deamon run. After this, "Listen 80" disappeared.

I now added a Subdomain without any changes and Port 80 is now working. After I removed the subdomain and then Port 80 is closed again. I mean i want that everyone visits my site over https but a http redicret must still working. Creating a dead subdomain fixes my problem but its still not the right way.
Reply
Thanks given by:
#6
RE: HTTP Service closed (Port 80 Closed)
First fix your setup and roll back to port 80. Could you do that?

Do you want to setup SSL on panel ? Or a domain? Let's do it another way.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#7
RE: HTTP Service closed (Port 80 Closed)
For my Panel i want both, like i have it now. At least i want SSL.

At this moment i write with TGates via PM and he checks if this is a bug or my fault.
Reply
Thanks given by:
#8
RE: HTTP Service closed (Port 80 Closed)
Me.B, he is having the same issue as the other thread. I checked the configs for both. They are both setting all sites to use SSL with no non-ssl sites. When this happens, the Listen 80 is no longer added to the httpd-vhosts.conf file therefore if somebody tried to load http it can not find the redirect to https because it is not listening on that port. I'll make a patch for these guys and you can review it for GitHub.
-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: luizjr
#9
RE: HTTP Service closed (Port 80 Closed)
View here a workaround: HERE
I have already updated your server with the fix Wink 
(You both had the same issue at the same time 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:
#10
RE: HTTP Service closed (Port 80 Closed)
Thanks for the help.
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Install guide wget over http? edavidf 5 11 ,189 12-15-2020, 07:07 PM
Last Post: jibranahmed
SSL install breaks apache service EGOSKY123 1 4 ,579 10-28-2020, 12:12 AM
Last Post: iraqiboy90
Having both HTTP & HTTPS (Port 443 and Port 80) sites on a server dsmarter 14 46 ,318 08-22-2020, 02:49 PM
Last Post: kenzopoker1

Forum Jump:


Users browsing this thread: 2 Guest(s)