tomact + apache

頸頸滴 发布于 2011/12/06 18:58
阅读 625
收藏 0

【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”

为什么我的机子只要把Include conf/extra/httpd-vhosts.conf前面的#号去掉就起动不APACHE httpd-vhosts.conf配置文件添加配置信息如下: 
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.myApache
    DocumentRoot "F:/ApacheIntill/docs/dummy-host.myApache"
    ServerName dummy-host.myApache
    ServerAlias www.dummy-host.myApache     ErrorLog "logs/dummy-host.myApache-error.log"
    CustomLog "logs/dummy-host.myApache-access.log" common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.myApache
    DocumentRoot "F:/ApacheIntill/docs/dummy-host2.myApache"
    ServerName dummy-host2.myApache
    ErrorLog "logs/dummy-host2.myApache-error.log"
    CustomLog "logs/dummy-host2.myApache-access.log" common
</VirtualHost>



NameVirtualHost *:8008
<VirtualHost *:8008>
    DocumentRoot "F:/ApacheIntill/"
    ServerName localhost
    JkMount /* tomcat1  
    JkUnMount /*.js tomcat1
    JkUnMount /*.gif tomcat1
    JkUnMount /*.swf tomcat1
    JkUnMount /*.jpng tomcat1
    JkUnMount /*.png tomcat1
    JkUnMount /*.css tomcat1
    JkUnMount /*.htm tomcat1
    JkMount /*.html tomcat1
    JkMount /*.ajax tomcat1
<Directory "F:/ApacheIntill/">
    Options Includes FollowSymLinks
    AllowOverride None
    Order deny,allow
    Allow from all 
</Directory>
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Allow from all
</Directory>
<Directory "F:/ApacheIntillF">
    Order deny,allow
    Allow from all
</Directory>

</VirtualHost>
加载中
0
红薯
红薯
启动不了 Apache ,第一件事就要看 error.log 中的错误信息
0
頸頸滴
頸頸滴
error.log 没有错误信息, 当我添加了配置信息,再次启动apache的时候, 弹出错误框 "the requeted operation has failed!"
0
頸頸滴
頸頸滴

引用来自“红薯”的答案

启动不了 Apache ,第一件事就要看 error.log 中的错误信息
error.log 没有错误信息, 当我添加了配置信息,再次启动apache的时候, 弹出错误框 "the requeted operation has failed!"
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部