Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
12-08-2016, 01:11 AM #1
- Join Date
- Oct 2016
- Thanked 0 Times in 0 Posts
Limit a directory only accessible to local host.
Hi, I need to limit a directory can only be accessed from localhost and block any tips other than 127.0.0.1.
In my .htaccess looks like this
<Directory “/localhost/protected directory...”>
Require all granted
Require ip 127.0.0.1
I keep getting Internal Server Error.
Even if I just put in only
"With nothing in between"
I still get the same error, what am I doing wrong? I set up the server on macOS 10.12.1, the web root path is /Library/WebServer/Documents
Last edited by rich1812; 12-08-2016 at 01:15 AM.