ubuntu 下修改apache的默认端口与根目录

1、ubuntu 下修改apache的根目录DocumentRoot:

sudo emacs /etc/apache2/site-enabled/000-default

修改DocumentRoot /var/www

重启apache2服务即可。

sudo /etc/init.d/apache2 restart

2、ubuntu下修改apache的默认端口

sudo emacs /etc/apache2/ports.conf

修改Listen 80

posted @ 2012-06-04 15:26  紫月冰河  阅读(784)  评论(0编辑  收藏  举报