Home  >  Q&A  >  body text

Is there any experienced Nginx driver? I want to make a repost, please give me some advice.

I want to forward it, that is, forward www.domainn.com:8080 to www.domain.com/API

Can it be done? Please provide a configuration example, thank you very much! :)


【Resolved】

Add to the configuration file:

location /api {

        proxy_pass http://192.168.0.1:8080/;

    }
过去多啦不再A梦过去多啦不再A梦2714 days ago372

reply all(1)I'll reply

  • 滿天的星座

    滿天的星座2017-05-16 17:12:49

    Official Documents

    
    server {
        listen    8080;
        server_name    www.domainn.com;
    
        location /{
          proxy_pass http://www.domainn.com/api/;
        }
    }

    reply
    0
  • Cancelreply