Answer the question
In order to leave comments, you need to log in
reverse proxy nginx. How to open bitrix by subdirectory link?
Good afternoon!
Faced the following problem. There are two containers:
1. React application
2. Bek, which is written in Bitrix (the final CMS is not important, it can be WP)
Accordingly, two docker containers are launched:
- React is located at: http://ip_server_address:8081/
- Bek ( bitrix) is located at: http://ip_server_address:8082/ there is an example.com
domain where the React application is opened.
I need Bitrix to open at example.com/api
I use jwilder/nginx-proxy , whose configuration file looks like this:
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://ip_адрес_сервера:8081/
}
location /api/ {
proxy_pass http://ip_адрес_сервера:8082/
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question