ubuntu - hiding port with a path - nginx -


i have kibana running on port 9292 on localhost. want achieve when type http://ip_adress/kibana page port 9292 loaded path remain http://ip_address/kibana/index.html#/dashboard/file/default.json instead http://ip_adress:9292/index.html#/dashboard/file/default.json

here code:

server {     ...     location /kibana {          return 301 /kibana/;     }     location ~ /kibana/(.*) {                error_log /var/log/nginx/kibana-error.log debug;             proxy_pass   http://ip_address:9292/$1;     }    } 

finally updated kibana 3 4 helped , i'm using configuration :

upstream kibana {     server 127.0.0.1:5601; } ... location /kibana {     return 301 /kibana/;    }    location ~ /kibana/(.*) {         proxy_pass   http://kibana/$1;  } 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -