Apache httpd module learning memo2

port.conf文件是让httpd监听某些端口

[root@controller conf]# pwd
/etc/httpd/conf
[root@controller conf]# cat ports.conf
# ************************************
# Listen & NameVirtualHost resources in module puppetlabs-apache
# Managed by Puppet
# ************************************

Listen 0.0.0.0:8778
Listen 5000
Listen 80
Listen 8041
Listen 8042
Listen 8777

magic文件,是使用前面的几个字符,用来判断文件是什么类型的”数据库“

[root@controller conf]# head magic
# Magic data for mod_mime_magic Apache module (originally for file(1) command)
# The module is described in /manual/mod/mod_mime_magic.html
#
# The format is 4-5 columns:
#    Column #1: byte number to begin checking from, ">" indicates continuation
#    Column #2: type of data to match
#    Column #3: contents of data to match
#    Column #4: MIME type of result
#    Column #5: MIME encoding of result (optional)

httpd.conf中的配置

Require
在这里插入图片描述IfModule
在这里插入图片描述SetEnvIf
在这里插入图片描述

https://blogs.apache.org/httpd/entry/require_and_friends
https://httpd.apache.org/docs/trunk/mod/mod_setenvif.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值