On the server under CentOS and the Isp Panel (nginx), it was necessary to contact the site hosted on it through localhost. But I can not find the routing map localhost and the desired URL. Tell me in which direction to move.

  • Good day! if under the routing map you understand the configuration of your web server, then ispmanager usually puts the main nginx config along the path /etc/nginx/nginx.conf. And already there will be inclodes that connect additional configurations of web sites on the server, for example include /etc/nginx/conf.d/*.conf; include / etc / nginx / sites-enabled / *; conf.d usually contains configs with locales that are common to all websites, for example phpadmin or afterlogic, and sites-enabled are the configs of websites. If the routing card is an ip-host match, then usually the file is in / etc / hosts - Sergey Gamov
  • First move towards clarifying the meaning of the question. What is access to hosted site? Do you want to make a request from the server itself via wget, from a browser or what? It is not clear that you consider the "routing card", there is no such term, especially with reference to localhost: traffic to localhost is not routed, not transmitted through the default gateway - well, this is the very definition of localhost. Several sites can be located on localhost, you yourself know which one you need? - AK
  • There can be many @AK sites, but only one can be accessed through localhost URI for obvious reasons. - 0andriy

0