在Ubuntu系统中,Apache的主要配置文件是/etc/apache2/apache2.conf
。这个文件包含了Apache服务器的全局配置信息。除了主配置文件apache2.conf
之外,Ubuntu还将其他配置文件分成了多个文件和目录,以便于管理和维护。
/etc/apache2/mods-available/
目录下,并通过符号链接到/etc/apache2/mods-enabled/
目录。/etc/apache2/sites-available/000-default
。/etc/apache2/ports.conf
中设置。/etc/apache2/sites-available/
目录下,并通过符号链接到/etc/apache2/sites-enabled/
目录。