htaccess_files
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
htaccess_files [2008/02/03 14:35] – created juckins | htaccess_files [2021/09/30 14:39] – juckins | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======.htaccess files====== | + | ===== Apache |
[[http:// | [[http:// | ||
[[http:// | [[http:// | ||
Line 18: | Line 18: | ||
Adding password for user rbowen | Adding password for user rbowen | ||
</ | </ | ||
+ | |||
+ | To allow access to [[http:// | ||
+ | < | ||
+ | # Refuse direct access to all files | ||
+ | Order deny,allow | ||
+ | Deny from all | ||
+ | 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: | ||
+ | < | ||
+ | Allow from all | ||
+ | </ | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | AuthUserFile / | ||
+ | AuthName " | ||
+ | AuthType Basic | ||
+ | require user [username] | ||
+ | satisfy any | ||
+ | deny from all | ||
+ | allow from 192.168.1. | ||
+ | allow from 10.1.1.45 | ||
+ | allow from 172.16.5.106 |
htaccess_files.txt · Last modified: 2021/09/30 14:40 by juckins