● Access.conf setting instructions
Access.conf files can be used to set access to the website directory, because the settings in this file will involve some reserved words,
After doing some explanations first, you will know more about it. The first is used in the
Options, Allowoverrides and Deny, Allow, etc., Options are used to set the functionality of the directory; Allowoverrides
Decides whether to abolish the previously set access. And Deny and Allow are rejected or allow which parts are connected to this network
Station directory. The available parameters of Options are listed below:
Options parameters
Representative meaning
All
Users can do anything in this directory
Execcgi
Allow CGI Script in this directory
FOLLOWSYMLINKS
Sever can use Symbolic Link to connect to files or directories in this directory
Indexes
Sever can generate a list of files in this directory
Includes
Provide SSI's functionality
Includesnoexec
SSI functions can be used, but cancel the CGI function of #EXEC and #include
MultiViews
Allows different files via a conversation, such as web pages that can be transferred by the browser as required by the browser`
None
Safety is not allowed to access this directory
SymlinksLfownermatch
Allow access to the Symbolic Links link, but only the owner of this directory
ALOWOVERRIDE reads .htacess in the directory (if there is this file in this directory) file to decide whether to change the original
Come to set access rights. For example, "AllowOverride None" means not to read .htaccess file; all represents .htaccess
The content is accurate, and the original access rights are changed. In order to avoid the user to establish .htaccess file to change the access,
Therefore, settings in the Access.conf file, each directory is defined as "Allowoverride None".
There is also a
, First to see the
AccessFileName .htaccess file, come to see the
Block), and finally check the limitations in the
And can be connected to other directories via Symbolic Link Allowoverride None ← Not Accept. Htaccess Setting ORDER ALLOW, DENYALLOW FROM ALL ← Allow all users to access
# allow from flag.com.tw ← Only allowable from Flag.com.tw domain, but you must first "deny from all" can reject other places.
# deny from 203.74.205 ← Refuse from 203.74.205 Directory>
# This is the location of Apache installation, the above setting is to install Apache in / usr / local / apache # assume that this WWW server is set to fbsd.hmes.kh.edu.tw, when the user http: / When /fbsd.hmes.kh.edu.tw, that is, connected to / usr / local / apache / share / htdocs
Allowoverride NoneOptions None ← This is the cgi-bin directory, set to completely not allowed access
Directory>
# 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上
#
#SetHandler Server-Status
#Order deny, allow
# deny from all
#allow from .your_domain.com
# Location>
# 上海 The block can display the current situation of the website servo program
#
#Sethandler Server-Info
#Order deny.allow
# deny from all
#allow from .your_domain.com
# Location>
#
# Deny from ALL system, enabling this block to guide it to the page specified by ErrorDocument.
#Errordocument 403 http://phf.apache.org/phf_abuse_log.cgi
# Location>