Serverroot/Apache
# You can use the absolute path E: webapache
# Serverroot is used to specify the httpd running directory of the daemon. After httpd is started, it automatically changes the current directory of the process to this directory, therefore, if the specified file or directory in the file is a relative path, the actual path is located under the path defined by serverroot.
Pidfile logs/httpd. PID
# The process Number of the httpd daemon is recorded in the file specified by pidfile. Because httpd can automatically copy itself, there are multiple httpd processes in the system, but only one process is the process initially started, it is the parent process of other processes. sending signals to this process affects all httpd processes. The process Number of the httpd parent process is recorded in the file defined by pidfile.
Timeout 300
# Timeout defines the timeout interval between the client program and the server. After the timeout interval (in seconds) is exceeded, the server will be disconnected from the client.
Keepalive on
# In HTTP 1.0, only one HTTP request can be transmitted over one connection, while the keepalive parameter is used to support one connection and multiple transmission functions in HTTP 1.1, in this way, multiple HTTP requests can be transmitted in a connection. Although this function is only supported by newer browsers, this option is still enabled.
Maxkeepaliverequests 100
# Maxkeepaliverequests is the maximum number of HTTP requests that a connection can perform. Setting this value to 0 will allow unlimited transmission requests in one connection. In fact, no client program requests too many pages in a single connection. Generally, the connection is completed if this limit is not reached.
Keepalivetimeout 15
# Keepalivetimeout: test the time between multiple requests in a connection. If the server has completed one request but has never received the next request from the client program, after the interval exceeds the value set by this parameter, the server will be disconnected.
<Ifmodule mpm_winnt.c>
Threadsperchild 250
Maxrequestsperchild 0
<Ifmodule>
Listen 80
# Port, boot module. Many of the following modules are only available in liunx
Loadmodule access_module modules/mod_access.so
Loadmodule actions_module modules/mod_actions.so
Loadmodule alias_module modules/mod_alias.so
Loadmodule asis_module modules/mod_asis.so
Loadmodule auth_module modules/mod_auth.so
Loadmodule dir_module modules/mod_dir.so
Loadmodule cgi_module modules/mod_cgi.so
Loadmodule mime_module modules/mod_mime.so
Loadmodule log_config_module modules/mod_log_config.so
Loadmodule autoindex_module modules/mod_autoindex.so
Loadmodule negotiation_module modules/mod_negotiation.so
Loadmodule setenvif_module modules/mod_setenvif.so
# Loadmodule cern_meta_module modules/mod_cern_meta.so
# Loadmodule env_module modules/mod_env.so
# Loadmodule expires_module modules/mod_expires.so
# Loadmodule file_cache_module modules/mod_file_cache.so
# Loadmodule headers_module modules/mod_headers.so
# Loadmodule imap_module modules/mod_imap.so
# Loadmodule auth_anon_module modules/mod_auth_anon.so
# Loadmodule auth_dbm_module modules/mod_auth_dbm.so
# Loadmodule auth_digest_module modules/mod_auth_digest.so
# Loadmodule dav_module modules/mod_dav.so
# Loadmodule dav_fs_module modules/mod_dav_fs.so
# Loadmodule include_module modules/mod_include.so
# Loadmodule info_module modules/mod_info.so
# Loadmodule isapi_module modules/mod_isapi.so
# Loadmodule mime_magic_module modules/mod_mime_magic.so
# Loadmodule proxy_module modules/mod_proxy.so
# Loadmodule proxy_connect_module modules/mod_proxy_connect.so
# Loadmodule proxy_http_module modules/mod_proxy_http.so
# Loadmodule proxy_ftp_module modules/mod_proxy_ftp.so
# Loadmodule speling_module modules/mod_speling.so
# Loadmodule status_module modules/mod_status.so
# Loadmodule unique_id_module modules/mod_unique_id.so
# Loadmodule usertrack_module modules/mod_usertrack.so
# Loadmodule ssl_module modules/mod_ssl.so
# Loadmodule vhost_alias_module modules/mod_vhost_alias.so
# Loadmodule userdir_module modules/mod_userdir.so
Loadmodule rewrite_module modules/mod_rewrite.so
# Extendedstatus on
Serveradmin abc@123.com
# Server administrator email, displayed in the probe when an error occurs
Servername localhost.domain.com
UseCanonicalName off
# Whether to allow reverse query of the DNS domain name of each visitor
DocumentRoot/Apache
# Directory of the webpage. This is very important.
# You have set E: Web is a directory, and Web is set E: webtwo on the VM.
# If the program can still run but is not in DocumentRoot, the program will have an error
& Lt; directory/>
Options followsymlinks Multiviews execcgi
AllowOverride none
& Lt;/directory>
& Lt; directory/Apache/>
Options followsymlinks Multiviews execcgi
AllowOverride none
Order allow, deny
Php_admin_value open_basedir/Apache/
Allow from all
& Lt;/directory>
# The following is about the user directory configuration, that is, the user can use http://www.xxxx.com /~ Username to access your own website!
# Userdir/Apache/webroot/aaausersfreehost/*/public_html
# & Lt; directory e:/virtual host/*/public_html>
# AllowOverride none
# Options Multiviews symlinksifownermatch IncludesNOEXEC execcgi
# The following command defines that PHP can only operate on files in the public_html directory and Its subdirectories.
# Php_flag engine off # indicates that the PHP files in this directory are not interpreted and executed, so PHP permissions are not allowed.
# Php_admin_value open_basedir ./
# Order allow, deny
# Allow from all
# & Lt;/directory>
# The following command maps the virtual directory freehost to the actual path/Apache/webroot/users!
# Aliasmatch ^/class/(%0-9%}.html $/Article. php? ArticleID = $1
# Aliasmatch ^/class/([0-9]). ([0-9a-za-z] ).html $/Article. php? ArticleID = $1 & amp; pagenum = $2
Directoryindex index.html index.htm index. php index. cgi BBs. pl index. pl Admin. php login.htm login.html login. php
# Silent Host Header
Accessfilename. htaccess
& Lt; Files ~ ^. Ht>
Order allow, deny
Deny from all
& Lt;/Files>
Typesconfig CONF/mime. Types
Defaulttype text/plain
& Lt; ifmodule mod_mime_magic.c>
Mimemagicfile CONF/magic
& Lt;/ifmodule>
# The following are restrictions on concurrent connections to the host
# & Lt; ifmodule prefork. c>
# Serverlimit 2000
# Startservers 15
# Minspareservers 15
# Maxspareservers 20
# Maxclients 850 # Max Client
# Maxrequestsperchild 10000 # maximum number of requests
# & Lt;/ifmodule>
# Access control for a single file
# & Lt; Files ~ Name of the file to be blocked>
# Order allow, deny
# Allow from allow IP addresses
# Deny from all
# & Lt;/Files>
Hostnamelookups off
# Enablemmap off
# Enablesendfile off
Errorlog logs/error. Log
Loglevel warn
Logformat success ?? ? Ferer} I er-Agent} I combined
Logformat success ?? ?? Common
Logformat ferer} I->? Referer
Logformat er-Agent} I agent
Customlog logs/access. Log common
# Customlog logs/referer. Log Referer
# Customlog logs/agent. Log agent
# Customlog logs/access. Log combined
ServerTokens full
Serversignature off
# When the requested webpage does not exist, the server generates an error document. By default, the serversignature option is enabled, the last line of the error document contains the server name, Apache version, and other information.
# Alias/class // Apache/webroot/PHPA # virtual directory
# & Lt; directory/Apache/phpsafe> # Configure permissions for virtual directories
# Options followsymlinks # Multiviews execcgi indicates that the CGI execution permission is granted.
# Php_admin_value safe_mode 1 # indicates that PHP scripts under this directory can only have permissions under php_safe.
# Php_admin_value open_basedir/Apache/phpsafe/
# Restrict PHP file operations only under/Apache/phpsafe and its subdirectories.
# Php_flag engine off
# Indicates that the PHP script in this directory will not be interpreted and executed. This option requires PHP to be installed in modules!
# AllowOverride none
# Order allow, deny
# Allow from all # allow anyone to access from anywhere
# & Lt;/directory>
# ScriptAlias/cgi-bin/E:/apache2/cgi-bin/
# & Lt; directory e:/apache2/cgi-bin>
# AllowOverride none
# Options none
# Order allow, deny
# Allow from all
# & Lt;/directory>
Indexoptions fancyindexing versionsort
# Addiconbyencoding (CMP,/icons/compressed.gif) x-compress X-Gzip
# Addiconbytype (txt,/icons/text.gif) text /*
# Addiconbytype (IMG,/icons/image2.gif) image /*
# Addiconbytype (SND,/icons/sound2.gif) Audio /*
# Addiconbytype (VID,/icons/movie.gif) Video /*
# Addicon/icons/binary.gif. bin. exe
# Addicon/icons/binhex.gif. hqx
# Addicon/icons/tar.gif. Tar
# Addicon/icons/world2.gif. WRL .wrl.gz. Fig. VRM. iv
# Addicon/icons/compressed.gif. Z. Z. tgz. GZ. Zip
# Addicon/icons/a.gif. PS. AI. EPS
# Addicon/icons/layout.gif. html. shtml. htm. PDF
# Addicon/icons/text.gif. txt
# Addicon/icons/c.gif. c
# Addicon/icons/p.gif. pl. py
# Addicon/icons/f.gif.
# Addicon/icons/dvi.gif. DVI
# Addicon/icons/uuencoded.gif. uu
# Addicon/icons/script.gif. conf. Sh. Shar. CSH. Ksh. TCL
# Addicon/icons/tex.gif. Tex
# Addicon/icons/bomb.gif Core
# Addicon/icons/back.gif ..
# Addicon/icons/hand.right.gif readme
# Addicon/icons/folder.gif ^ directory ^
# Addicon/icons/blank.gif ^ blankicon ^
# Defaulticon/icons/unknown.gif
Adddescription gzip compressed document. GZ
Adddescription tar archive. Tar
Adddescription gzip compressed tar archive. tgz
Readmename readme.html
Headername header.html
Indexignore .?? **~ * # Header * readme * rcs cvs *, V *, T
Addencoding X-compress Z
Addencoding X-gzip GZ tgz
Addlanguage ca. ca
Addlanguage CS. cz. CS
Addlanguage da. dk
Addlanguage de. de
Addlanguage El. El
Addlanguage en. En
Addlanguage eo. EO
Addlanguage es. es
Addlanguage et. et
Addlanguage Fr. fr
Addlanguage he. He
Addlanguage HR. hr
Addlanguage it. it
Addlanguage Ja. Ja
Addlanguage KO. Ko
Addlanguage LTZ. LTZ
Addlanguage NL. nl
Addlanguage NN. nn
Addlanguage No. No
Addlanguage pl. Po
Addlanguage pt. PT
Addlanguage Pt-Br. Pt-Br
Addlanguage Ru. ru
Addlanguage Sv. sv
Addlanguage ZH-CN. ZH-CN
Addlanguage ZH-TW. ZH-TW
Languagepriority ZH-cn En ca CS da de El EO es et Fr he hr it Ja ko ltz nl nn no PL Pt-Br Ru sv zh-TW
Forcelanguagepriority prefer fallback
# Adddefacharset ISO-8859-1
Adddefacharcharset gb2312
Addcharset ISO-8859-1. iso8859-1. Latin1
Addcharset ISO-8859-2. iso8859-2. latin2. CEN
Addcharset ISO-8859-3. iso8859-3. latin3
Addcharset ISO-8859-4. iso8859-4. latin4
Addcharset ISO-8859-5. iso8859-5. latin5. Cyr. iso-Ru
Addcharset ISO-8859-6. iso8859-6. latin6. arb
Addcharset ISO-8859-7. iso8859-7. latin7. GRK
Addcharset ISO-8859-8. iso8859-8. latin8. heb
Addcharset ISO-8859-9. iso8859-9. latin9. TRK
Addcharset ISO-2022-JP. iso2022-jp. JIS
Addcharset ISO-2022-KR. iso2022-kr. kis
Addcharset ISO-2022-CN. iso2022-cn. CIS
Addcharset big5. big5. big5
# For Russian, more than one charset is used (depends on client, mostly ):
Addcharset windows-1251. cp-1251. Win-1251
Addcharset cp866. cp866
Addcharset KOI8-r. koi8-r. koi8-ru
Addcharset KOI8-ru. koi8-uk. ua
Addcharset ISO-10646-UCS-2. ucs2
Addcharset ISO-10646-UCS-4. ucs4
Addcharset UTF-8. utf8
Addcharset gb2312. gb2312. GB
Addcharset utf-7. utf7
Addcharset UTF-8. utf8
Addcharset big5. big5. B5
Addcharset EUC-TW. euc-TW
Addcharset EUC-JP. euc-JP
Addcharset EUC-KR. euc-KR
Addcharset shift_jis. sjis
# Install PHP in CGI Mode
# ScriptAlias/_ php_dir _ // Apache/cgiphp5/
# Addtype application/X-httpd-PHP. PhP4. php. htm. php3. Inc. Fire
# Action application/X-httpd-PHP/_ php_dir _/php.exe
# Run PHP in Apache module Mode
Loadmodule php4_module/Apache/PHP/SAPI/php4apache. dll
Phpinidir/Apache/PHP. ini
Addtype application/X-httpd-PHP. php. htm. php3
Addtype application/X-httpd-PHP-source. PHPs
# Support for fcgi
# Loadmodule fastcgi_module modules/mod_fastcgi.dll
# Addhandler FastCGI-script. fcgi. FPL
Addtype application/X-tar. tgz
# Addencoding X-compress. Z
# Addencoding X-gzip. GZ. tgz
Addtype application/X-compress. Z
Addtype application/X-gzip. GZ. tgz
Addhandler CGI-script. cgi. pl
# Addhandler send-as-is Asis
# Addhandler imap-file Map
Addhandler type-map VaR
# Addtype text/html. shtml
# Addoutputfilter between des. shtml
# Errordocument 500 the server made a boo.
# Errordocument 404/Apache/yyfzx/soft
# Errordocument 404/Apache/yyfzx/soft
# Errordocument 402 http://www.example.com/subscription_info.html
Browsermatch Mozilla/2 nokeepalive
Browsermatch MSIE 4.0b2; nokeepalive downgrade-1.0 force-response-1.0
Browsermatch RealPlayer 4.0 force-response-1.0
Browsermatch Java/1.0 force-response-1.0
Browsermatch JDK/1.0 force-response-1.0
Browsermatch Microsoft Data Access Internet publishing provider redirect-carefully
Browsermatch ^ webdrive redirect-carefully
Browsermatch ^ webdavfs/1. [012] redirect-carefully
Browsermatch ^ gnome-VFS redirect-carefully
# & Lt; Location/Server-status>
# Sethandler server-status
# Order deny, allow
# Deny from all
# Allow from .51web.net
# & Lt;/location>
# & Lt; Location/Server-Info>
# Sethandler server-Info
# Order deny, allow
# Deny from all
# Allow from .51web.net
# & Lt;/location>
& Lt; ifmodule mod_ssl.c>
Include CONF/SSL. conf
& Lt;/ifmodule>
# The following describes the configurations of virtual machines.
Namevirtualhost 218.87.169.209: 80
& Lt; virtualhost 218.87.169.209: 80>
Rewriteengine on
Rewriterule ^/index.htm $/index. php
Rewriterule ^/soft/([0-9] 2.16.htm $/download. php? Soft = $1
Rewriterule ^/sort/([0-_] 2.16.htm $/list. php? List = $1
Rewriterule ^/sort/index.htm $/type. php
Rewriterule ^/a-z/([0-9] 2.16.htm $/az. php? Id = $1
DocumentRoot/Apache/mayidown
Servername mayidown.3322.org
& Lt;/virtualhost>
// It starts with #. It is not loaded at startup. I provide a VM for you to refer to the URL rewriting function.