Can I enter the site not by the domain, but by the link? For example http://1.2.3.4:80/www/mysite.ru

  • And what's stopping you? Do you have any problems? - pavel
  • Well writes 403 Forbidden - JamesJGoodwin

1 answer 1

As a rule , based on a domain name in an HTTP request, a web server serving several sites directs to a particular site. This mechanism is called "virtual hosts" , with its help one IP-address can serve different combinations of protocols and domain names (or something else, like the client's IP-address), as if they were different hosts. But the real machine is only one, because the hosts are virtual.

Accordingly, if the virtual host of your site receives requests only with a specific domain name, if you do not specify it, the requests will go wrong. And not the fact that they are waiting there. For example, if the domain name is omitted altogether, it is highly likely that the requests will go to the “virtual host by default”, where usually the owners page of the machine itself. Or a stub with an error.

If not, then the method may be. Depends on your web server configuration.