Website on different port

Thinking about hosting a couple of web applications on ports other than 80. Will this create extra work for the user such as e.g. allow outgoing traffic on the specified port, or is all outgoing traffic allowed by default on win, mac and linux?

Take care

You can have multiple applications configured on your webserver. Whatever server tech you are using (Apache, NGinx, Caddy, etc) should have configurations on how to route the http requests. This way all of your sites will run off port 80.

Yes, I know. But I want to host some apps on for example 81,82,83. I want to know if these ports are blocked by default for the user (outgoing traffic). I dont know how firewalls works on outgoing, just know I have to open some ports when I want to receive incoming traffic

I do it this way. Nginx is listening only on 80 and 443 as default (normally always open). Then I redirect to each port (site) in Nginx.

server {
    server_name go4webdev.org www.go4webdev.org;
                      
    location / {
        proxy_pass http: //localhost:9090;
    }
}
                      
server {
    server_name static.go4webdev.org;
                      
    location / {
        proxy_pass http: //localhost:9091;
    }
}
                      
server {
    server_name table.go4webdev.org;
                      
    location / {
        proxy_pass http: //localhost:9092;
    }
}
                      
        
etc...

Hosting web applications on non-standard ports should not create extra work for users in terms of outgoing traffic. However, users may need to adjust firewall settings and include the port number in the URL when accessing the application. Clear communication and guidance are important for a smooth user experience

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.