How do I secure my WAMP so only localhost can acce

2019-07-21 18:42发布

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条回答
Emotional °昔
2楼-- · 2019-07-21 19:14
Deny From All
Allow From localhost 127.0.0.1

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

查看更多
登录 后发表回答