首页 > 求一个干净的Apache配置文件。

求一个干净的Apache配置文件。

apache能不能不要main server的配置?

# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

这之后可以配置virtualhost。但是能不能不要那个默认的目录和绑定设置?像nginx那样= =需要啥我配置啥。

【热门文章】
【热门文章】