⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commands.txt

📁 look at this software its cool really cool
💻 TXT
字号:
* MOD_GZIP APACHE CONFIGURATION DIRECTIVESNOTE: This documentation applies to mod-gzipversion(s) 1.3.19.1a ( and above ).* HOW TO ADD MOD_GZIP INFORMATION TO YOUR APACHE LOG FILESmod_gzip uses the existing Apache 'notes' method to allow youto add information to your existing Apache access.log file(s).The following special 'LogFormat' will show only the compressionrate achieved. If a file as not compressed a 'dash' or a ZEROwill print instead of the number...LogFormat "%h %l %u %t \"%r\" %>s %bmod_gzip: %{mod_gzip_compression_ratio}npct."common_with_mod_gzip_info1The following special 'LogFormat' will show all the detailsabout a compressed file...LogFormat "%h %l %u %t \"%r\" %>s %bmod_gzip: %{mod_gzip_result}nIn:%{mod_gzip_input_size}nOut:%{mod_gzip_output_size}n:%{mod_gzip_compression_ratio}npct."common_with_mod_gzip_info2In order to actually use any special 'LogFormat' you must specifyit as a 'CustomLog' entry using the following Apache directive...CustomLog logs/access.log common_with_mod_gzip_info2Warning: If you have more than one 'CustomLog' entry defined thenyou will get more than 1 log entry for each page requested fromthe Server. Unless you desire multiple log entries for eachrequest then make sure there is only one active 'CustomLog' entryin your httpd.conf file.See the Apache documentation itself for more information abouthow to use the 'LogFormat' and 'CustomLog' directives.* MOD_GZIP CONFIGURATION DIRECTIVESThese are the mod_gzip configuration directives that can beadded to your existing Apache httpd.conf configuration file...mod_gzip_on [Yes/No]Yes=mod_gzip will handle requests. No=mod_gzip is disabled.mod_gzip_add_header_count [Yes/No]Yes=Add header byte counts to Common Log Format output total(s).mod_gzip_keep_workfiles [Yes/No]Yes=Keep any work files used. No=Automatically delete any work files used.Only set this to 'Yes' for debugging purposes.mod_gzip_dechunk [Yes/No]Yes=Allow removal of 'Transfer-encoding: chunked' when necessary.Certain 'Back-end' CGI processors such as PHP4 and ColdFusion arealways returning responses using 'Transfer-Encoding: chunked'.In order for these responses to be compressed you should set thisdirective to 'Yes' which will allow mod_gzip to remove the'Transfer-Encoding: chunked' if/when it is necessary to do so.mod_gzip_min_http [ 1000 or 1001 or ???? ]Minimum HTTP protocol value to support. 1000 = HTTP/1.0  1001 = HTTP/1.1If a browser or User-Agent does not report itself as being capableof doing the 'minimum' HTTP level then no compression will be sent.The directive uses the same 'numeric' protocol numbers used internallyby Apache itself.mod_gzip_minimum_file_size [bytes]Minimum size ( bytes ) of a file eligible for compression.mod_gzip_maximum_file_size [bytes]Maximum size ( bytes ) of a file eligible for compression.mod_gzip_maximum_inmem_size [bytes]Maximum size ( bytes ) to use for in-memory compression.mod_gzip_temp_dir [Win32=c:\pathname UNIX=/pathname]The directory to use for work files and compression cache.The directory must already exist and have the correctread/write permissions for the user/group name(s) used bythe Server while it is running.Do not add a slash to the end of the directory pathname.If not specifed, the default for Windows is "c:\temp" and thedefault for UNIX is "/tmp".mod_gzip_item_include ARG1 ARG2ARG1=[mime,handler,file,uri,reqheader,rspheader]ARG2=[Name of item to INCLUDE in list of things that should be compressed]mod_gzip_item_exclude ARG1 ARG2ARG1=[mime,handler,file,uri,reqheader,rspheader]ARG2=[Name of item to EXCLUDE from list of things that should be compressed]mod_gzip_command_version [string]User defined pickup string to use for mod_gzip version command.mod_gzip_can_negotiate [Yes/No]Yes=Negotiate/send static compressed versions of files  No=Do not negotiate.The following commands are no longer supported...mod_gzip_add_vinfomod_gzip_do_static_filesmod_gzip_do_cgimod_gzip_verbose_debugmod_gzip_post_on* USING MOD_INFO TO SEE ALL APACHE MODULE CONFIGURATION DIRECTIVES...You can always simply 'ask' any Apache Web Server to show you allthe modules installed and print a list of all the directivesavailable for each module."mod_info" is the Apache standard module that supplies the information.This is a text based reprint of the Apache documentationpage for mod_info taken from a copy of Apache 1.3.12..[snip]Apache HTTP Server Version 1.3Module mod_infoThis module is contained in the mod_info.c file.It provides a comprehensive overview of the server configurationincluding all installed modules and directives in theconfiguration files.This module is not compiled into the server by default.It is only available in Apache 1.1 and later.To enable it, add the following line to the server buildConfiguration file, and rebuild the server:AddModule modules/standard/mod_info.oTo configure it, add the following to your access.conf file.<Location /server-info>SetHandler server-info</Location>You may wish to add a <Limit> clause inside the location directiveto limit access to your server configuration information.Once configured, the server information is obtained by accessinghttp://your.host.dom/server-infoNote that the configuration files are read by the module at run-time,and therefore the display may not reflect the running server's activeconfiguration if the files have been changed since the server was lastreloaded. Also, the configuration files must be readable by the useras which the server is running (see the User directive), or else thedirective settings will not be listed.It should also be noted that if mod_info is compiled into the server,its handler capability is available in all configuration files,including per-directory files (e.g., .htaccess).This may have security-related ramifications for your site.AddModuleInfoSyntax: AddModuleInfo module-name stringContext: server config, virtual hostStatus: baseModule: mod_browserCompatibility: Apache 1.3 and aboveThis allows the content of string to be shown as HTML interpreted,Additional Information for the module module-name. Example:AddModuleInfo mod_auth.c'See <A HREF="http://www.apache.org/docs/mod/mod_auth.html">http://www.apache.org/docs/mod/mod_auth.html</A>'[snip]If both mod_gzip and mod_info are installed and you send thefollowing request to the Server...http://your.host.dom/server-info...then this is what you should see in the mod_gzip sectionof the report...mod_gzip_onYes=mod_gzip will handle requests. No=mod_gzip is disabled.mod_gzip_add_header_countYes=Add header byte counts to Common Log Format output total(s).mod_gzip_keep_workfilesYes=Keep any work files used. No=Automatically delete any work files used.mod_gzip_dechunkYes=Allow removal of 'Transfer-encoding: chunked' when necessary.mod_gzip_min_httpMinimum HTTP protocol value to support. 1000 = HTTP/1.0  1001 = HTTP/1.1mod_gzip_minimum_file_sizeMinimum size ( bytes ) of a file eligible for compression.mod_gzip_maximum_file_sizeMaximum size ( bytes ) of a file eligible for compression.mod_gzip_maximum_inmem_sizeMaximum size ( bytes ) to use for in-memory compression.mod_gzip_temp_dirThe directory to use for work files and compression cache.mod_gzip_item_includeARG1=[mime,handler,file,uri,reqheader,rspheader]ARG2=[Name of item to INCLUDE in list of things that should be compressed]mod_gzip_item_excludeARG1=[mime,handler,file,uri,reqheader,rspheader]ARG2=[Name of item to EXCLUDE from list of things that should be compressed]mod_gzip_command_versionUser defined pickup string to use for mod_gzip version command.mod_gzip_can_negotiateYes=Negotiate/send static compressed versions of files  No=Do not negotiate.mod_gzip_add_vinfoConfiguration directive no longer supported.mod_gzip_do_static_filesConfiguration directive no longer supported.mod_gzip_do_cgiConfiguration directive no longer supported.mod_gzip_verbose_debugConfiguration directive no longer supported.mod_gzip_post_onConfiguration directive no longer supported.[snip]End of document.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -