zoukankan      html  css  js  c++  java
  • wamp2.5 局域网无法访问问题

    1.打开http.conf文件,在对应处修改为如下内容(通常经过步骤一之后就能访问了,若不行则再执行后面步骤)

    <Directory />
        Options FollowSymLinks
        AllowOverride all
        Order deny,allow
        #   Deny from all
        Allow from all
    </Directory>
    <Directory "D:/wamp/www/">    
      Options Indexes FollowSymLinks

       AllowOverride all order deny
    ,allow allow from all Require all granted
    # Require local </Directory>

    2.在http-vhosts.conf中添加

    <VirtualHost *:80>
        ServerAdmin webmaster@dummy-host2.example.com
        DocumentRoot "d:/wamp/www"
        ServerName 172.16.2.70
        ServerAlias 172.16.2.70
        ErrorLog "logs/dummy-host2.example.com-error.log"
        CustomLog "logs/dummy-host2.example.com-access.log" common
    </VirtualHost>

    3.在本机system中添加(这句是让自己访问自己IP看能否访问)

    127.0.0.1 172.16.2.70

    4.在http.conf找到这一句(如果没有显示禁止访问,只是显示无法连接)

    Listen 127.0.0.1:80

    改成

    Listen 0.0.0.0:80
  • 相关阅读:
    supervisor
    ULB
    RAM
    sshpass和做软链接
    阿里RDS
    阿里EMR部署
    kafka原理和操作
    maven---settings.xml配置
    maven项目导出依赖的Jar包以及项目本身以jar包形式导出详细教程
    Maven中settings.xml的配置项说明精讲
  • 原文地址:https://www.cnblogs.com/dreamydeng/p/6134145.html
Copyright © 2011-2022 走看看