问题
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