htaccess_files
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
htaccess_files [2016/10/15 09:41] – juckins | htaccess_files [2018/11/27 19:25] – juckins | ||
---|---|---|---|
Line 19: | Line 19: | ||
</ | </ | ||
- | To allow access to just specific directories, | + | To allow access to [[http:// |
< | < | ||
# Refuse direct access to all files | # Refuse direct access to all files | ||
Line 25: | Line 25: | ||
Deny from all | Deny from all | ||
Allow from 127.0.0.1 | Allow from 127.0.0.1 | ||
+ | Allow from localhost | ||
+ | Allow from 192.168.1.0/ | ||
</ | </ | ||
- | Then create an htaccess file in whatever directories you want to allow access to: | + | Then create an .htaccess file in whatever directories you want to allow access to: |
< | < | ||
Allow from all | Allow from all | ||
</ | </ | ||
- | + | ||
+ | [[https:// |
htaccess_files.txt · Last modified: 2021/09/30 14:40 by juckins