Contents tagged with port redirect

  • How to redirect from port 80 on port 9000 with nginx

    Hello everybody,

    today I want to share with you how to make redirects with help of nginx. 

    I have executed docker image of portainer in my linux environment on port 9000. 

    And I need to make nginx to redirect incoming trafic from port 80 on port 9000. In order to achieve it I've made the following modifications in nginx.conf:


    server {                listen 80 default_server;                listen [::]:80 default_server;                server_name _;                root /usr/share/nginx/html;

                   # Load configuration files for the default server block.                include /etc/nginx/default.d/*.conf;

                   location / {                              … more