我已经安装了Apache并在Ubuntu 12.10中configurationApache的设置,但我找不到httpd.conf文件(我已经search过,但似乎我没有在我的系统中的文件)。
我可以创build文件(将工作)还是有另一种解决scheme?
在Ubuntu上,主要的configuration文件是
/etc/apache2/apache2.conf
然而,它也分成了不同的文件,可以在中find
/etc/apache2/conf.d /etc/apache2/sites-enabled /etc/apache2/mods-enabled
也有
/etc/apache2/sites-available /etc/apache2/mods-available
您应该花一些时间阅读文档,以了解Ubuntu如何组织Apacheconfiguration。
您需要在Ubuntu上查看/ etc / apache2中的Apacheconfiguration。
configuration分布在几个文件。 包括/etc/apache2/apache2.conf和/etc/apache2/httpd.conf
虚拟主机定义应放置在/etc/apache2/sites-available/sitename.conf中,并打开/closures
a2ensite sitename.conf a2dissite sitename.conf
你可能会发现Ubuntu社区的Apache文档有帮助: Ubuntu社区的Apache信息
安迪