Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3401206
  • 博文数量: 534
  • 博客积分: 11595
  • 博客等级: 上将
  • 技术积分: 5785
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-22 17:00
文章分类

全部博文(534)

文章存档

2015年(4)

2014年(27)

2013年(15)

2012年(38)

2011年(36)

2010年(85)

2009年(63)

2008年(142)

2007年(124)

分类: LINUX

2010-02-24 18:29:00

1. wget --continue

2. tar -jxf apache-2.2.9.tar.bz2

3. cd apache-2.2.9

4. ./configure --prefix=/usr/local/apache-2.2.9 --with-mpm=prefork --enable-so --enable-modules=all --enable-mods-shared=all --enable-rewrite --enable-proxy --enable-proxy-http

5. make && make install

6. vi apache-2.2.9/conf/extra/httpd-vhost.conf

加入
        ProxyRequests On"
        ServerName     
        rewriteengine on
        rewriterule ^/(.*) [P] # proxy|P (强制为代理 proxy)

7. apache-2.2.9/bin/apachectl start

8. 就会 出现 的首页,但是在往里点就是百度的网址了

参考:

阅读(2294) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~