浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
sudo tasksel
choice lamp suite
configurate apache port to 8080,because we use nginx as reverse proxy on 80 port
so we need configure apache2 port to 8080

http://hi.baidu.com/marshluca/blog/item/258a52dec10dae52cdbf1a7a.html

the virtual directory is /var/www
sudo vi /etc/apache2/sites-enabled/000-default replace 80 to 8080
sudo vi /etc/apache2/ports.conf replace all 80 to 8080
sudo /etc/init.d/apache2 restart

go to virtual host directory
cd /var/www
put test.php file
<?php
echo "hello world";
?>
?>

posted on 2010-06-02 15:47  lexus  阅读(230)  评论(0编辑  收藏  举报