why I can not change Couchbase Web Console Port to ‘80’?
[root@c3-trelay02 bin]# ./couchbase-cli cluster-init -c localhost:8091 -u admin -p password --cluster-init-port=80
ERROR: unable to init/modify localhost (400) Bad Request
[u'The port number must be greater than 1023 and less than 65536.']
In my IDC, only the port 80 is used for developer on pc.
Is there a way to use port ‘80’
Are you going to only use that to access couchbase console? If so, you can just run reverse proxy there. Otherwise changing just this port will not make whole couchbase server available, because you have to make all these port accessible http://docs.couchbase.com/admin/admin/Install/install-networkPorts.html.
This is an example of config for nginx reverse proxy:
Sorry to dig up an old thread. I, too, am having problems getting similar 401 related errors.
Here is my relevant nginx config block.
upstream dbhost {
server db-live.domain.com:8091;
}
server {
server_name dbadmin.domain.com;
listen 443 ssl;
include lvlr/ssl_domain.conf; // for our wildcard domain ssl
index index.html;
location / {
index index.html;
rewrite ^/$ /index.html break;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization;
proxy_pass_header Accept;
proxy_pass_header Server;
proxy_pass http://dbhost;
}
}
I am seeing a similar error.
[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (resetAlerts, line 0) https://dbadmin.domain.com/controller/resetAlerts?token=2&uuid=[redacted]
Basically, GET requests seem fine but POSTs fail?
I’m sure it’s something simple I’m missing, but this is driving me nuts. Thanks.