clean install of ns7.9, install nethserver-docker and enabling portainer, The URL of portainer (https://:980/portainer/ ) is not reachable.
installing nethserver-httpd-admin-service seems to solve the problem, i suppose we could add it as required packages in nethserver-docker (as issue 6344) or write some note on docs for people who enable portainer… don’t know which is the best solution
there is almost always a solution that you have not thought of … and often it is also the best tnx!
firs test, and it seems to works great and HTTP is correctly redirected, I’ll do some other tests
mhhh with or without nethserve-docker, on a clean install + update + nethserver-httpd-admin there is no redirection on https, I got an “ERR_EMPTY_RESPONSE” I’ll play with it a little longer
The httpd-admin package is split up in two packages, where the new nethserver-httpd-admin-service configures access on port 980. This to enable users to redirect / forward port 443 to elsewhere
I didn’t try portainer, but for me port 980 works.
On a clean machine:
yum install nethserver-httpd-admin-service
Then
[root@localhost ~]# curl http://localhost:980
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
Instead use the HTTPS scheme to access this URL, please.<br />
</p>
</body></html>
And, with the correct protocol:
[root@localhost ~]# curl -k https://localhost:980
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /
on this server.</p>
</body></html>
# rpm -qa| grep nethserver-httpd-admin
nethserver-httpd-admin-service-2.7.0-1.ns7.noarch
# curl http://localhost:980
curl: (52) Empty reply from server
# curl -k https://localhost:980
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /
on this server.</p>
</body></html>
I can’t find why on my machine the response is different.
Still, this is not a real problem since there is no service listening in plain HTTP on that port.
If port 980 is correctly speaking HTTPS, you should be able to access services running on it.
Om the vps I mentioned cannot find a RewriteRule to https for port 980
# cat /etc/httpd/conf.d/default-virtualhost.inc
# ================= DO NOT MODIFY THIS FILE =================
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at NethServer official site: https://www.nethserver.org
#
#
#
# 15 user_settings
#
#
# 80vhost_default -- include template httpd/vhost-default
# for backward compatibility
#