apache虚拟主机的配置
2016-05-20 10:46
609 查看
打开httpd.conf文件 去掉LoadModule vhost_alias_module modules/mod_vhost_alias.so 这句前面的#号 和 Include conf/extra/httpd-vhosts.conf这句前面的#号 Include conf/extra/httpd-vhosts.conf这句在httpd.conf文件底部 然后打开Apache2.2\conf\extra下的httpd-vhosts.conf文件,加入如下代码
<VirtualHost *:80> ServerAdmin df.admin.buyplas.com DocumentRoot "G:/www/df.admin.buyplas.com/web/" ServerName df.admin.buyplas.com ServerAlias df.admin.buyplas.com ErrorLog "logs/test1-error.log" CustomLog "logs/test1-access.log" combined <Directory "G:/www/df.admin.buyplas.com/web/"> order allow,deny allow from all </Directory> </VirtualHost>
相关文章推荐
- Ubuntu系统启用Apache Mod_rewrite模块
- Apache Maven 入门篇(下)
- Apache Maven 入门篇 ( 上 )
- 源码编译安装apache
- centos下apache源码编译安装
- apache调优
- Apache Atlas安装文档
- apache常用的两种工作模式 prefork和worker
- Apache通过rewrite限制某个目录
- Apache禁止解析php
- Apache 禁止指定user_agent(防止爬虫扒取)
- Apache访问控制
- Apache配置防盗链
- Apache配置静态缓存
- Apache Oozie - the workflow scheduler for hadoop
- CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved
- Apache2.4和Apache2.2访问控制配置语法对比
- apache日志切割
- Apache不记录制定文件类型日志
- Apache配置域名301跳转