In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail what the parameters of the apache configuration file httpd.conf are used for. Xiaobian thinks it is quite practical, so share it with you as a reference. I hope you can gain something after reading this article.
... --Set access to specified directories
... --Sets the directive to apply to the specified file
Example: Deny access to files starting with '-ht'
Order allow,deny
Deny from all
... --Sets instructions that apply to specific URLs, containers contain instructions that apply only to specific URLs
... --Configuration of virtual hosts
Set access to the root directory
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Options option
All --Users can do anything in this directory
ExecuCGI-Allows users to execute CGI programs in directories
FollowSymLinks --files or directories that the server can point to using symbolic links
Indexes --The server can generate a list of files for this directory
None --Access to this directory is not allowed
Allow option--Sets the hosts allowed to access Apache servers
Allow from all --Allow all hosts to access
Allow from 201.1.1.1 234.3.4.1--Allow host access from specified IP
Deny option--Sets the host to deny access to Apache servers
Deny from all --Deny access to all hosts
Deny from 201.1.1.1 234.3.4.1--Deny host access from 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 MIME(Mutiproposed Internet Mail Extensions) type to use if the server is unsure what type to use.
If your site is primarily text, it's best to use "text/plain"
If the content on your site is primarily binary files (images, videos, etc.), you can use "application/octet-stream"
This allows your browser to display binary files correctly when they are received, rather than displaying binary text directly
About "apache configuration file httpd.conf parameters what to use" This article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it to let more people see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.