Drill down to the apache configuration file httpd.conf for partial parameter descriptions
- 2020-06-23 00:05:24
- OfStack
<
Directory
>
...
<
/Directory
>
- Sets the access permissions for the specified directory
<
Files
>
...
<
/Files
>
Sets the instructions that apply to the specified file
Example: Denied access to files beginning with '-ht'
<
Files ~"^\.ht"
>
Order allow,deny
Deny from all
<
/Files
>
<
Location
>
...
<
/Location
>
-- Sets the instructions that apply to specific URL, and the container contains instructions that apply only to specific URL
<
VirtualHost
>
...
<
/VirtualHost
>
-- Virtual host configuration
Set the access to the root directory
<
Directory /
>
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
<
/Directory
>
Options options
All - The user can do anything in this directory
ExecCGI - Allows users to execute CGI programs in a directory
FollowSymLinks - Files or directories that the server can point to using symbolic links
Indexes - The server generates a list of files for this directory
None -- Access to this directory is not allowed
Allow option - Sets the host that allows access to the Apache server
Allow from all - Allows access to all hosts
Allow from 201.1.1.1 234.3.4.1 -- Allows host access from the specified IP
Deny option - sets the host that denies access to the Apache server
Deny from all -- Denied access to all hosts
Deny from 201.1.1.1 234.3.4.1 -- Deny host access from the specified IP
#
Order option -- Used to specify the order of allow and deny
Order deny,allow
Deny from all
Allow from 202.44.23.1
Order allow,deny
Allow from all
Deny from 202.44.23.1
DefaultType text/plain
Configure the default type of MIME(Mutiproposed Internet Mail Extensions, multi-functional Internet Mail extension service) to use if the server is unsure what type to use.
text/plain is best used if your site is mostly text
application/ ES137en-ES138en if the content of your website is mainly binary files (pictures, videos, etc.), you can use application/ ES137en-ES138en
This will allow your browser to display the correct way when it receives a binary file, instead of displaying the binary text