A
A
Adel Khalitov2019-08-11 01:48:34
Nginx
Adel Khalitov, 2019-08-11 01:48:34

How to set up 1s for vps?

I bought a vps centos 7,
installed postgress, set no errors to autoload,
installed 1c server, set no errors to autoload,
5d4f4af3baf2b914313897.png
allocated a domain for 1c (some.ru),
configured nginx for it

server {
        server_name     some.ru www.some.ru;

        location / {
                proxy_pass	http://127.0.0.1:1540;
        }
}

I enter the administration console 1c (from another PC), enter the name
http://some.ru
порт: 80

Gives an error message. What's wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kinash, 2019-08-13
@Dementor

If you want to access the internal server from the Internet, then when describing the central node of the 1C cluster, you must specify the name by which you are accessing from the Internet. Theoretically, a computer cluster can consist of more than one computer (suddenly) and therefore the server agent in its response returns the name of the computer where the external client should go to serve its requests. Your first packet on some.ru can and will be somehow miraculously routed to the destination, but the response will tell you to keep knocking on localhost:1541 (if you specified this in the cluster settings)
And the fact that you change the standard port 1540 to 80 is not at all good, since the port proxy setting for the cluster is not very obvious - in addition to the agent and manager ports, there is also a range of ten for worker processes that are randomly allocated.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question