zoukankan      html  css  js  c++  java
  • 手机访问本地配置域名下的项目

    第一步

    先在本地环境中的Apache中找到httpd-vhosts.conf文件

    然后在httpd-vhosts.conf中先把ServerName 修改为本地IP,然后把Deny from all 用#注释掉

    <VirtualHost *:80>
        DocumentRoot "E:/scoopeAR/scoope-yii-2/backend/web/"
        ServerName   192.168.1.144
        ServerAlias  nadmin.scoope.net
        <Directory  "E:/scoopeAR/scoope-yii-2/backend/web/">
            AllowOverride All
            <IfDefine APACHE25>
                Require local
            </IfDefine>
            <IfDefine !APACHE25>
                Order Deny,Allow
     #           Deny from all
                Allow from 127.0.0.1 localhost ::1
            </IfDefine>
        </Directory>
    </VirtualHost>
    <VirtualHost *:80>

    第二步

    在C:WindowsSystem32driversetc 找到hosts文件 配置本机IP和自己配置的域名

    192.168.1.144      nadmin.scoope.net
  • 相关阅读:
    偏函数
    装饰器
    排序
    匿名函数
    参数传递
    pass语句
    不定长函数
    通用函数
    不定长参数(元祖)
    不定长参数(字典)
  • 原文地址:https://www.cnblogs.com/niuben/p/11752014.html
Copyright © 2011-2022 走看看