apache 虚拟主机配置
来源:互联网 发布:linux ntp漏洞 编辑:程序博客网 时间:2024/05/17 05:12
原文: http://blog.csdn.net/ReadyYes/article/details/51038192
进入C:\Apache24\conf\httpd.conf
把那个“#”号去掉
进入C:\Apache24\conf\extra\httpd-vhosts.conf 配置如下
#*代表当前服务器的所有IP地址<VirtualHost *:80> #主机名 ServerName www.zy.com #主机别名 多个主机别名用空格分开 ServerAlias zy.com xy.com ServerAdmin admin@zy.com DocumentRoot "E:/phptest" #Directory 中的路径要和DocumentRoot的路径一致,Directory配置访问权限 <Directory "E:/phptest"> Options Indexes FollowSymLinks #默认主页 DirectoryIndex test.php #自定义后缀php处理 AddType application/x-httpd-php .php .ppp .phtml AllowOverride all Require all granted </Directory> #配置虚拟目录 Alias /abc "E:/php100" #配置虚拟目录权限 <Directory "E:/php100"> Options Indexes FollowSymLinks AllowOverride all Require all granted </Directory> ErrorLog "logs/dummy-www.zy.com-error.log" CustomLog "logs/dummy-www.zy.com-access.log" common</VirtualHost><VirtualHost *:80> DocumentRoot "C:\Apache24\htdocs" <Directory "C:\Apache24\htdocs"> Options Indexes FollowSymLinks #默认主页 DirectoryIndex index.html #自定义后缀php处理 AddType application/x-httpd-php .php .ppp .phtml AllowOverride all Require all granted </Directory> ServerName localhost</VirtualHost>
0 0
- APACHE虚拟主机配置方法
- Apache虚拟主机的配置
- apache虚拟主机配置
- apache+weblogic虚拟主机配置
- Apache虚拟主机的配置
- apache 虚拟主机配置记录
- Apache 虚拟主机配置笔记
- apache虚拟主机配置
- apache虚拟主机配置
- apache虚拟主机配置小记
- windows apache 虚拟主机配置
- Apache 2.2 虚拟主机配置
- apache配置虚拟主机
- 配置Apache虚拟主机
- Jboss5+apache虚拟主机配置
- apache hosts 虚拟主机 配置
- apache虚拟主机配置示例
- 配置apache虚拟主机
- ubuntu 修改中文乱码命令
- opencv_traincascade问题
- 0-1背包(回溯法)
- Page的IsCrossPagePostBack属性
- 去掉ListView滑动的黑色背景和点击ListView某个item的橙黄色背景
- apache 虚拟主机配置
- 服务器常用的内核调优
- cocos:有限状态机
- 设计模式总结
- PID算法浅析
- nginx服务器反向代理tomcat
- 欢迎使用CSDN-markdown编辑器
- Mybatis-Session生成详细分析
- Redis详解