wamp配置虚拟域名
2024-08-30 11:29:26
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
最新文章
- Approaches to Vector Computation
- ASP.NET 管道事件与HttpModule, HttpHandler简单理解
- iOS 视频直播
- 视频转gif
- 转: EclipseIDE开发 for C++
- 【转】MYSQL入门学习之六:MYSQL的运算符
- Spring AOP简介
- (POJ 2318)TOYS 向量叉积
- C 二叉树 1
- 文件I/O(不带缓冲)之read函数
- [转载]如何打一手好Log
- HBase总结(十二)Java API 与HBase交互实例
- 手机user agent大全下载 整理发布一批移动设备的user agent【分享】
- web.xml的配置问题
- 在Activity之间传递数据—获取Activity返回的数据
- Linux 下配置Nginx,MySql,php-fpm开机启动
- hdu4352 数位dp+状态压缩+一个tip
- npm -S -D -g i 有什么区别
- weblogic10补丁升级与卸载
- Codeforces 1132C - Painting the Fence - [前缀和优化]
热门文章
- 水题:UVa253-Cube painting
- 获取class
- ubuntu 转换图片格式的方法(sam2p, imagemagick)
- oracle表空间,分区表,以及索引的总结
- 【JavaScript 6—基础知识点】:正则表达式(应用)
- SPOJ CIRU The area of the union of circles ——Simpson积分
- [luoguP2221] [HAOI2012]高速公路(线段树)
- 网页抓取小工具(IE法)
- 转载:sql2005 Microsoft SQL Server Management Studio Express的安装问题
- Windows下ElasticSearch的使用方式 CURL+Cygwin+Head插件