win7下 wamp的配置
2016-01-07 15:11
323 查看
执行wampserver2.5-Apache-2.4.9-Mysql-5.6.17-php5.5.12-64b.exe安装wamp
1、开启wamp服务,访问localhost/localhost/testmysql.php正常
2、开启虚拟域名,配置虚拟主机
D:\wamp\bin\apache\apache2.4.9\conf\httpd.conf打开文件,找到#LoadModule vhost_alias_module modules/mod_vhost_alias.so,去掉#开启模块功能
D:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf将原来的域名配置的例子全部屏蔽,新增下面
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "d:/wamp/www"
ServerName localhost
ServerAlias localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
</VirtualHost>
重启wamp服务,访问localhost,提示无权限访问
将D:\wamp\bin\apache\apache2.4.9\conf\httpd.conf文件中的
<Directory />
#AllowOverride none
#Require all denied
</Directory>代码前加#,进行功能屏蔽
此时再次访问localhost正常;
3、开启wamp的8080服务端口
将D:\wamp\bin\apache\apache2.4.9\conf\httpd.conf文件中新增
Listen 8080
在D:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf新增
<VirtualHost *:8080>
DocumentRoot "d:/wamp/www/test"
ServerName localhost
ServerAlias localhost
</VirtualHost>
浏览器访问localhost:8080正常!
1、开启wamp服务,访问localhost/localhost/testmysql.php正常
2、开启虚拟域名,配置虚拟主机
D:\wamp\bin\apache\apache2.4.9\conf\httpd.conf打开文件,找到#LoadModule vhost_alias_module modules/mod_vhost_alias.so,去掉#开启模块功能
D:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf将原来的域名配置的例子全部屏蔽,新增下面
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "d:/wamp/www"
ServerName localhost
ServerAlias localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
</VirtualHost>
重启wamp服务,访问localhost,提示无权限访问
将D:\wamp\bin\apache\apache2.4.9\conf\httpd.conf文件中的
<Directory />
#AllowOverride none
#Require all denied
</Directory>代码前加#,进行功能屏蔽
此时再次访问localhost正常;
3、开启wamp的8080服务端口
将D:\wamp\bin\apache\apache2.4.9\conf\httpd.conf文件中新增
Listen 8080
在D:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf新增
<VirtualHost *:8080>
DocumentRoot "d:/wamp/www/test"
ServerName localhost
ServerAlias localhost
</VirtualHost>
浏览器访问localhost:8080正常!
相关文章推荐
- ubuntu server下建立分区表/分区/格式化/自动挂载(转)
- Android中保存和恢复Fragment状态的最好方法
- Spring 配置 druid连接池 c3p0连接池
- 【JavaScript】兼容多浏览器的本地存储
- hibernate事件机制
- find_if
- Stupid Tower Defense
- 批量横向打印Excel
- Placebo Effect(安慰剂效应)
- 5.1.4. List Comprehensions(列表解析)
- JAVA字符串转日期或日期转字符串
- sqlstate[hy000] [2002] No such file or directory in ...错误
- sql表 强制解锁
- Uva 10131 Is Bigger Smarter? (LIS,打印路径)
- DOM扩展:DOM API的进一步增强[总结篇-上]
- 关于Eigen库在Visual Studio2013中传参对齐报错问题
- hibernate控制事务到具体的小技巧
- log4j2的进阶文档。主要写其中网上没什么资料,比较实用的几个地方。
- ceph对象存储(rgw)服务、高可用安装配置
- 网格部件界面数据过滤介绍