How do I secure my WAMP so only localhost can access root directory?

落爺英雄遲暮 提交于 2019-12-11 04:08:54

问题


I've managed to setup my WAMP configuration so I can show my clients their websites while they're in development, but I want to secure the root directory so only I can access it.

As it stands now, anyone can simply go to the domain name and see all the other projects I'm working on.

For example, I want to be able to give my clients access to: http://example.com/customer1 but I don't want them to see http://example.com.

I know I have to configure something in my httpd.conf file but not really sure what to do.

Hope I explained this properly.


回答1:


Deny From All
Allow From localhost 127.0.0.1

It's some time since I used apache, but this should do it.



来源:https://stackoverflow.com/questions/14204135/how-do-i-secure-my-wamp-so-only-localhost-can-access-root-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!