您的位置:首页 > 其它

安装部署lamp,来测试rediect

2010-06-02 15:47 148 查看
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";
?>
?>

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: