gpt4 book ai didi

laravel - 在本地网络上共享代客站点

转载 作者:行者123 更新时间:2023-12-05 07:05:27 25 4
gpt4 key购买 nike

根据 laravel.com/docs/7.x/valet#sharing-sites 上的“在您的本地网络上共享站点”部分

它指出:

If you wish to allow other devices on your local network to access theValet sites on your machine via your machine's IP address (eg:192.168.1.10/app-name.test), you will need to manually edit the appropriate Nginx configuration file for that site to remove therestriction on the listen directive by removing the the 127.0.0.1:prefix on the directive for ports 80 and 443.

我现在正在尝试了解如何为特定站点添加 nginx 配置文件。即 http://my-site.test/

(manually edit the appropriate Nginx configuration file for that site)

最佳答案

您只能使用 IP 地址从本地网络打开您的网站,例如。 http://192.168.1.10/my-site.test

关于laravel - 在本地网络上共享代客站点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62744617/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com