nginx - Port redirection for domain -


i have nginx on vps working on port 80 (few domains on it), , want add glassfish on port 8080.

next want add domain glassfish, on domain should work on port 80.

how can that?

him add server rule, example:

server {     listen 80;     server_name demo.glass.fish;      location /  {         proxy_pass http://localhost:8080;     } } 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -