开发者社区> 问答> 正文

apache怎样修改配置 : 配置报错 

怎样配置apache?我修改了httpd.conf文件就启动不了了,我的安装目录是C:\Program Files\Apache Software Foundation\Apache2.2\conf

展开
收起
kun坤 2020-06-04 13:12:13 649 0
1 条回答
写回答
取消 提交回答
  • 你修改了什么?贴出来。 (可能你的修改出错导致Apache无法识别并加载配置文件无法启动)######这个最好把 Apache2.2/logs/error.log后面的信息贴出来才好排查啊。######肯定就是你改的不对呗######

    在httpd.conf最后一行加上了 <VirtualHost 127.0.0.1:80>
          ServerAdmin cghe       DocumentRoot "F:\wenjsong"         
          ServerName  127.0.0.1                  DirectoryIndex index.htm  index.html  index.jsp  
          ErrorLog logs/dummy-host.example.com-error_log
          CustomLog logs/dummy-host.example.com-access_log common
    </VirtualHost> 然后apache就启动不了了 是windows

    ######DocumentRoot 后面有“”,那ErrorLog和CustomLog后面是不是也要有?######

    引用来自“mengxi”的答案

    在httpd.conf最后一行加上了 <VirtualHost 127.0.0.1:80>       ServerAdmin cghe       DocumentRoot "F:\wenjsong"                ServerName  127.0.0.1                  DirectoryIndex index.htm  index.html  index.jsp         ErrorLog logs/dummy-host.example.com-error_log       CustomLog logs/dummy-host.example.com-access_log common </VirtualHost> 然后apache就启动不了了 是windows
       ErrorLog "logs/dummy-host.example.com-error_log"    CustomLog "logs/dummy-host.example.com-access_log" common  ######我也遇到跟你一样的情况。
    2020-06-05 13:21:44
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Apache Flink技术进阶 立即下载
Apache Spark: Cloud and On-Prem 立即下载
Hybrid Cloud and Apache Spark 立即下载

相关镜像