apache http服务器学习

1.配置文件

(1)include

主配置文件 /etc/httpd/conf/httpd.conf

include其他文件  ,这里把conf.d目录下的文件都include进来了

IncludeOptional conf.d/*.conf

(2)检查配置文件语法错误

apachectl configtest或-t

(3)模块

可以使用-l命令行选项。您还可以使用-M命令行选项查看动态加载了哪些模块。

[root@controller ~]# apachectl -l
Compiled in modules:
  core.c
  mod_so.c
  http_core.c
[root@controller ~]# apachectl -M
Loaded Modules:
 core_module (static)
 so_module (static)
 http_module (static)
 access_compat_module (shared)
 actions_module (shared)


...

(4).htaccess

此文件可以放在任意目录,每次请求都会加载?(待验证)

配置是否启用.htaccess

AllowOverride All
AllowOverride None

AccessFileName 配置其他文件名

.htaccess简介_web(song)的博客-CSDN博客_.htaccess

参考

Apache 中文文档 - Configuration Files | Docs4dev

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值