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/;
}
滿天的星座2017-05-16 17:12:49
Official Documents
server {
listen 8080;
server_name www.domainn.com;
location /{
proxy_pass http://www.domainn.com/api/;
}
}