apache2.4 建虚拟目录
2015-09-15 14:28
531 查看
参考:主要修改地方
2、第二个修改地方
这样改了还是不能访问,需修改httpd.conf
<span style="font-size: x-small;">#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory></span> 成
<span style="font-size: x-small;"># 允许指向外部的目录进行访问
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
</Directory></span>
2、第二个修改地方
打开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> #网站目录,如果在www目录下的php目录,下面 #就填写F:/www/php DocumentRoot "D:/WALP/www" #域名 ServerName www.plqjnet.com #这里配置欢迎首页面 DirectoryIndex index.html index.htm index.php <Directory /> Options FollowSymLinks #不允许别人修改我们的页面 AllowOverride None #设置访问权限 order allow,deny Allow from all </Directory> </VirtualHost> 把ServerName改成你自己的,最后重启Apache。
这样改了还是不能访问,需修改httpd.conf
<span style="font-size: x-small;">#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory></span> 成
<span style="font-size: x-small;"># 允许指向外部的目录进行访问
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
</Directory></span>
相关文章推荐
- 如何为Apache JMeter开发插件(一)
- apache 的常用:1反射赋值方法 2数组追加字符、填充fill、集合转化为数组
- apache虚拟目录配置
- 局域网中其他电脑访问我的电脑上的apache服务器
- CentOS6.5 PHP5.4.0+Apache2.4.1+MySQL5.5.21 编译安装
- Linux 安装 Apache
- apache和php扩展问题
- Apache Thrift的简单使用
- 在CentOS5.2+apache2.2下安装配置mod_ssl
- 在apache2.2 php5.3.6 mysql5.5下出现#1366号mysql错误解决办法
- Building a Movie Recommendation Service with Apache Spark & Flask - Part 2
- Building a Movie Recommendation Service with Apache Spark & Flask - Part 1
- windows xp 下Ubuntu虚拟机安装及Apache安装测试
- Apache CXF Tutorial – WS-Security with Spring
- Apache Camel异常处理
- Web Services Tutorial with Apache CXF
- CXF
- Create CXF Client
- nutch2.3 hadoop2.6.0 hbase0.98.8 分布式爬虫NoClassDefFoundError: org/apache/hadoop/hbase/HBaseConfigurati
- 严重: Catalina.start: org.apache.catalina.LifecycleException: Failed to start component [StandardServ