ubuntu apache2配置(转载)
时间:2009-03-23 来源:sjhf
为了解Ubuntu下apache2的配置问题,找到了这个链接(http://wanguan2000.blog.ubuntu.org.cn/2008/08/15/ubuntu-apache2%E9%85%8D%E7%BD%AE/),为方便,决定全文转载,不知道作者是否有意见,
ubuntu apache2配置
1.apache2.conf 是主配置文件,httpd.conf 用户配置文件 2.虚拟目录在 httpd.conf 中 <VirtualHost *> DocumentRoot "路径" ServerName 名称 <Direc×y "路径"> allow from all Options +Indexes </Direc×y> </VirtualHost> 3.根设置(默认主目录)在 /etc/apache2/sites-available/default 4.重启命令 sudo /etc/init.d/apache2 restart或者 cd /etc/init.d sudo apache2 -k restart stop 停止;start 启动 5.日志文件在 /var/log/apache2/ <VirtualHost *:80> ServerName |
相关阅读 更多 +
排行榜 更多 +