dtnwm4807 2017-08-15 03:32
浏览 158

如何使用ip for laravel访问网页?

I am having problem to access my website using ip from a different pc. For example, the ip that I want to access is 192.168.0.150/season_pass. If I use that ip, the page could not be found but if I just enter 192.168.0.150, it can access the web page. Supposedly 192.168.0.150 should redirect to the dashboard page.

Below are the https-vhosts.conf file that I edit,

<VirtualHost *:80>
    DocumentRoot "C:\xampp\htdocs\season_pass\public"
    ServerAdmin admin@localhost
    ServerName season_pass

    <Directory "C:\xampp\htdocs\season_pass\public">
      AllowOverride All
      Options Indexes FollowSymLinks
      Require local
      Require all granted
    </Directory>
</VirtualHost> 

The hosts file,

127.0.0.1       season_pass
::1             season_pass

For the apache, I am using xampp and the development is on laravel framework.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 C# datagridview 栏位进度
    • ¥15 vue3页面el-table页面数据过多
    • ¥100 vue3中融入gRPC-web
    • ¥15 kali环境运行volatility分析android内存文件,缺profile
    • ¥15 写uniapp时遇到的问题
    • ¥15 vs 2008 安装遇到问题
    • ¥15 matlab有限元法求解梁带有若干弹簧质量系统的固有频率
    • ¥15 找一个网络防御专家,外包的
    • ¥100 能不能让两张不同的图片md5值一样,(有尝)
    • ¥15 informer代码训练自己的数据集,改参数怎么改