Apache Sets Access.conf - Permissions for Allowoverride Class. Htaccess

xiaoxiao2021-03-06  41

● 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 block

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 block, which is used to limit the URL of access. When the viewer wants to enter this website

, First to see the of the Access.conf file, the access limit of the second block, and then check the defined SRM..conf

AccessFileName .htaccess file, come to see the block in Access.conf file (preset is not using area

Block), and finally check the limitations in the block.

← Set root directory Options FOLLOWSYMLINKS ← This directory allows AllowOverride None to be allowed through Symbolic Links ← This directory is not. Htaccess file affects ← Set the root of the website Options Indexes FOLLOWSYMLINKS ← Set access to this directory, allowing the Server to build a list of files,

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

# 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

# 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上 上

# is similar to , but is used to limit URL

#SetHandler Server-Status

#Order deny, allow

# deny from all

#allow from .your_domain.com

#

# 上海 The block can display the current situation of the website servo program

# ← This block can show the setting of the servo program, must have a role in the MOD_INFO.c module

#Sethandler Server-Info

#Order deny.allow

# deny from all

#allow from .your_domain.com

#

# ← This block is because of Apache's previous version of BUG, ​​some people will use to attack

# 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

#

转载请注明原文地址:https://www.9cbs.com/read-82872.html

New Post(0)