{"id":158,"date":"2008-12-15T13:51:00","date_gmt":"2008-12-15T05:51:00","guid":{"rendered":""},"modified":"2013-11-19T21:44:02","modified_gmt":"2013-11-19T13:44:02","slug":"php%e7%8e%af%e5%a2%83%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/158.html","title":{"rendered":"PHP\u73af\u5883\u5b89\u88c5"},"content":{"rendered":"<p>\u88c5APACHE\uff0c\u88c5\u597d\u540e\u66f4\u6539conf\u6587\u4ef6\u5939\u91cc\u9762\u7684httpd.conf\u6587\u4ef6\u91cc\u9762\u7684\u914d\u7f6e\u4fe1\u606f\u3002<\/p>\n<p>DirectoryIndex index.php \u6307\u5b9a\u4e3b\u76ee\u5f55\u9ed8\u8ba4\u6587\u4ef6\u3002DocumentRoot &#8220;F:\\HTTP\\PHP&#8221; \u8bbe\u7f6e\u9ed8\u8ba4\u4e3b\u76ee\u5f55\u3002<\/p>\n<p>\u5b89\u88c5PHP\u5b89\u88c5\u5305\uff0c\u9009\u76f8\u5e94\u7684APACHE\u9879\u76ee\u3002<\/p>\n<p>\u6211\u7684\u7535\u8111-&gt;\u53f3\u952e\u5c5e\u6027-&gt;\u73af\u5883\u53d8\u91cf-&gt;PATH\u70b9\u7f16\u8f91-&gt;\u52a0\u5165\u76f8\u5e94\u7684PHP\u76ee\u5f55,\u5982E:\\PHP<\/p>\n<p><img decoding=\"async\" class=\"blogimg\" src=\".\/wp-content\/uploads\/hibaidu\/9713b739821ce0e3d56225c8.jpg\" alt=\"\" border=\"0\" \/><\/p>\n<p><img decoding=\"async\" class=\"blogimg\" src=\".\/wp-content\/uploads\/hibaidu\/2df7dfc9e8c866367f3e6fca.jpg\" alt=\"\" border=\"0\" \/><\/p>\n<p>Apache\u7684httpd.conf\u6587\u4ef6\uff1a<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n#\r\n# This is the main Apache HTTP server configuration file. It contains\r\n\r\nthe\r\n# configuration directives that give the server its instructions.\r\n# See &lt;URL:http:\/\/httpd.apache.org\/docs\/2.2&gt; for detailed information.\r\n# In particular, see\r\n# &lt;URL:http:\/\/httpd.apache.org\/docs\/2.2\/mod\/directives.html&gt;\r\n# for a discussion of each configuration directive.\r\n#\r\n# Do NOT simply read the instructions in here without understanding\r\n# what they do. They\u2019re here only as hints or reminders. If you are\r\n\r\nunsure\r\n# consult the online docs. You have been warned.\r\n#\r\n# Configuration and logfile names: If the filenames you specify for many\r\n# of the server\u2019s control files begin with &quot;\/&quot; (or &quot;drive:\/&quot; for Win32),\r\n\r\nthe\r\n# server will use that explicit path. If the filenames do *not* begin\r\n# with &quot;\/&quot;, the value of ServerRoot is prepended \u2014 so &quot;logs\/foo.log&quot;\r\n# with ServerRoot set to &quot;E:\/www\/Apache 2.2&quot; will be interpreted by the\r\n# server as &quot;E:\/www\/Apache 2.2\/logs\/foo.log&quot;.\r\n#\r\n# NOTE: Where filenames are specified, you must use forward slashes\r\n# instead of backslashes (e.g., &quot;c:\/apache&quot; instead of &quot;c:\\apache&quot;).\r\n# If a drive letter is omitted, the drive on which httpd.exe is located\r\n# will be used by default. It is recommended that you always supply\r\n# an explicit drive letter in absolute paths to avoid confusion.\r\n\r\n#\r\n# ServerRoot: The top of the directory tree under which the server\u2019s\r\n# configuration, error, and log files are kept.\r\n#\r\n# Do not add a slash at the end of the directory path. If you point\r\n# ServerRoot at a non-local disk, be sure to point the LockFile directive\r\n# at a local disk. If you wish to share the same ServerRoot for multiple\r\n# httpd daemons, you will need to change at least LockFile and PidFile.\r\n#\r\nServerRoot &quot;E:\/www\/Apache 2.2&quot;\r\n\r\n#\r\n# Listen: Allows you to bind Apache to specific IP addresses and\/or\r\n# ports, instead of the default. See also the &lt;VirtualHost&gt;\r\n# directive.\r\n#\r\n# Change this to Listen on specific IP addresses as shown below to\r\n# prevent Apache from glomming onto all bound IP addresses.\r\n#\r\n#Listen 12.34.56.78:80\r\nListen 80\r\n\r\n#\r\n# Dynamic Shared Object (DSO) Support\r\n#\r\n# To be able to use the functionality of a module which was built as a\r\n\r\nDSO you\r\n# have to place corresponding `LoadModule\u2019 lines at this location so the\r\n# directives contained in it are actually available _before_ they are\r\n\r\nused.\r\n# Statically compiled modules (those listed by `httpd -l\u2019) do not need\r\n# to be loaded here.\r\n#\r\n# Example:\r\n# LoadModule foo_module modules\/mod_foo.so\r\nLoadModule php5_module &quot;E:\/www\/php 5.2.8\/php5apache2_2.dll&quot;\r\n\r\n#\u6ce8\u610f\u8def\u5f84\u8981\u7528\u53cc\u5f15\u53f7\r\n#\r\nLoadModule actions_module modules\/mod_actions.so\r\nLoadModule alias_module modules\/mod_alias.so\r\nLoadModule asis_module modules\/mod_asis.so\r\nLoadModule auth_basic_module modules\/mod_auth_basic.so\r\n#LoadModule auth_digest_module modules\/mod_auth_digest.so\r\n#LoadModule authn_alias_module modules\/mod_authn_alias.so\r\n#LoadModule authn_anon_module modules\/mod_authn_anon.so\r\n#LoadModule authn_dbd_module modules\/mod_authn_dbd.so\r\n#LoadModule authn_dbm_module modules\/mod_authn_dbm.so\r\nLoadModule authn_default_module modules\/mod_authn_default.so\r\nLoadModule authn_file_module modules\/mod_authn_file.so\r\n#LoadModule authnz_ldap_module modules\/mod_authnz_ldap.so\r\n#LoadModule authz_dbm_module modules\/mod_authz_dbm.so\r\nLoadModule authz_default_module modules\/mod_authz_default.so\r\nLoadModule authz_groupfile_module modules\/mod_authz_groupfile.so\r\nLoadModule authz_host_module modules\/mod_authz_host.so\r\n#LoadModule authz_owner_module modules\/mod_authz_owner.so\r\nLoadModule authz_user_module modules\/mod_authz_user.so\r\nLoadModule autoindex_module modules\/mod_autoindex.so\r\n#LoadModule cache_module modules\/mod_cache.so\r\n#LoadModule cern_meta_module modules\/mod_cern_meta.so\r\nLoadModule cgi_module modules\/mod_cgi.so\r\n#LoadModule charset_lite_module modules\/mod_charset_lite.so\r\n#LoadModule dav_module modules\/mod_dav.so\r\n#LoadModule dav_fs_module modules\/mod_dav_fs.so\r\n#LoadModule dav_lock_module modules\/mod_dav_lock.so\r\n#LoadModule dbd_module modules\/mod_dbd.so\r\n#LoadModule deflate_module modules\/mod_deflate.so\r\nLoadModule dir_module modules\/mod_dir.so\r\n#LoadModule disk_cache_module modules\/mod_disk_cache.so\r\n#LoadModule dumpio_module modules\/mod_dumpio.so\r\nLoadModule env_module modules\/mod_env.so\r\n#LoadModule expires_module modules\/mod_expires.so\r\n#LoadModule ext_filter_module modules\/mod_ext_filter.so\r\n#LoadModule file_cache_module modules\/mod_file_cache.so\r\n#LoadModule filter_module modules\/mod_filter.so\r\n#LoadModule headers_module modules\/mod_headers.so\r\n#LoadModule ident_module modules\/mod_ident.so\r\n#LoadModule imagemap_module modules\/mod_imagemap.so\r\nLoadModule include_module modules\/mod_include.so\r\n#LoadModule info_module modules\/mod_info.so\r\nLoadModule isapi_module modules\/mod_isapi.so\r\n#LoadModule ldap_module modules\/mod_ldap.so\r\n#LoadModule logio_module modules\/mod_logio.so\r\nLoadModule log_config_module modules\/mod_log_config.so\r\n#LoadModule log_forensic_module modules\/mod_log_forensic.so\r\n#LoadModule mem_cache_module modules\/mod_mem_cache.so\r\nLoadModule mime_module modules\/mod_mime.so\r\n#LoadModule mime_magic_module modules\/mod_mime_magic.so\r\nLoadModule negotiation_module modules\/mod_negotiation.so\r\n#LoadModule proxy_module modules\/mod_proxy.so\r\n#LoadModule proxy_ajp_module modules\/mod_proxy_ajp.so\r\n#LoadModule proxy_balancer_module modules\/mod_proxy_balancer.so\r\n#LoadModule proxy_connect_module modules\/mod_proxy_connect.so\r\n#LoadModule proxy_ftp_module modules\/mod_proxy_ftp.so\r\n#LoadModule proxy_http_module modules\/mod_proxy_http.so\r\n#LoadModule rewrite_module modules\/mod_rewrite.so\r\nLoadModule setenvif_module modules\/mod_setenvif.so\r\n#LoadModule speling_module modules\/mod_speling.so\r\n#LoadModule ssl_module modules\/mod_ssl.so\r\n#LoadModule status_module modules\/mod_status.so\r\n#LoadModule substitute_module modules\/mod_substitute.so\r\n#LoadModule unique_id_module modules\/mod_unique_id.so\r\n#LoadModule userdir_module modules\/mod_userdir.so\r\n#LoadModule usertrack_module modules\/mod_usertrack.so\r\n#LoadModule version_module modules\/mod_version.so\r\n#LoadModule vhost_alias_module modules\/mod_vhost_alias.so\r\n\r\n&lt;IfModule !mpm_netware_module&gt;\r\n&lt;IfModule !mpm_winnt_module&gt;\r\n#\r\n# If you wish httpd to run as a different user or group, you must run\r\n# httpd as root initially and it will switch.\r\n#\r\n# User\/Group: The name (or #number) of the user\/group to run httpd as.\r\n# It is usually good practice to create a dedicated user and group for\r\n# running httpd, as with most system services.\r\n#\r\nUser daemon\r\nGroup daemon\r\n\r\n&lt;\/IfModule&gt;\r\n&lt;\/IfModule&gt;\r\n\r\n# \u2018Main\u2019 server configuration\r\n#\r\n# The directives in this section set up the values used by the \u2018main\u2019\r\n# server, which responds to any requests that aren\u2019t handled by a\r\n# &lt;VirtualHost&gt; definition. These values also provide defaults for\r\n# any &lt;VirtualHost&gt; containers you may define later in the file.\r\n#\r\n# All of these directives may appear inside &lt;VirtualHost&gt; containers,\r\n# in which case these default settings will be overridden for the\r\n# virtual host being defined.\r\n#\r\n\r\n#\r\n# ServerAdmin: Your address, where problems with the server should be\r\n# e-mailed. This address appears on some server-generated pages, such\r\n# as error documents. e.g. admin@your-domain.com\r\n#\r\nServerAdmin 810492306@qq.com\r\n\r\n#\r\n# ServerName gives the name and port that the server uses to identify\r\n\r\nitself.\r\n# This can often be determined automatically, but we recommend you\r\n\r\nspecify\r\n# it explicitly to prevent problems during startup.\r\n#\r\n# If your host doesn\u2019t have a registered DNS name, enter its IP address\r\n\r\nhere.\r\n#\r\n#ServerName www.cehui0704.cn:80\r\n\r\n#\r\n# DocumentRoot: The directory out of which you will serve your\r\n# documents. By default, all requests are taken from this directory, but\r\n# symbolic links and aliases may be used to point to other locations.\r\n#\r\nDocumentRoot &quot;E:\/www\/Http&quot;\r\n\r\n#\r\n# Each directory to which Apache has access can be configured with\r\n\r\nrespect\r\n# to which services and features are allowed and\/or disabled in that\r\n# directory (and its subdirectories).\r\n#\r\n# First, we configure the &quot;default&quot; to be a very restrictive set of\r\n# features.\r\n#\r\n&lt;Directory \/&gt;\r\n    Options FollowSymLinks\r\n    AllowOverride None\r\n    Order deny,allow\r\n    Deny from all\r\n&lt;\/Directory&gt;\r\n\r\n#\r\n# Note that from this point forward you must specifically allow\r\n# particular features to be enabled \u2013 so if something\u2019s not working as\r\n# you might expect, make sure that you have specifically enabled it\r\n# below.\r\n#\r\n\r\n#\r\n# This should be changed to whatever you set DocumentRoot to.\r\n#\r\n&lt;Directory &quot;E:\/www\/Http&quot;&gt;\r\n    #\r\n    # Possible values for the Options directive are &quot;None&quot;, &quot;All&quot;,\r\n    # or any combination of:\r\n    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI\r\n\r\nMultiViews\r\n    #\r\n    # Note that &quot;MultiViews&quot; must be named *explicitly* \u2014 &quot;Options All&quot;\r\n    # doesn\u2019t give it to you.\r\n    #\r\n    # The Options directive is both complicated and important. Please\r\n\r\nsee\r\n    # http:\/\/httpd.apache.org\/docs\/2.2\/mod\/core.html#options\r\n    # for more information.\r\n    #\r\n    Options Indexes FollowSymLinks\r\n\r\n    #\r\n    # AllowOverride controls what directives may be placed in .htaccess\r\n\r\nfiles.\r\n    # It can be &quot;All&quot;, &quot;None&quot;, or any combination of the keywords:\r\n    #   Options FileInfo AuthConfig Limit\r\n    #\r\n    AllowOverride None\r\n\r\n    #\r\n    # Controls who can get stuff from this server.\r\n    #\r\n    Order allow,deny\r\n    Allow from all\r\n\r\n&lt;\/Directory&gt;\r\n\r\n#\r\n# DirectoryIndex: sets the file that Apache will serve if a directory\r\n# is requested.\r\n#\r\n&lt;IfModule dir_module&gt;\r\n    DirectoryIndex index.html index.php default.aspx\r\n&lt;\/IfModule&gt;\r\n\r\n#\r\n# The following lines prevent .htaccess and .htpasswd files from being\r\n# viewed by Web clients.\r\n#\r\n&lt;FilesMatch &quot;^\\.ht&quot;&gt;\r\n    Order allow,deny\r\n    Deny from all\r\n    Satisfy All\r\n&lt;\/FilesMatch&gt;\r\n\r\n#\r\n# ErrorLog: The location of the error log file.\r\n# If you do not specify an ErrorLog directive within a &lt;VirtualHost&gt;\r\n# container, error messages relating to that virtual host will be\r\n# logged here. If you *do* define an error logfile for a &lt;VirtualHost&gt;\r\n# container, that host\u2019s errors will be logged there and not here.\r\n#\r\nErrorLog &quot;logs\/error.log&quot;\r\n\r\n#\r\n# LogLevel: Control the number of messages logged to the error_log.\r\n# Possible values include: debug, info, notice, warn, error, crit,\r\n# alert, emerg.\r\n#\r\nLogLevel warn\r\n\r\n&lt;IfModule log_config_module&gt;\r\n    #\r\n    # The following directives define some format nicknames for use with\r\n    # a CustomLog directive (see below).\r\n    #\r\n    LogFormat &quot;%h %l %u %t \\&quot;%r\\&quot; %&gt;s %b \\&quot;%{Referer}i\\&quot; \\&quot;%{User-Agent}\r\n\r\ni\\&quot;&quot; combined\r\n    LogFormat &quot;%h %l %u %t \\&quot;%r\\&quot; %&gt;s %b&quot; common\r\n\r\n    &lt;IfModule logio_module&gt;\r\n      # You need to enable mod_logio.c to use %I and %O\r\n      LogFormat &quot;%h %l %u %t \\&quot;%r\\&quot; %&gt;s %b \\&quot;%{Referer}i\\&quot; \\&quot;%{User-\r\n\r\nAgent}i\\&quot; %I %O&quot; combinedio\r\n    &lt;\/IfModule&gt;\r\n\r\n    #\r\n    # The location and format of the access logfile (Common Logfile\r\n\r\nFormat).\r\n    # If you do not define any access logfiles within a &lt;VirtualHost&gt;\r\n    # container, they will be logged here. Contrariwise, if you *do*\r\n    # define per-&lt;VirtualHost&gt; access logfiles, transactions will be\r\n    # logged therein and *not* in this file.\r\n    #\r\n    CustomLog &quot;logs\/access.log&quot; common\r\n\r\n    #\r\n    # If you prefer a logfile with access, agent, and referer information\r\n    # (Combined Logfile Format) you can use the following directive.\r\n    #\r\n    #CustomLog &quot;logs\/access.log&quot; combined\r\n&lt;\/IfModule&gt;\r\n\r\n&lt;IfModule alias_module&gt;\r\n    #\r\n    # Redirect: Allows you to tell clients about documents that used to\r\n    # exist in your server\u2019s namespace, but do not anymore. The client\r\n    # will make a new request for the document at its new location.\r\n    # Example:\r\n    # Redirect permanent \/foo http:\/\/www.cehui0704.cn\/bar\r\n\r\n    #\r\n    # Alias: Maps web paths into filesystem paths and is used to\r\n    # access content that does not live under the DocumentRoot.\r\n    # Example:\r\n    # Alias \/webpath \/full\/filesystem\/path\r\n    #\r\n    # If you include a trailing \/ on \/webpath then the server will\r\n    # require it to be present in the URL. You will also likely\r\n    # need to provide a &lt;Directory&gt; section to allow access to\r\n    # the filesystem path.\r\n\r\n    #\r\n    # ScriptAlias: This controls which directories contain server\r\n\r\nscripts.\r\n    # ScriptAliases are essentially the same as Aliases, except that\r\n    # documents in the target directory are treated as applications and\r\n    # run by the server when requested rather than as documents sent to\r\n\r\nthe\r\n    # client. The same rules about trailing &quot;\/&quot; apply to ScriptAlias\r\n    # directives as to Alias.\r\n    #\r\n    ScriptAlias \/cgi-bin\/ &quot;E:\/www\/Apache 2.2\/cgi-bin\/&quot;\r\n\r\n&lt;\/IfModule&gt;\r\n\r\n&lt;IfModule cgid_module&gt;\r\n    #\r\n    # ScriptSock: On threaded servers, designate the path to the UNIX\r\n    # socket used to communicate with the CGI daemon of mod_cgid.\r\n    #\r\n    #Scriptsock logs\/cgisock\r\n&lt;\/IfModule&gt;\r\n\r\n#\r\n# &quot;E:\/www\/Apache 2.2\/cgi-bin&quot; should be changed to whatever your\r\n\r\nScriptAliased\r\n# CGI directory exists, if you have that configured.\r\n#\r\n&lt;Directory &quot;E:\/www\/Apache 2.2\/cgi-bin&quot;&gt;\r\n    AllowOverride None\r\n    Options None\r\n    Order allow,deny\r\n    Allow from all\r\n&lt;\/Directory&gt;\r\n\r\n#\r\n# DefaultType: the default MIME type the server will use for a document\r\n# if it cannot otherwise determine one, such as from filename extensions.\r\n# If your server contains mostly text or HTML documents, &quot;text\/plain&quot; is\r\n# a good value. If most of your content is binary, such as applications\r\n# or images, you may want to use &quot;application\/octet-stream&quot; instead to\r\n# keep browsers from trying to display binary files as though they are\r\n# text.\r\n#\r\nDefaultType text\/plain\r\n\r\n&lt;IfModule mime_module&gt;\r\n    #\r\n    # TypesConfig points to the file containing the list of mappings from\r\n    # filename extension to MIME-type.\r\n    #\r\n    TypesConfig conf\/mime.types\r\n\r\n    #\r\n    # AddType allows you to add to or override the MIME configuration\r\n    # file specified in TypesConfig for specific file types.\r\n    #\r\n    #AddType application\/x-gzip .tgz\r\n\r\n    #\r\n    # AddEncoding allows you to have certain browsers uncompress\r\n    # information on the fly. Note: Not all browsers support this.\r\n    #\r\n    #AddEncoding x-compress .Z\r\n    #AddEncoding x-gzip .gz .tgz\r\n    #\r\n    # If the AddEncoding directives above are commented-out, then you\r\n    # probably should define those extensions to indicate media types:\r\n    #\r\n    AddType application\/x-compress .Z\r\n    AddType application\/x-gzip .gz .tgz\r\n    AddType application\/x-httpd-php .php\r\n\r\n    #\r\n    # AddHandler allows you to map certain file extensions to &quot;handlers&quot;:\r\n    # actions unrelated to filetype. These can be either built into the\r\n\r\nserver\r\n    # or added with the Action directive (see below)\r\n    #\r\n    # To use CGI scripts outside of ScriptAliased directories:\r\n    # (You will also need to add &quot;ExecCGI&quot; to the &quot;Options&quot; directive.)\r\n    #\r\n    #AddHandler cgi-script .cgi\r\n\r\n    # For type maps (negotiated resources):\r\n    #AddHandler type-map var\r\n\r\n    #\r\n    # Filters allow you to process content before it is sent to the\r\n\r\nclient.\r\n    #\r\n    # To parse .shtml files for server-side includes (SSI):\r\n    # (You will also need to add &quot;Includes&quot; to the &quot;Options&quot; directive.)\r\n    #\r\n    #AddType text\/html .shtml\r\n    #AddOutputFilter INCLUDES .shtml\r\n&lt;\/IfModule&gt;\r\n\r\n#\r\n# The mod_mime_magic module allows the server to use various hints from\r\n\r\nthe\r\n# contents of the file itself to determine its type. The MIMEMagicFile\r\n# directive tells the module where the hint definitions are located.\r\n#\r\n#MIMEMagicFile conf\/magic\r\n\r\n#\r\n# Customizable error responses come in three flavors:\r\n# 1) plain text 2) local redirects 3) external redirects\r\n#\r\n# Some examples:\r\n#ErrorDocument 500 &quot;The server made a boo boo.&quot;\r\n#ErrorDocument 404 \/missing.html\r\n#ErrorDocument 404 &quot;\/cgi-bin\/missing_handler.pl&quot;\r\n#ErrorDocument 402 http:\/\/www.cehui0704.cn\/subscription_info.html\r\n#\r\n\r\n#\r\n# EnableMMAP and EnableSendfile: On systems that support it,\r\n# memory-mapping or the sendfile syscall is used to deliver\r\n# files. This usually improves server performance, but must\r\n# be turned off when serving from networked-mounted\r\n# filesystems or if support for these functions is otherwise\r\n# broken on your system.\r\n#\r\n#EnableMMAP off\r\n#EnableSendfile off\r\n\r\n# Supplemental configuration\r\n#\r\n# The configuration files in the conf\/extra\/ directory can be\r\n# included to add extra features or to modify the default configuration\r\n\r\nof\r\n# the server, or you may simply copy their contents here and change as\r\n# necessary.\r\n\r\n# Server-pool management (MPM specific)\r\n#Include conf\/extra\/httpd-mpm.conf\r\n\r\n# Multi-language error messages\r\n#Include conf\/extra\/httpd-multilang-errordoc.conf\r\n\r\n# Fancy directory listings\r\n#Include conf\/extra\/httpd-autoindex.conf\r\n\r\n# Language settings\r\n#Include conf\/extra\/httpd-languages.conf\r\n\r\n# User home directories\r\n#Include conf\/extra\/httpd-userdir.conf\r\n\r\n# Real-time info on requests and configuration\r\n#Include conf\/extra\/httpd-info.conf\r\n\r\n# Virtual hosts\r\n#Include conf\/extra\/httpd-vhosts.conf\r\n\r\n# Local access to the Apache HTTP Server Manual\r\n#Include conf\/extra\/httpd-manual.conf\r\n\r\n# Distributed authoring and versioning (WebDAV)\r\n#Include conf\/extra\/httpd-dav.conf\r\n\r\n# Various default settings\r\n#Include conf\/extra\/httpd-default.conf\r\n\r\n# Secure (SSL\/TLS) connections\r\n#Include conf\/extra\/httpd-ssl.conf\r\n#\r\n# Note: The following must must be present to support\r\n#       starting without SSL on platforms with no \/dev\/random equivalent\r\n#       but a statically compiled-in mod_ssl.\r\n#\r\n&lt;IfModule ssl_module&gt;\r\nSSLRandomSeed startup builtin\r\nSSLRandomSeed connect builtin\r\n&lt;\/IfModule&gt;\r\n\r\n#asp.net\r\nLoadModule aspdotnet_module &quot;modules\/mod_aspdotnet.so&quot;\r\n\r\nAddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj \\\r\nlicx rem resources resx soap vb vbproj vsdisco webinfo\r\n\r\n&lt;IfModule mod_aspdotnet.cpp&gt;\r\n# Mount the ASP.NET example application\r\n\r\nAspNetMount \/asp &quot;E:\/www\/http\/asp&quot;\r\n# Map all requests for \/afishman to the application files\r\n\r\nAlias \/asp &quot;E:\/www\/http\/asp&quot;\r\n# Allow asp.net scripts to be executed in the afishman example\r\n\r\n&lt;Directory &quot;E:\/www\/http\/asp&quot;&gt;\r\n\r\nOptions FollowSymlinks ExecCGI\r\n\r\nOrder allow,deny\r\n\r\nAllow from all\r\n\r\nDirectoryIndex Default.htm Default.aspx\r\n\r\n&lt;\/Directory&gt;\r\n# For all virtual ASP.NET webs, we need the aspnet_client files\r\n\r\n# to serve the client-side helper scripts.\r\n\r\nAliasMatch \/aspnet_client\/system_web\/(\\d+)_(\\d+)_(\\d+)_(\\d+)\/(.*)\r\n\r\n&quot;C:\/Windows\/Microsoft.NET\/Framework\/v$2.$0.$5\/ASP.NETClientFiles\/$4&quot;\r\n\r\n&lt;Directory &quot;C:\/Windows\/Microsoft.NET\/Framework\/v*\/ASP.NETClientFiles&quot;&gt;\r\n\r\nOptions FollowSymlinks\r\n\r\nOrder allow,deny\r\n\r\nAllow from all\r\n\r\n&lt;\/Directory&gt;\r\n&lt;\/IfModule&gt;\r\n<\/pre>\n<p>\u914d\u7f6eCGI\u5e94\u7528\u7a0b\u5e8f\uff0c\u5728\u4e3b\u76ee\u5f55\u4e0b\u9762\uff0c&lt;Directory &#8220;E:\/www\/Http&#8221;&gt; \u4e0b\u9762\u6dfb\u52a0 Options ExecCGI\u3002\u7136\u540e\u5728 ScriptAlias \/cgi-bin\/ &#8220;E:\/www\/Apache2.2\/cgi-bin\/&#8221; \u4e0b\u9762\u6dfb\u52a0\u4e00\u53e5\u8bdd\uff1aScriptAlias \/cgi-bin\/ &#8220;E:\/www\/http\/GPSYubao\/cgi-bin&#8221; \u3002\u8fd9\u6837\u5c31\u53ef\u4ee5\u4f7f\u7528 E:\/www\/http\/GPSYubao\/cgi-bin \u76ee\u5f55\u4e0b\u9762\u7684CGI\u7a0b\u5e8f\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u88c5APACHE\uff0c\u88c5\u597d\u540e\u66f4\u6539conf\u6587\u4ef6\u5939\u91cc\u9762\u7684httpd.conf\u6587\u4ef6\u91cc\u9762\u7684\u914d\u7f6e\u4fe1\u606f\u3002 DirectoryIn [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-158","post","type-post","status-publish","format-standard","hentry","category-my_notes"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=158"}],"version-history":[{"count":2,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":4849,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions\/4849"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}