wampserver_x86_3.0.6 配置本地局域网访问

5 篇文章 0 订阅
4 篇文章 0 订阅
  1. 右键单击任务栏小图标, Wamp Settings 中选中 Menu item: Online/Offonline; 然后左键单击时就可以在底部看到切换在线模式的选项
    图2
    图2

  2. 编辑wamp目录下的apache配置文件中的httpd.conf

    • 244行左右:
    <Directory />
        AllowOverride none
        # Require all denied
    </Directory>
    

    改为

        AllowOverride none
        # Require all denied   注释掉原配置, 以免后面忘了是改的啥(下同)
        
        Require all granted
    
    • 288行左右:
        <Directory "${INSTALL_DIR}/www/">
            #
            ...
            
            # AllowOverride all
            
            ...
            
            #   onlineoffline tag - don't remove
            Require all denied
        </Directory>
    

    改为

        <Directory "${INSTALL_DIR}/www/">
            #
            ...
            
            # AllowOverride all
            Options None
            
            ...
            
            # onlineoffline tag - don't remove
            # Require all denied 
            Require all granted
        </Directory>
    
    • 387行左右
        <Directory "${INSTALL_DIR}/cgi-bin">
            AllowOverride None
            
            Require all granted
        </Directory>
    

    改为

        <Directory "${INSTALL_DIR}/cgi-bin">
            # AllowOverride None
    
            Options None
            
            Require all granted
        </Directory>
    
  3. 打开httpd-vhosts.conf 将对应域名下Directory里面内容更换为以下内容

    <Directory  "E:/www/public/">
    	Options +Indexes +Includes +FollowSymLinks +MultiViews
    	AllowOverride All
    	Require  all granted
    </Directory>
    
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值