B
B
BornTo FreeFall2020-10-22 12:47:34
1C-Bitrix
BornTo FreeFall, 2020-10-22 12:47:34

How to overcome the error with the work of bitrix sockets?

Good afternoon. I recently purchased a Bitrix license and decided to deploy a local server.
Everything works, but there is one problem when checking the correct operation of bitrix, an error pops up: I

kztr8we.png

tried all the folk methods. On Windows - I registered two hosts in the hosts - phpma.localbitrix.ru and localbitrix.ru (own, the host on which everything is located).

If you access the server IP, then everything opens, the socket check is successful.

rZ7awNb.png

I have already registered a domain in the host on the server, I try to ping it from Windows - everything is "OK", exactly the same as on the server.

Q5bCAct.png
XRmKtjV.png
gdnQkQu.png
Tdl4z4A.png

What could be the problem?

PS - I will answer in advance everyone's favorite question about rebooting adapters and the server - yes, I rebooted.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Denis Yuriev, 2020-10-22
@BornToFreeFall

etc/hosts should be corrected not only on your computer, but also on the computer/virtual machine where the test domain is spinning,
let's assume that you have BitrixVM there, which means that nginx is looking out .
Option 1
/etc/hosts should contain a line
127.0.0.1 phpma.localbitrix.ru
and nginx should also listen to this IP address for this domain
Option 2
/etc/hosts should contain the line
192.168.0.96 phpma.localbitrix.ru
To check - go to the server terminal and run
curl -I http://phpma.localbitrix.ru
should return the headers and code 200

V
Viktor Taran, 2020-10-22
@shambler81

When you transfer the real domain to this server, the problem will disappear, that's all.

B
BornTo FreeFall, 2020-10-26
@BornToFreeFall

Answer found. Can be closed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question