- 论坛徽章:
- 0
|
在http.conf文件里没有配置/sandbox/www,
twiki.conf大致是这样的:- <Directory "/var/www/html/twiki5/bin">
- AllowOverride None
- Order Allow,Deny
- Allow from all
- Deny from env=blockAccess
- Options ExecCGI FollowSymLinks
- SetHandler cgi-script
- # Password file for TWiki users
- AuthUserFile /var/www/html/twiki5/data/.htpasswd
- AuthName 'Enter your WikiName: (First name and last name, no space, no dots, capitalized, e.g. JohnSmith)'
- AuthType Basic
- # File to return on access control error (e.g. wrong password)
- # By convention this is the TWikiRegistration page, that allows users
- # to register with the TWiki. Apache requires this to be a *local* path.
- # Comment this out if you setup TWiki to completely deny access to TWikiGuest
- # in all webs or change the path to a static html page.
- ErrorDocument 401 /twiki5/bin/view/TWiki/TWikiRegistration
- # Alternatively if your users are all known to be registered you may want
- # to redirect them to the ResetPassword page.
- # ErrorDocument 401 /twiki5/bin/view/TWiki/ResetPassword
- # Limit access to configure to specific IP addresses and or users.
- # Make sure configure is not open to the general public.
- # The configure script is designed for administrators only.
- # The script itself and the information it reveals can be abused by
- # attackers if not properly protected against public access.
- # Replace JohnDoe with the login name of the administrator
- <FilesMatch "^configure.*">
- SetHandler cgi-script
- Order Deny,Allow
- Deny from all
- Allow from 127.0.0.1 192.168.21.56 192.168.21.51 all
- Require user admin
- Satisfy Any
- </FilesMatch>
复制代码 |
|