84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
Please tell me how to write the configuration when https://api.XXX.com implicitly jumps to https://www.XXX.com/api/ with parameters
rewrite ^/(.*)$ https://www.XXX.com/api/$1 permanent;
The reverse proxy can be configured on api..com to point to www..com/api/
server { ... server_name api.xxx.com; location / { proxy_pass www.xxx.com/api/; } }
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/; } }
rewrite ^/(.*)$ https://www.XXX.com/api/$1 permanent;
The reverse proxy can be configured on api..com to point to www..com/api/
It is recommended to use nginx proxy and open nginx.conf
Add a new server block