Please tell me how to write the configuration when https://api.XXX.com implicitly jumps to https://www.XXX.com/api/ with parameters
曾经蜡笔没有小新2017-05-16 17:09:01
The reverse proxy can be configured on api..com to point to www..com/api/
伊谢尔伦2017-05-16 17:09:01
server {
...
server_name api.xxx.com;
location / {
proxy_pass www.xxx.com/api/;
}
}
伊谢尔伦2017-05-16 17:09:01
It is recommended to use nginx proxy and open nginx.conf
Add a new server block
server {
server_name api.xxx.com;
location / {
proxy_pass www.xxx.com/api/;
}
}