1、打开apache下httpd.conf

我的目录是在F:\wamp\bin\apache\apache2.2.22\conf\httpd.conf

2、去掉这两行前面的#注释

LoadModule rewrite_module modules/mod_rewrite.so

Include conf/extra/httpd-vhosts.conf

这两个注释

3、配置httpd-vhosts.conf

<VirtualHost *:80>
  ServerName i.fx-dev.com //配置域名
  DocumentRoot "F:\root" //配置运行目录

  #RewriteEngine on //需要时配置重写

  #RewriteCond $1 !^(index\.php|aaa)

  #RewriteRule ^(.*)$ /test/test.php/$1 [L]

  <Directory "F:\root"> //目录的权限一定要配置
    AllowOverride all
    Order Deny,Allow
    Allow from all
  </Directory>
</VirtualHost>

4、配置hosts

127.0.0.1 i.fx-dev.com

5、重启wamp

最新文章

  1. Approaches to Vector Computation
  2. ASP.NET 管道事件与HttpModule, HttpHandler简单理解
  3. iOS 视频直播
  4. 视频转gif
  5. 转: EclipseIDE开发 for C++
  6. 【转】MYSQL入门学习之六:MYSQL的运算符
  7. Spring AOP简介
  8. (POJ 2318)TOYS 向量叉积
  9. C 二叉树 1
  10. 文件I/O(不带缓冲)之read函数
  11. [转载]如何打一手好Log
  12. HBase总结(十二)Java API 与HBase交互实例
  13. 手机user agent大全下载 整理发布一批移动设备的user agent【分享】
  14. web.xml的配置问题
  15. 在Activity之间传递数据—获取Activity返回的数据
  16. Linux 下配置Nginx,MySql,php-fpm开机启动
  17. hdu4352 数位dp+状态压缩+一个tip
  18. npm -S -D -g i 有什么区别
  19. weblogic10补丁升级与卸载
  20. Codeforces 1132C - Painting the Fence - [前缀和优化]

热门文章

  1. 水题:UVa253-Cube painting
  2. 获取class
  3. ubuntu 转换图片格式的方法(sam2p, imagemagick)
  4. oracle表空间,分区表,以及索引的总结
  5. 【JavaScript 6—基础知识点】:正则表达式(应用)
  6. SPOJ CIRU The area of the union of circles ——Simpson积分
  7. [luoguP2221] [HAOI2012]高速公路(线段树)
  8. 网页抓取小工具(IE法)
  9. 转载:sql2005 Microsoft SQL Server Management Studio Express的安装问题
  10. Windows下ElasticSearch的使用方式 CURL+Cygwin+Head插件