Some websites cannot work when accessing the guest machine from the host if there is a port number in the URL (for example, localhost: 8080). I want to access a website on a guest machine through a browser without a port number in the url, for example, vagrant.localhost.
Is it possible to access the website on the guest machine through a browser without a port in the URL?
To do this, you need to forward guest port 80 to host port 80.
, , , Windows, Linux Mac OS X root < 1024.
, :
config.vm.network "forwarded_port", guest: 80, host: 80
vagrant up -, http://localhost. , hosts, 127.0.0.1.
vagrant up
http://localhost
hosts
127.0.0.1
Source: https://habr.com/ru/post/1546517/More articles:multiple java.exe when restarting android studio - javaRedirects and one-way differences, use cases? - ruby โโ| fooobar.comSlick: Codegen Foreign Key Links - scalaRadiate a signal in a static function - c ++Communication between server thread and man-machine interface (MMI) - c ++Request to launch using - nhibernateDesign and architecture for multiple concurrent users subscribing to a data feed - javaGet the list of attachments in messages without downloading the whole message - gmail-apiIs there a way to get all the values โโof variables in a python script? - pythonHow to extract variables in a Python script without executing it? - python-3.xAll Articles