Firefox works autonomously with a virtual host

So, I have a standalone website on my PC that I want to test in Firefox. I would like to do it offline.

The problem is that I defined the virtual host for the website in the Apache httpad.conf configuration file as follows:

<VirtualHost 127.0.0.1>
   DocumentRoot "D:\data\o\WebProjects\website\public"
   ServerName website
</VirtualHost>

In online mode, I can go to http: // website / and test it normally. However, it does not work offline. Anyone hack this?

+3
source share
2 answers

, FF TCP- ( ). http://127.0.0.1 . , .

+1

URL- hosts?

127.0.0.1       localhost www.xyz.com 

Windows C:\Windows\System32\drivers\etc, Linux /etc/hosts.conf.

0

All Articles