J
J
jeruthadam2017-09-01 16:39:26
Nginx
jeruthadam, 2017-09-01 16:39:26

How to "combine" API server and application in nginx?

There is an application in the form of static files. I distribute them to nginx.
The application uses the API server and accesses it using links of the type '/api/blah'. for Dev, a webpack server is configured that proxies the API. In general, the API runs on a different port.
How to combine this in nginx config i.e. distribute static and proxy API at the same time? To make the application think that they are in the same place.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question