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

全部博文(293)

文章存档

2011年(27)

2010年(84)

2009年(62)

2008年(120)

我的朋友

分类: 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. 就会 出现 的首页,但是在往里点就是百度的网址了

参考:

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