apache virtualHost配置
来源:互联网 发布:最好的网络摄像头 编辑:程序博客网 时间:2024/04/26 14:55
1. 编辑httpd.conf,查找Include conf/extra/httpd-vhosts.conf,把前面注释符号“#”删掉。
2. 编辑httpd-vhosts.conf,我把WAMPServer安装在D:/wamp,所以我这里的路径是D:\wamp\bin\apache\apache2.2.8\conf\extra\httpd-vhosts.conf
2. 编辑httpd-vhosts.conf,我把WAMPServer安装在D:/wamp,所以我这里的路径是D:\wamp\bin\apache\apache2.2.8\conf\extra\httpd-vhosts.conf
把里面的内容清空掉,换成下面的内容:
NameVirtualHost *:80<VirtualHost *:80>ServerAdmin webmaster@testDocumentRoot "D:\software\wamp\www\SAAS" (项目地址)ServerName www.saas.com (服务器名字)</VirtualHost><VirtualHost *:80>ServerAdmin webmaster@testDocumentRoot "D:\software\wamp\www\socialbroker"ServerName www.socialbroker.com</VirtualHost><VirtualHost *:80>ServerAdmin webmaster@testDocumentRoot "D:\software\wamp\www"ServerName localhost</VirtualHost><VirtualHost *:80>ServerAdmin webmaster@testDocumentRoot "D:\software\wamp\www"ServerName 192.168.222.154</VirtualHost><VirtualHost *:80>ServerAdmin webmaster@testDocumentRoot "D:\software\wamp\www"ServerName 127.0.0.1</VirtualHost>3. 在hosts中添加域名
127.0.0.1 localhost
127.0.0.1 www.socialbroker.com
127.0.0.1 www.saas.com
4. 错误403:
Forbidden
You don't have permission to access on this server解决:打开httpd.conf 找到下面这段
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>将“Deny from all ”改为 Allow from all
0 0
- apache virtualhost 配置
- apache 配置 virtualhost
- Apache VirtualHost配置
- Php apache virtualHost配置
- Apache 虚拟主机 VirtualHost 配置
- Apache 虚拟主机 VirtualHost 配置
- apache配置virtualhost
- Apache 虚拟主机 VirtualHost 配置
- Apache 虚拟主机 VirtualHost 配置
- Apache 虚拟主机 VirtualHost 配置
- Apache 虚拟主机 VirtualHost 配置
- Apache VirtualHost 配置
- Apache 虚拟主机 VirtualHost 配置
- Apache VirtualHost配置
- apache virtualHost配置
- Apache VirtualHost 配置
- Apache 虚拟主机 VirtualHost 配置
- Apache VirtualHost配置
- linux c线程池
- AWR生成报告
- 第二周作业2
- WebSphere环境搭建实践指南
- free和delete
- apache virtualHost配置
- ucenter与个人网站之间的双向同步
- Android 通过WebService调用天气预报接口
- Android smali语言功能指令详细介绍
- 关于接口与抽象类的特点
- VMware增加Linux磁盘空间
- B. Center Alignment codeforences
- 64位Win7 下的android开发环境搭建
- Linux下安装JDK笔记