Here is the job/problem : I want to change the port of nginx from 443 to 4443.
I did :
modification of /etc/nginx/conf.d/yunohost_admin.conf
10 server {
11 listen 4443 ssl default_server;
modification of /etc/nginx/conf.d/fqdn.conf
17 server {
18 listen 4443 ssl;
Seems nginx is listenning on port :
netstat -lntpu | grep 443
tcp 0 0 0.0.0.0:4443 0.0.0.0:* LISTEN 19311/nginx
https://192.168.0.253:4443/yunohost/api/installed is telling me :
{“installed”: true}
But I can’t log in the website (api had been started with /etc/init.d/yunohost-api restart )
Firewall is open :
yunohost firewall list
openned_ports:
- 22
- 25
- 53
- 443
- 465
- 993
- 5222
- 5269
- 5290
- 80
- 4443
I tryed to concatenate url with port in : /usr/share/yunohost/admin/js/app.js
141 jQuery.ajax({
142 //url: ‘https://’+ store.get(‘url’) + uri,
143 url: ‘https://’+ store.get(‘url’ + ‘:4443’ ) + uri,
But seems it can’t work due to same origin policy if I understood well
So can I have any help / clue about this. At the end I want to have this configuration :
443 – SSLH listening (and redirecting request
– for https --> 4443
– for ssh --> 22
– adn so on
I always got this errror :
https://IP:4443/yunohost/admin/#/login
l’API ne répond pas (Erreur : 0 error)
thx in advance for reply