K
K
KoystrubVS2019-12-03 17:45:26
1C-Bitrix
KoystrubVS, 2019-12-03 17:45:26

How to change bitrix url?

5de674f3393f0846774867.jpeg
It seems that somewhere it is easy to do, but I do not understand.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
KoystrubVS, 2019-12-03
@KoystrubVS

The decision was in my crooked hands. There was a specific brainycp panel as the main one. Only nginx is running there.
The second virt. I installed bitrix as the server, but proxying was crooked, brainy adds its own nginx entries for * php files. Now the working proxy scheme looks like this:
location /bitrix/sub {
proxy_pass http://192.168.0.103:80;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 950s;
}
location /bitrix/subws {
proxy_pass http://192.168.0.103:80;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 950s;
}
location / {
proxy_pass http://192.168.0.103:80;
proxy_redirect http://192.168.0.103:80 /;
proxy_set_header Host $host:443;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header HTTPS YES;
}
location ~ \.php$ {
proxy_pass http://192.168.0.103:80;
proxy_redirect http://192.168.0.103:80 /;
proxy_set_header Host $host:443;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header HTTPS YES;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question