httpd.conf 是Apache使用的主要配置文件:

1.文件位置, 一般在:C:\wamp64\bin\apache\apache2.4.51\conf

2. # 是注释符号: 1)解释每一指令的作用,2)指令模板,有时去掉#就能使用

3.Unix/Linux 用 /,如: /etc/httpd/conf/httpd.conf

windows用 \,如: D:\xampp\apache\conf\httpd.conf

4.ServerName: http访问/回应的网站名,即你注册的DNS网站名(如果没有,可以写上IP 地址,假设是117.220.48.20),比如:ServerName www.example.com:80

下面一段没有验证,不知道理解对不对: 如果没有注册的DNS名,则需要在hosts 文件上写上 (/etc/hosts):

117.220.48.20 www.example.com example.com

5.Listen 80 :服务器监听的端口号( 80 和 443, 分别是 default ports for HTTP and HTTPS)

6. User/Group:运行httpd的用户/组

7.ServerRoot: Apache 重要文件所在处 Apache’s important files, like the server’s configuration, error, and log files are kept at the top of the directory tree. This location is the ServerRoot,

8.DocumentRoot: 网站的网页所在处。

9. PidFile: 第一个httpd进程(所有其他进程的父进程)的进程号文件位置 The Apache service first starts as root in order to bind to the privileged port 80 for HTTP (or 443 if using SSL) because port numbers less than 1024 are only reserved to the root user

Apache配置文件httpd.conf的理解相关推荐

  1. Apache配置文件httpd.conf详解

    转自:http://www.jianshu.com/p/c36dd3946e74 Apache配置文件httpd.conf详解 Apache的配置由httpd.conf文件配置,因此下面的配置指令都是 ...

  2. linux查看apache配置文件路径,linux 命令行下查看apache配置文件httpd.conf位置

    如何用linux命令查看apache配置文件httpd.conf位置,说明如下 输入命令 httpd -V 输出结果 [root@MyServer ~]# httpd -V Server versio ...

  3. apache配置文件httpd.conf部分参数说明

    <Directory>...</Directory> -- 设定指定目录的访问权限 <Files>...</Files> -- 设置应用于指定文件的指令 ...

  4. Apache服务器主配置文件 httpd.conf 中文版

    Apache服务器主配置文件 httpd.conf 中文版 # 基于 NCSA 服务器的配置文件 由 Rob McCool 编写! # # Apache服务器主配置文件.  包括服务器指令的目录设置. ...

  5. apache服务器的配置文件httpd.conf中有很多内容,请解释如下配置项:

    例子1: Apache服务器的配置文件httpd.conf中有很多内容,请解释如下配置项: (1)MaxKeepAliveRequests 200 (2)UserDir public_html (3) ...

  6. Apache下的配置文件httpd.conf、httpd-vhosts.conf 转

    Apache下的配置文件httpd.conf.httpd-vhosts.conf(windows) 2013-05-24 22:09 by youxin, 58 阅读, 0 评论, 收藏, 编辑 ht ...

  7. Apache 的 httpd.conf 详解 【转】

    文章来源:Apache 的 httpd.conf 详解(很实用) ServerRoot "/usr/local" ServerRoot用于指定守护进程httpd的运行目录,http ...

  8. Apache 的 httpd.conf 属性详解(收藏)

    ServerRoot "/usr/local" ServerRoot用于指定守护进程httpd的运行目录,httpd在启动之后将自动将进程的当前目录改变为这个目录,因此如果设置文件 ...

  9. Apache 的 httpd.conf 详解

    ServerRoot "/usr/local" ServerRoot用于指定守护进程httpd的运行目录,httpd在启动之后将自动将进程的当前目录改变为这个目录,因此如果设置文件 ...

最新文章

  1. python 编程实例 1
  2. 【原】iOS学习之Quartz2D(1)
  3. Linux下的USB总线驱动 mouse
  4. 19、Power Query-快速分析各产品的销售情况
  5. python selenium定位元素方法,python + selenium 练习篇 - 定位元素的方法
  6. 路由器上IPSEC ×××
  7. Linux tshark发送抓取的数据到kafka
  8. 【IDEA】idea 运行测试类报错 Failed to resolve org.junit.platform:junit-platform-launcher:1.5.2
  9. python可以操作word吗_python实现在windows下操作word的方法
  10. 服务器执行sh文件或目录,将window的shell脚本通过ftp传输到Linux服务器后, shell脚本中执行时提示“没有那个文件或目录”的解决办法...
  11. python贴吧-Python爬虫——抓取贴吧帖子
  12. Atitit it与互联网 的技术体系 目录 1. 概念范围 硬件 软件 应用 1 1.1. 职业分类 2 1.1.1. 软件类 2 1.1.2. 硬件类 2 1.1.3. 网络类 2 1.1.4.
  13. matlab非参数功率普估计,【数字信号处理】--功率谱估计
  14. Java——Arrays 类
  15. linux libodbc.so.1,关于C#:Testprintenv:加载共享库时出错:libodbc.so.1:无法打开共享对象文件...
  16. 一个选手和小丫姐的搞笑对话
  17. 【已解决替代Google英文网页翻译】英文网页翻译成中文(不用额外的插件解决方法)
  18. php 九宫格验证码,PHP+Ajax微信手机端九宫格抽奖实例
  19. 郭敬明:定期关注大数据,指导《小时代》
  20. (No operations allowed after connection closed.).Possibly consider using a shorter maxLifetime value

热门文章

  1. gaussdb数据库 oracle,华为高斯GaussDB T数据库实战培训(7小时速成版)
  2. day02_java基础加强(jdk新特性 javaa设计模式 反射)
  3. 技术分享 | 遥控器控制(Joystick)
  4. VS + QT安装及配置开发环境
  5. 【算法】c语言,输入一个不大于1000的正整数n(n>1),输出所有小于等于n的素数。
  6. 民生大胆挑战5万元限额信用卡最高透支100万
  7. Vue —— 分页器
  8. PHP - 从零开始编写自己的PHP框架 - 学习/实践
  9. Linux——硬盘分区
  10. 链表:判断链表是否有环以及找入口