{"id":34753,"date":"2023-03-31T15:25:56","date_gmt":"2023-10-18T12:42:01","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e5%88%9d%e5%ad%a6%e8%80%85%e4%b9%9f%e8%83%bd%e5%81%9a%e5%88%b0%ef%bc%81%e3%80%91%e5%ae%89%e8%a3%85apache%e5%9c%a8windows10%e4%b8%8a%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%88apache-2-4%ef%bc%89\/"},"modified":"2024-04-29T21:20:17","modified_gmt":"2024-04-29T13:20:17","slug":"%e3%80%90%e5%88%9d%e5%ad%a6%e8%80%85%e4%b9%9f%e8%83%bd%e5%81%9a%e5%88%b0%ef%bc%81%e3%80%91%e5%ae%89%e8%a3%85apache%e5%9c%a8windows10%e4%b8%8a%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%88apache-2-4%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e5%88%9d%e5%ad%a6%e8%80%85%e4%b9%9f%e8%83%bd%e5%81%9a%e5%88%b0%ef%bc%81%e3%80%91%e5%ae%89%e8%a3%85apache%e5%9c%a8windows10%e4%b8%8a%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%88apache-2-4%ef%bc%89\/","title":{"rendered":"\u3010\u521d\u5b66\u8005\u4e5f\u80fd\u505a\u5230\uff01\u3011\u5b89\u88c5Apache\u5728Windows10\u4e0a\u7684\u65b9\u6cd5\uff08Apache 2.4\uff09"},"content":{"rendered":"<h2>1. Apache\u662f\u4ec0\u4e48\uff1f<\/h2>\n<p>Apache \u3068\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u969b\u306b\u5fc5\u8981\u3068\u3055\u308c\u308b Web\u30b5\u30fc\u30d0\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2 \u306e\u3053\u3068\u3067\u3042\u308b\u3002<\/p>\n<p>Apache \u306f\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9 \u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3001 Windows \u3084 Linux \u306a\u3069\u591a\u304f\u306e\u74b0\u5883\u3067\u52d5\u4f5c\u3059\u308b\u3002<\/p>\n<h2>2. \u5b89\u88c5 Apache<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1ee337434c4406c17e3d\/3-4.png\" alt=\"05.png\" \/><\/div>\n<h2>3. Apache\u7684\u521d\u59cb\u914d\u7f6e<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1ee337434c4406c17e3d\/5-11.png\" alt=\"21.png\" \/><\/div>\n<pre class=\"post-pre\"><code><span class=\"c\">#\r\n# This is the main Apache HTTP server configuration file.  It contains the\r\n# configuration directives that give the server its instructions.\r\n# See &lt;URL:http:\/\/httpd.apache.org\/docs\/2.4\/&gt; for detailed information.\r\n# In particular, see \r\n# &lt;URL:http:\/\/httpd.apache.org\/docs\/2.4\/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're here only as hints or reminders.  If you are unsure\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's control files begin with \"\/\" (or \"drive:\/\" for Win32), the\r\n# server will use that explicit path.  If the filenames do *not* begin\r\n# with \"\/\", the value of ServerRoot is prepended -- so \"logs\/access_log\"\r\n# with ServerRoot set to \"\/usr\/local\/apache2\" will be interpreted by the\r\n# server as \"\/usr\/local\/apache2\/logs\/access_log\", whereas \"\/logs\/access_log\" \r\n# will be interpreted as '\/logs\/access_log'.\r\n#\r\n# NOTE: Where filenames are specified, you must use forward slashes\r\n# instead of backslashes (e.g., \"c:\/apache\" instead of \"c:\\apache\").\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<\/span>\r\n<span class=\"c\">#\r\n# ServerRoot: The top of the directory tree under which the server's\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 specify a local disk on the\r\n# Mutex directive, if file-based mutexes are used.  If you wish to share the\r\n# same ServerRoot for multiple httpd daemons, you will need to change at\r\n# least PidFile.\r\n#\r\n<\/span><span class=\"n\">Define<\/span> <span class=\"n\">SRVROOT<\/span> <span class=\"s2\">\"C:\\Program Files\\Apache24\"<\/span>\r\n\r\n<span class=\"n\">ServerRoot<\/span> <span class=\"s2\">\"C:\\Program Files\\Apache24\"<\/span>\r\n\r\n<span class=\"c\">#\r\n# Mutex: Allows you to set the mutex mechanism and mutex file directory\r\n# for individual mutexes, or change the global defaults\r\n#\r\n# Uncomment and change the directory if mutexes are file-based and the default\r\n# mutex file directory is not on a local disk or is not appropriate for some\r\n# other reason.\r\n#\r\n# Mutex default:logs\r\n<\/span>\r\n<span class=\"c\">#\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\n<\/span><span class=\"n\">Listen<\/span> <span class=\"m\">80<\/span>\r\n\r\n<span class=\"c\">#\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 DSO you\r\n# have to place corresponding `LoadModule' lines at this location so the\r\n# directives contained in it are actually available _before_ they are used.\r\n# Statically compiled modules (those listed by `httpd -l') do not need\r\n# to be loaded here.\r\n#\r\n# Example:\r\n# LoadModule foo_module modules\/mod_foo.so\r\n#\r\n#LoadModule access_compat_module modules\/mod_access_compat.so\r\n<\/span><span class=\"n\">LoadModule<\/span> <span class=\"n\">actions_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_actions<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"n\">LoadModule<\/span> <span class=\"n\">alias_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_alias<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"n\">LoadModule<\/span> <span class=\"n\">allowmethods_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_allowmethods<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"n\">LoadModule<\/span> <span class=\"n\">asis_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_asis<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"n\">LoadModule<\/span> <span class=\"n\">auth_basic_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_auth_basic<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"c\">#LoadModule auth_digest_module modules\/mod_auth_digest.so\r\n#LoadModule auth_form_module modules\/mod_auth_form.so\r\n#LoadModule authn_anon_module modules\/mod_authn_anon.so\r\n<\/span><span class=\"n\">LoadModule<\/span> <span class=\"n\">authn_core_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_authn_core<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"c\">#LoadModule authn_dbd_module modules\/mod_authn_dbd.so\r\n#LoadModule authn_dbm_module modules\/mod_authn_dbm.so\r\n<\/span><span class=\"n\">LoadModule<\/span> <span class=\"n\">authn_file_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_authn_file<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"c\">#LoadModule authn_socache_module modules\/mod_authn_socache.so\r\n#LoadModule authnz_fcgi_module modules\/mod_authnz_fcgi.so\r\n#LoadModule authnz_ldap_module modules\/mod_authnz_ldap.so\r\n<\/span><span class=\"n\">LoadModule<\/span> <span class=\"n\">authz_core_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_authz_core<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"c\">#LoadModule authz_dbd_module modules\/mod_authz_dbd.so\r\n#LoadModule authz_dbm_module modules\/mod_authz_dbm.so\r\n<\/span><span class=\"n\">LoadModule<\/span> <span class=\"n\">authz_groupfile_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_authz_groupfile<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"n\">LoadModule<\/span> <span class=\"n\">authz_host_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_authz_host<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"c\">#LoadModule authz_owner_module modules\/mod_authz_owner.so\r\n<\/span><span class=\"n\">LoadModule<\/span> <span class=\"n\">authz_user_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_authz_user<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"n\">LoadModule<\/span> <span class=\"n\">autoindex_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_autoindex<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"c\">#LoadModule brotli_module modules\/mod_brotli.so\r\n#LoadModule buffer_module modules\/mod_buffer.so\r\n#LoadModule cache_module modules\/mod_cache.so\r\n#LoadModule cache_disk_module modules\/mod_cache_disk.so\r\n#LoadModule cache_socache_module modules\/mod_cache_socache.so\r\n#LoadModule cern_meta_module modules\/mod_cern_meta.so\r\n<\/span><span class=\"n\">LoadModule<\/span> <span class=\"n\">cgi_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_cgi<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"c\">#LoadModule charset_lite_module modules\/mod_charset_lite.so\r\n#LoadModule data_module modules\/mod_data.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\n<\/span><span class=\"n\">LoadModule<\/span> <span class=\"n\">dir_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_dir<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"c\">#LoadModule dumpio_module modules\/mod_dumpio.so\r\n<\/span><span class=\"n\">LoadModule<\/span> <span class=\"n\">env_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_env<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"c\">#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 http2_module modules\/mod_http2.so\r\n#LoadModule headers_module modules\/mod_headers.so\r\n#LoadModule heartbeat_module modules\/mod_heartbeat.so\r\n#LoadModule heartmonitor_module modules\/mod_heartmonitor.so\r\n#LoadModule ident_module modules\/mod_ident.so\r\n#LoadModule imagemap_module modules\/mod_imagemap.so\r\n<\/span><span class=\"n\">LoadModule<\/span> <span class=\"n\">include_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_include<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"c\">#LoadModule info_module modules\/mod_info.so\r\n<\/span><span class=\"n\">LoadModule<\/span> <span class=\"n\">isapi_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_isapi<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"c\">#LoadModule lbmethod_bybusyness_module modules\/mod_lbmethod_bybusyness.so\r\n#LoadModule lbmethod_byrequests_module modules\/mod_lbmethod_byrequests.so\r\n#LoadModule lbmethod_bytraffic_module modules\/mod_lbmethod_bytraffic.so\r\n#LoadModule lbmethod_heartbeat_module modules\/mod_lbmethod_heartbeat.so\r\n#LoadModule ldap_module modules\/mod_ldap.so\r\n#LoadModule logio_module modules\/mod_logio.so\r\n<\/span><span class=\"n\">LoadModule<\/span> <span class=\"n\">log_config_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_log_config<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"c\">#LoadModule log_debug_module modules\/mod_log_debug.so\r\n#LoadModule log_forensic_module modules\/mod_log_forensic.so\r\n#LoadModule lua_module modules\/mod_lua.so\r\n#LoadModule macro_module modules\/mod_macro.so\r\n#LoadModule md_module modules\/mod_md.so\r\n<\/span><span class=\"n\">LoadModule<\/span> <span class=\"n\">mime_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_mime<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"c\">#LoadModule mime_magic_module modules\/mod_mime_magic.so\r\n<\/span><span class=\"n\">LoadModule<\/span> <span class=\"n\">negotiation_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_negotiation<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"c\">#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_express_module modules\/mod_proxy_express.so\r\n#LoadModule proxy_fcgi_module modules\/mod_proxy_fcgi.so\r\n#LoadModule proxy_ftp_module modules\/mod_proxy_ftp.so\r\n#LoadModule proxy_hcheck_module modules\/mod_proxy_hcheck.so\r\n#LoadModule proxy_html_module modules\/mod_proxy_html.so\r\n#LoadModule proxy_http_module modules\/mod_proxy_http.so\r\n#LoadModule proxy_http2_module modules\/mod_proxy_http2.so\r\n#LoadModule proxy_scgi_module modules\/mod_proxy_scgi.so\r\n#LoadModule proxy_uwsgi_module modules\/mod_proxy_uwsgi.so\r\n#LoadModule proxy_wstunnel_module modules\/mod_proxy_wstunnel.so\r\n#LoadModule ratelimit_module modules\/mod_ratelimit.so\r\n#LoadModule reflector_module modules\/mod_reflector.so\r\n#LoadModule remoteip_module modules\/mod_remoteip.so\r\n#LoadModule request_module modules\/mod_request.so\r\n#LoadModule reqtimeout_module modules\/mod_reqtimeout.so\r\n#LoadModule rewrite_module modules\/mod_rewrite.so\r\n#LoadModule sed_module modules\/mod_sed.so\r\n#LoadModule session_module modules\/mod_session.so\r\n#LoadModule session_cookie_module modules\/mod_session_cookie.so\r\n#LoadModule session_crypto_module modules\/mod_session_crypto.so\r\n#LoadModule session_dbd_module modules\/mod_session_dbd.so\r\n<\/span><span class=\"n\">LoadModule<\/span> <span class=\"n\">setenvif_module<\/span> <span class=\"n\">modules<\/span>\/<span class=\"n\">mod_setenvif<\/span>.<span class=\"n\">so<\/span>\r\n<span class=\"c\">#LoadModule slotmem_plain_module modules\/mod_slotmem_plain.so\r\n#LoadModule slotmem_shm_module modules\/mod_slotmem_shm.so\r\n#LoadModule socache_dbm_module modules\/mod_socache_dbm.so\r\n#LoadModule socache_memcache_module modules\/mod_socache_memcache.so\r\n#LoadModule socache_redis_module modules\/mod_socache_redis.so\r\n#LoadModule socache_shmcb_module modules\/mod_socache_shmcb.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#LoadModule watchdog_module modules\/mod_watchdog.so\r\n#LoadModule xml2enc_module modules\/mod_xml2enc.so\r\n<\/span>\r\n&lt;<span class=\"n\">IfModule<\/span> <span class=\"n\">unixd_module<\/span>&gt;\r\n<span class=\"c\">#\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\n<\/span><span class=\"n\">User<\/span> <span class=\"n\">daemon<\/span>\r\n<span class=\"n\">Group<\/span> <span class=\"n\">daemon<\/span>\r\n\r\n&lt;\/<span class=\"n\">IfModule<\/span>&gt;\r\n\r\n<span class=\"c\"># 'Main' server configuration\r\n#\r\n# The directives in this section set up the values used by the 'main'\r\n# server, which responds to any requests that aren't 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<\/span>\r\n<span class=\"c\">#\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\n<\/span><span class=\"n\">ServerAdmin<\/span> <span class=\"n\">admin<\/span>@<span class=\"n\">example<\/span>.<span class=\"n\">com<\/span>\r\n\r\n<span class=\"c\">#\r\n# ServerName gives the name and port that the server uses to identify itself.\r\n# This can often be determined automatically, but we recommend you specify\r\n# it explicitly to prevent problems during startup.\r\n#\r\n# If your host doesn't have a registered DNS name, enter its IP address here.\r\n#\r\n<\/span><span class=\"n\">ServerName<\/span> <span class=\"n\">www<\/span>.<span class=\"n\">example<\/span>.<span class=\"n\">com<\/span>:<span class=\"m\">80<\/span>\r\n\r\n<span class=\"c\">#\r\n# Deny access to the entirety of your server's filesystem. You must\r\n# explicitly permit access to web content directories in other \r\n# &lt;Directory&gt; blocks below.\r\n#\r\n<\/span>&lt;<span class=\"n\">Directory<\/span> \/&gt;\r\n    <span class=\"n\">AllowOverride<\/span> <span class=\"n\">none<\/span>\r\n    <span class=\"n\">Require<\/span> <span class=\"n\">all<\/span> <span class=\"n\">denied<\/span>\r\n&lt;\/<span class=\"n\">Directory<\/span>&gt;\r\n\r\n<span class=\"c\">#\r\n# Note that from this point forward you must specifically allow\r\n# particular features to be enabled - so if something's not working as\r\n# you might expect, make sure that you have specifically enabled it\r\n# below.\r\n#\r\n<\/span>\r\n<span class=\"c\">#\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\n<\/span><span class=\"n\">DocumentRoot<\/span> <span class=\"s2\">\"C:\\Program Files\\Apache24\\htdocs\"<\/span>\r\n&lt;<span class=\"n\">Directory<\/span> <span class=\"s2\">\"C:\\Program Files\\Apache24\\htdocs\"<\/span>&gt;\r\n    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># Possible values for the Options directive are \"None\", \"All\",\r\n<\/span>    <span class=\"c\"># or any combination of:\r\n<\/span>    <span class=\"c\">#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># Note that \"MultiViews\" must be named *explicitly* --- \"Options All\"\r\n<\/span>    <span class=\"c\"># doesn't give it to you.\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># The Options directive is both complicated and important.  Please see\r\n<\/span>    <span class=\"c\"># http:\/\/httpd.apache.org\/docs\/2.4\/mod\/core.html#options\r\n<\/span>    <span class=\"c\"># for more information.\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"n\">Options<\/span> <span class=\"n\">Indexes<\/span> <span class=\"n\">FollowSymLinks<\/span>\r\n\r\n    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># AllowOverride controls what directives may be placed in .htaccess files.\r\n<\/span>    <span class=\"c\"># It can be \"All\", \"None\", or any combination of the keywords:\r\n<\/span>    <span class=\"c\">#   AllowOverride FileInfo AuthConfig Limit\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"n\">AllowOverride<\/span> <span class=\"n\">None<\/span>\r\n\r\n    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># Controls who can get stuff from this server.\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"n\">Require<\/span> <span class=\"n\">all<\/span> <span class=\"n\">granted<\/span>\r\n&lt;\/<span class=\"n\">Directory<\/span>&gt;\r\n\r\n<span class=\"c\">#\r\n# DirectoryIndex: sets the file that Apache will serve if a directory\r\n# is requested.\r\n#\r\n<\/span>&lt;<span class=\"n\">IfModule<\/span> <span class=\"n\">dir_module<\/span>&gt;\r\n    <span class=\"n\">DirectoryIndex<\/span> <span class=\"n\">index<\/span>.<span class=\"n\">html<\/span>\r\n&lt;\/<span class=\"n\">IfModule<\/span>&gt;\r\n\r\n<span class=\"c\">#\r\n# The following lines prevent .htaccess and .htpasswd files from being \r\n# viewed by Web clients. \r\n#\r\n<\/span>&lt;<span class=\"n\">Files<\/span> <span class=\"s2\">\".ht*\"<\/span>&gt;\r\n    <span class=\"n\">Require<\/span> <span class=\"n\">all<\/span> <span class=\"n\">denied<\/span>\r\n&lt;\/<span class=\"n\">Files<\/span>&gt;\r\n\r\n<span class=\"c\">#\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's errors will be logged there and not here.\r\n#\r\n<\/span><span class=\"n\">ErrorLog<\/span> <span class=\"s2\">\"logs\/error.log\"<\/span>\r\n\r\n<span class=\"c\">#\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\n<\/span><span class=\"n\">LogLevel<\/span> <span class=\"n\">warn<\/span>\r\n\r\n&lt;<span class=\"n\">IfModule<\/span> <span class=\"n\">log_config_module<\/span>&gt;\r\n    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># The following directives define some format nicknames for use with\r\n<\/span>    <span class=\"c\"># a CustomLog directive (see below).\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"n\">LogFormat<\/span> <span class=\"s2\">\"%h %l %u %t \\\"<\/span>%<span class=\"n\">r<\/span>\\<span class=\"s2\">\" %&gt;s %b \\\"<\/span>%{<span class=\"n\">Referer<\/span>}<span class=\"n\">i<\/span>\\<span class=\"s2\">\" \\\"<\/span>%{<span class=\"n\">User<\/span>-<span class=\"n\">Agent<\/span>}<span class=\"n\">i<\/span>\\<span class=\"s2\">\"\"<\/span> <span class=\"n\">combined<\/span>\r\n    <span class=\"n\">LogFormat<\/span> <span class=\"s2\">\"%h %l %u %t \\\"<\/span>%<span class=\"n\">r<\/span>\\<span class=\"s2\">\" %&gt;s %b\"<\/span> <span class=\"n\">common<\/span>\r\n\r\n    &lt;<span class=\"n\">IfModule<\/span> <span class=\"n\">logio_module<\/span>&gt;\r\n      <span class=\"c\"># You need to enable mod_logio.c to use %I and %O\r\n<\/span>      <span class=\"n\">LogFormat<\/span> <span class=\"s2\">\"%h %l %u %t \\\"<\/span>%<span class=\"n\">r<\/span>\\<span class=\"s2\">\" %&gt;s %b \\\"<\/span>%{<span class=\"n\">Referer<\/span>}<span class=\"n\">i<\/span>\\<span class=\"s2\">\" \\\"<\/span>%{<span class=\"n\">User<\/span>-<span class=\"n\">Agent<\/span>}<span class=\"n\">i<\/span>\\<span class=\"s2\">\" %I %O\"<\/span> <span class=\"n\">combinedio<\/span>\r\n    &lt;\/<span class=\"n\">IfModule<\/span>&gt;\r\n\r\n    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># The location and format of the access logfile (Common Logfile Format).\r\n<\/span>    <span class=\"c\"># If you do not define any access logfiles within a &lt;VirtualHost&gt;\r\n<\/span>    <span class=\"c\"># container, they will be logged here.  Contrariwise, if you *do*\r\n<\/span>    <span class=\"c\"># define per-&lt;VirtualHost&gt; access logfiles, transactions will be\r\n<\/span>    <span class=\"c\"># logged therein and *not* in this file.\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"n\">CustomLog<\/span> <span class=\"s2\">\"logs\/access.log\"<\/span> <span class=\"n\">common<\/span>\r\n\r\n    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># If you prefer a logfile with access, agent, and referer information\r\n<\/span>    <span class=\"c\"># (Combined Logfile Format) you can use the following directive.\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"c\">#CustomLog \"logs\/access.log\" combined\r\n<\/span>&lt;\/<span class=\"n\">IfModule<\/span>&gt;\r\n\r\n&lt;<span class=\"n\">IfModule<\/span> <span class=\"n\">alias_module<\/span>&gt;\r\n    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># Redirect: Allows you to tell clients about documents that used to \r\n<\/span>    <span class=\"c\"># exist in your server's namespace, but do not anymore. The client \r\n<\/span>    <span class=\"c\"># will make a new request for the document at its new location.\r\n<\/span>    <span class=\"c\"># Example:\r\n<\/span>    <span class=\"c\"># Redirect permanent \/foo http:\/\/www.example.com\/bar\r\n<\/span>\r\n    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># Alias: Maps web paths into filesystem paths and is used to\r\n<\/span>    <span class=\"c\"># access content that does not live under the DocumentRoot.\r\n<\/span>    <span class=\"c\"># Example:\r\n<\/span>    <span class=\"c\"># Alias \/webpath \/full\/filesystem\/path\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># If you include a trailing \/ on \/webpath then the server will\r\n<\/span>    <span class=\"c\"># require it to be present in the URL.  You will also likely\r\n<\/span>    <span class=\"c\"># need to provide a &lt;Directory&gt; section to allow access to\r\n<\/span>    <span class=\"c\"># the filesystem path.\r\n<\/span>\r\n    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># ScriptAlias: This controls which directories contain server scripts. \r\n<\/span>    <span class=\"c\"># ScriptAliases are essentially the same as Aliases, except that\r\n<\/span>    <span class=\"c\"># documents in the target directory are treated as applications and\r\n<\/span>    <span class=\"c\"># run by the server when requested rather than as documents sent to the\r\n<\/span>    <span class=\"c\"># client.  The same rules about trailing \"\/\" apply to ScriptAlias\r\n<\/span>    <span class=\"c\"># directives as to Alias.\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"n\">ScriptAlias<\/span> \/<span class=\"n\">cgi<\/span>-<span class=\"n\">bin<\/span>\/ <span class=\"s2\">\"C:\\Program Files\\Apache24\\cgi-bin\"<\/span>\r\n\r\n&lt;\/<span class=\"n\">IfModule<\/span>&gt;\r\n\r\n&lt;<span class=\"n\">IfModule<\/span> <span class=\"n\">cgid_module<\/span>&gt;\r\n    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># ScriptSock: On threaded servers, designate the path to the UNIX\r\n<\/span>    <span class=\"c\"># socket used to communicate with the CGI daemon of mod_cgid.\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"c\">#Scriptsock cgisock\r\n<\/span>&lt;\/<span class=\"n\">IfModule<\/span>&gt;\r\n\r\n<span class=\"c\">#\r\n# \"${SRVROOT}\/cgi-bin\" should be changed to whatever your ScriptAliased\r\n# CGI directory exists, if you have that configured.\r\n#\r\n<\/span>&lt;<span class=\"n\">Directory<\/span> <span class=\"s2\">\"C:\\Program Files\\Apache24\\cgi-bin\"<\/span>&gt;\r\n    <span class=\"n\">AllowOverride<\/span> <span class=\"n\">None<\/span>\r\n    <span class=\"n\">Options<\/span> <span class=\"n\">None<\/span>\r\n    <span class=\"n\">Require<\/span> <span class=\"n\">all<\/span> <span class=\"n\">granted<\/span>\r\n&lt;\/<span class=\"n\">Directory<\/span>&gt;\r\n\r\n&lt;<span class=\"n\">IfModule<\/span> <span class=\"n\">headers_module<\/span>&gt;\r\n    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># Avoid passing HTTP_PROXY environment to CGI's on this or any proxied\r\n<\/span>    <span class=\"c\"># backend servers which have lingering \"httpoxy\" defects.\r\n<\/span>    <span class=\"c\"># 'Proxy' request header is undefined by the IETF, not listed by IANA\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"n\">RequestHeader<\/span> <span class=\"n\">unset<\/span> <span class=\"n\">Proxy<\/span> <span class=\"n\">early<\/span>\r\n&lt;\/<span class=\"n\">IfModule<\/span>&gt;\r\n\r\n&lt;<span class=\"n\">IfModule<\/span> <span class=\"n\">mime_module<\/span>&gt;\r\n    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># TypesConfig points to the file containing the list of mappings from\r\n<\/span>    <span class=\"c\"># filename extension to MIME-type.\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"n\">TypesConfig<\/span> <span class=\"n\">conf<\/span>\/<span class=\"n\">mime<\/span>.<span class=\"n\">types<\/span>\r\n\r\n    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># AddType allows you to add to or override the MIME configuration\r\n<\/span>    <span class=\"c\"># file specified in TypesConfig for specific file types.\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"c\">#AddType application\/x-gzip .tgz\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># AddEncoding allows you to have certain browsers uncompress\r\n<\/span>    <span class=\"c\"># information on the fly. Note: Not all browsers support this.\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"c\">#AddEncoding x-compress .Z\r\n<\/span>    <span class=\"c\">#AddEncoding x-gzip .gz .tgz\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># If the AddEncoding directives above are commented-out, then you\r\n<\/span>    <span class=\"c\"># probably should define those extensions to indicate media types:\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"n\">AddType<\/span> <span class=\"n\">application<\/span>\/<span class=\"n\">x<\/span>-<span class=\"n\">compress<\/span> .<span class=\"n\">Z<\/span>\r\n    <span class=\"n\">AddType<\/span> <span class=\"n\">application<\/span>\/<span class=\"n\">x<\/span>-<span class=\"n\">gzip<\/span> .<span class=\"n\">gz<\/span> .<span class=\"n\">tgz<\/span>\r\n\r\n    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># AddHandler allows you to map certain file extensions to \"handlers\":\r\n<\/span>    <span class=\"c\"># actions unrelated to filetype. These can be either built into the server\r\n<\/span>    <span class=\"c\"># or added with the Action directive (see below)\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># To use CGI scripts outside of ScriptAliased directories:\r\n<\/span>    <span class=\"c\"># (You will also need to add \"ExecCGI\" to the \"Options\" directive.)\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"c\">#AddHandler cgi-script .cgi\r\n<\/span>\r\n    <span class=\"c\"># For type maps (negotiated resources):\r\n<\/span>    <span class=\"c\">#AddHandler type-map var\r\n<\/span>\r\n    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># Filters allow you to process content before it is sent to the client.\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"c\"># To parse .shtml files for server-side includes (SSI):\r\n<\/span>    <span class=\"c\"># (You will also need to add \"Includes\" to the \"Options\" directive.)\r\n<\/span>    <span class=\"c\">#\r\n<\/span>    <span class=\"c\">#AddType text\/html .shtml\r\n<\/span>    <span class=\"c\">#AddOutputFilter INCLUDES .shtml\r\n<\/span>&lt;\/<span class=\"n\">IfModule<\/span>&gt;\r\n\r\n<span class=\"c\">#\r\n# The mod_mime_magic module allows the server to use various hints from the\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<\/span>\r\n<span class=\"c\">#\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 \"The server made a boo boo.\"\r\n#ErrorDocument 404 \/missing.html\r\n#ErrorDocument 404 \"\/cgi-bin\/missing_handler.pl\"\r\n#ErrorDocument 402 http:\/\/www.example.com\/subscription_info.html\r\n#\r\n<\/span>\r\n<span class=\"c\">#\r\n# MaxRanges: Maximum number of Ranges in a request before\r\n# returning the entire resource, or one of the special\r\n# values 'default', 'none' or 'unlimited'.\r\n# Default setting is to accept 200 Ranges.\r\n#MaxRanges unlimited\r\n<\/span>\r\n<span class=\"c\">#\r\n# EnableMMAP and EnableSendfile: On systems that support it, \r\n# memory-mapping or the sendfile syscall may be 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# Defaults: EnableMMAP On, EnableSendfile Off\r\n#\r\n#EnableMMAP off\r\n#EnableSendfile on\r\n<\/span>\r\n<span class=\"c\"># 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 of \r\n# the server, or you may simply copy their contents here and change as \r\n# necessary.\r\n<\/span>\r\n<span class=\"c\"># Server-pool management (MPM specific)\r\n#Include conf\/extra\/httpd-mpm.conf\r\n<\/span>\r\n<span class=\"c\"># Multi-language error messages\r\n#Include conf\/extra\/httpd-multilang-errordoc.conf\r\n<\/span>\r\n<span class=\"c\"># Fancy directory listings\r\n#Include conf\/extra\/httpd-autoindex.conf\r\n<\/span>\r\n<span class=\"c\"># Language settings\r\n#Include conf\/extra\/httpd-languages.conf\r\n<\/span>\r\n<span class=\"c\"># User home directories\r\n#Include conf\/extra\/httpd-userdir.conf\r\n<\/span>\r\n<span class=\"c\"># Real-time info on requests and configuration\r\n#Include conf\/extra\/httpd-info.conf\r\n<\/span>\r\n<span class=\"c\"># Virtual hosts\r\n#Include conf\/extra\/httpd-vhosts.conf\r\n<\/span>\r\n<span class=\"c\"># Local access to the Apache HTTP Server Manual\r\n#Include conf\/extra\/httpd-manual.conf\r\n<\/span>\r\n<span class=\"c\"># Distributed authoring and versioning (WebDAV)\r\n#Include conf\/extra\/httpd-dav.conf\r\n<\/span>\r\n<span class=\"c\"># Various default settings\r\n#Include conf\/extra\/httpd-default.conf\r\n<\/span>\r\n<span class=\"c\"># Configure mod_proxy_html to understand HTML4\/XHTML1\r\n<\/span>&lt;<span class=\"n\">IfModule<\/span> <span class=\"n\">proxy_html_module<\/span>&gt;\r\n<span class=\"n\">Include<\/span> <span class=\"n\">conf<\/span>\/<span class=\"n\">extra<\/span>\/<span class=\"n\">proxy<\/span>-<span class=\"n\">html<\/span>.<span class=\"n\">conf<\/span>\r\n&lt;\/<span class=\"n\">IfModule<\/span>&gt;\r\n\r\n<span class=\"c\"># 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<\/span>&lt;<span class=\"n\">IfModule<\/span> <span class=\"n\">ssl_module<\/span>&gt;\r\n<span class=\"n\">SSLRandomSeed<\/span> <span class=\"n\">startup<\/span> <span class=\"n\">builtin<\/span>\r\n<span class=\"n\">SSLRandomSeed<\/span> <span class=\"n\">connect<\/span> <span class=\"n\">builtin<\/span>\r\n&lt;\/<span class=\"n\">IfModule<\/span>&gt;\r\n<\/code><\/pre>\n<p>9. \u5982\u679c\u80fd\u591f\u8fbe\u5230\u4ee5\u4e0a\u6240\u8ff0\u7684\u53e5\u5b50\u76f8\u540c\uff0c\u90a3\u5c31\u662f\u6210\u529f\u3002<\/p>\n<p>(If the sentence can be the same as the above, then it is considered a success.)<\/p>\n<h2>4. Apache\u7684\u64cd\u4f5c\u9a8c\u8bc1<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1ee337434c4406c17e3d\/9-5.png\" alt=\"26.png\" \/><\/div>\n<h2>5.\u5b89\u88c5 httpd -k install \u65f6\u53d1\u751f\u9519\u8bef\u3002<\/h2>\n<ul class=\"post-ul\">VCRUNTIME140.dll<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1ee337434c4406c17e3d\/12-0.png\" alt=\"ex1.png\" \/><\/div>\n<ul class=\"post-ul\">\u30a2\u30af\u30bb\u30b9\u62d2\u5426<\/ul>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u547d\u4ee4\u63d0\u793a\u7b26\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1ee337434c4406c17e3d\/15-1.png\" alt=\"cmd.png\" \/><\/div>\n<h2>6. Apache\u7684\u64cd\u4f5c\u65b9\u5f0f<\/h2>\n<ul class=\"post-ul\">Apache\u306e\u8d77\u52d5<\/ul>\n<pre class=\"post-pre\"><code><span class=\"n\">httpd<\/span> -<span class=\"n\">k<\/span> <span class=\"n\">start<\/span>\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u505c\u6b62<\/ul>\n<pre class=\"post-pre\"><code><span class=\"n\">httpd<\/span> -<span class=\"n\">k<\/span> <span class=\"n\">stop<\/span>\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u518d\u8d77\u52d5<\/ul>\n<pre class=\"post-pre\"><code><span class=\"n\">httpd<\/span> -<span class=\"n\">k<\/span> <span class=\"n\">restart<\/span>\r\n<\/code><\/pre>\n<h2>7. \u76f8\u5173<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u3010\u8d85\u7c21\u5358!!\u3011CentOS\u306bLAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Ubuntu 18.04\u306bLAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u624b\u9806<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u3010\u521d\u5fc3\u8005\u3067\u3082\u7c21\u5358!!\u3011WordPress\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ca\u3073\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>1. Apache\u662f\u4ec0\u4e48\uff1f Apache \u3068\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u969b\u306b\u5fc5\u8981\u3068\u3055\u308c\u308b Web\u30b5\u30fc\u30d0\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2  [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-34753","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u521d\u5b66\u8005\u4e5f\u80fd\u505a\u5230\uff01\u3011\u5b89\u88c5Apache\u5728Windows10\u4e0a\u7684\u65b9\u6cd5\uff08Apache 2.4\uff09 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u3010\u521d\u5b66\u8005\u4e5f\u80fd\u505a\u5230\uff01\u3011\u5b89\u88c5apache\u5728windows10\u4e0a\u7684\u65b9\u6cd5\uff08apache-2-4\uff09\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u521d\u5b66\u8005\u4e5f\u80fd\u505a\u5230\uff01\u3011\u5b89\u88c5Apache\u5728Windows10\u4e0a\u7684\u65b9\u6cd5\uff08Apache 2.4\uff09\" \/>\n<meta property=\"og:description\" content=\"1. Apache\u662f\u4ec0\u4e48\uff1f Apache \u3068\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u969b\u306b\u5fc5\u8981\u3068\u3055\u308c\u308b Web\u30b5\u30fc\u30d0\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u3010\u521d\u5b66\u8005\u4e5f\u80fd\u505a\u5230\uff01\u3011\u5b89\u88c5apache\u5728windows10\u4e0a\u7684\u65b9\u6cd5\uff08apache-2-4\uff09\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-18T12:42:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T13:20:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1ee337434c4406c17e3d\/3-4.png\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e5%88%9d%e5%ad%a6%e8%80%85%e4%b9%9f%e8%83%bd%e5%81%9a%e5%88%b0%ef%bc%81%e3%80%91%e5%ae%89%e8%a3%85apache%e5%9c%a8windows10%e4%b8%8a%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%88apache-2-4%ef%bc%89\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e5%88%9d%e5%ad%a6%e8%80%85%e4%b9%9f%e8%83%bd%e5%81%9a%e5%88%b0%ef%bc%81%e3%80%91%e5%ae%89%e8%a3%85apache%e5%9c%a8windows10%e4%b8%8a%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%88apache-2-4%ef%bc%89\/\",\"name\":\"\u3010\u521d\u5b66\u8005\u4e5f\u80fd\u505a\u5230\uff01\u3011\u5b89\u88c5Apache\u5728Windows10\u4e0a\u7684\u65b9\u6cd5\uff08Apache 2.4\uff09 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-10-18T12:42:01+00:00\",\"dateModified\":\"2024-04-29T13:20:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e5%88%9d%e5%ad%a6%e8%80%85%e4%b9%9f%e8%83%bd%e5%81%9a%e5%88%b0%ef%bc%81%e3%80%91%e5%ae%89%e8%a3%85apache%e5%9c%a8windows10%e4%b8%8a%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%88apache-2-4%ef%bc%89\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e5%88%9d%e5%ad%a6%e8%80%85%e4%b9%9f%e8%83%bd%e5%81%9a%e5%88%b0%ef%bc%81%e3%80%91%e5%ae%89%e8%a3%85apache%e5%9c%a8windows10%e4%b8%8a%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%88apache-2-4%ef%bc%89\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e5%88%9d%e5%ad%a6%e8%80%85%e4%b9%9f%e8%83%bd%e5%81%9a%e5%88%b0%ef%bc%81%e3%80%91%e5%ae%89%e8%a3%85apache%e5%9c%a8windows10%e4%b8%8a%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%88apache-2-4%ef%bc%89\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u521d\u5b66\u8005\u4e5f\u80fd\u505a\u5230\uff01\u3011\u5b89\u88c5Apache\u5728Windows10\u4e0a\u7684\u65b9\u6cd5\uff08Apache 2.4\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e5%88%9d%e5%ad%a6%e8%80%85%e4%b9%9f%e8%83%bd%e5%81%9a%e5%88%b0%ef%bc%81%e3%80%91%e5%ae%89%e8%a3%85apache%e5%9c%a8windows10%e4%b8%8a%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%88apache-2-4%ef%bc%89\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u3010\u521d\u5b66\u8005\u4e5f\u80fd\u505a\u5230\uff01\u3011\u5b89\u88c5Apache\u5728Windows10\u4e0a\u7684\u65b9\u6cd5\uff08Apache 2.4\uff09 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u3010\u521d\u5b66\u8005\u4e5f\u80fd\u505a\u5230\uff01\u3011\u5b89\u88c5apache\u5728windows10\u4e0a\u7684\u65b9\u6cd5\uff08apache-2-4\uff09\/","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u521d\u5b66\u8005\u4e5f\u80fd\u505a\u5230\uff01\u3011\u5b89\u88c5Apache\u5728Windows10\u4e0a\u7684\u65b9\u6cd5\uff08Apache 2.4\uff09","og_description":"1. Apache\u662f\u4ec0\u4e48\uff1f Apache \u3068\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u969b\u306b\u5fc5\u8981\u3068\u3055\u308c\u308b Web\u30b5\u30fc\u30d0\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u3010\u521d\u5b66\u8005\u4e5f\u80fd\u505a\u5230\uff01\u3011\u5b89\u88c5apache\u5728windows10\u4e0a\u7684\u65b9\u6cd5\uff08apache-2-4\uff09\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-18T12:42:01+00:00","article_modified_time":"2024-04-29T13:20:17+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1ee337434c4406c17e3d\/3-4.png"}],"author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"15 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e5%88%9d%e5%ad%a6%e8%80%85%e4%b9%9f%e8%83%bd%e5%81%9a%e5%88%b0%ef%bc%81%e3%80%91%e5%ae%89%e8%a3%85apache%e5%9c%a8windows10%e4%b8%8a%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%88apache-2-4%ef%bc%89\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e5%88%9d%e5%ad%a6%e8%80%85%e4%b9%9f%e8%83%bd%e5%81%9a%e5%88%b0%ef%bc%81%e3%80%91%e5%ae%89%e8%a3%85apache%e5%9c%a8windows10%e4%b8%8a%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%88apache-2-4%ef%bc%89\/","name":"\u3010\u521d\u5b66\u8005\u4e5f\u80fd\u505a\u5230\uff01\u3011\u5b89\u88c5Apache\u5728Windows10\u4e0a\u7684\u65b9\u6cd5\uff08Apache 2.4\uff09 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-10-18T12:42:01+00:00","dateModified":"2024-04-29T13:20:17+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e5%88%9d%e5%ad%a6%e8%80%85%e4%b9%9f%e8%83%bd%e5%81%9a%e5%88%b0%ef%bc%81%e3%80%91%e5%ae%89%e8%a3%85apache%e5%9c%a8windows10%e4%b8%8a%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%88apache-2-4%ef%bc%89\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e5%88%9d%e5%ad%a6%e8%80%85%e4%b9%9f%e8%83%bd%e5%81%9a%e5%88%b0%ef%bc%81%e3%80%91%e5%ae%89%e8%a3%85apache%e5%9c%a8windows10%e4%b8%8a%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%88apache-2-4%ef%bc%89\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e5%88%9d%e5%ad%a6%e8%80%85%e4%b9%9f%e8%83%bd%e5%81%9a%e5%88%b0%ef%bc%81%e3%80%91%e5%ae%89%e8%a3%85apache%e5%9c%a8windows10%e4%b8%8a%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%88apache-2-4%ef%bc%89\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010\u521d\u5b66\u8005\u4e5f\u80fd\u505a\u5230\uff01\u3011\u5b89\u88c5Apache\u5728Windows10\u4e0a\u7684\u65b9\u6cd5\uff08Apache 2.4\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90%e5%88%9d%e5%ad%a6%e8%80%85%e4%b9%9f%e8%83%bd%e5%81%9a%e5%88%b0%ef%bc%81%e3%80%91%e5%ae%89%e8%a3%85apache%e5%9c%a8windows10%e4%b8%8a%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%88apache-2-4%ef%bc%89\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=34753"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34753\/revisions"}],"predecessor-version":[{"id":87705,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34753\/revisions\/87705"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=34753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=34753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=34753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}