douchuza8908 2015-01-22 09:40
浏览 102
已采纳

从远程计算机阻止WampServer主页

Is there any way that I can block WampServer home page to be accessible from a remote machine (over a LAN) but still I want folders to be accessible.

Eg : I want : http://192.168.127.98 to be blocked

and http://192.168.127.98/website/ to be accessible

  • 写回答

1条回答 默认 最新

  • doupi3874 2015-01-22 09:55
    关注

    Thanks Quentin, you saved my day. I edited httpd.conf

    <Directory "c:/wamp/www">
         Order Deny,Allow
         Deny from all
         Allow from 127.0.0.1
         Allow from ::1
         Allow from localhost
    </Directory>
    
    <Directory "c:/wamp/www/website">
        Allow from all
    </Directory>
    

    and it works like a charm

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 adb连接不到手机是怎么回事?
  • ¥20 抓取数据时发生错误: get_mooncake_data() missing 1 required positional argument: 'driver'的问题,怎么改出正确的爬虫代码?
  • ¥15 vs2022无法联网
  • ¥15 TCP的客户端和服务器的互联
  • ¥15 VB.NET操作免驱摄像头
  • ¥15 笔记本上移动热点开关状态查询
  • ¥85 类鸟群Boids——仿真鸟群避障的相关问题
  • ¥15 CFEDEM自带算例错误,如何解决?
  • ¥15 有没有会使用flac3d软件的家人
  • ¥20 360摄像头无法解绑使用,请教解绑当前账号绑定问题,