在NGINX上加载更多标题

在NGINX上加载更多标题,nginx,archlinux,module,http-headers,config,Nginx,Archlinux,Module,Http Headers,Config,我已经从extra及其nginx mod headers安装了更多communityrepositories上的模块包 我想在主配置文件/etc/nginx.conf中使用它的more\u set\u headers指令 我已将以下行添加到配置文件中: load_module '/usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so'; 及 在http块中 /usr/lib/nginx/modules是安装后软件包放置模块(*

我已经从
extra
及其
nginx mod headers安装了更多
community
repositories上的模块包

我想在主配置文件
/etc/nginx.conf
中使用它的
more\u set\u headers
指令

我已将以下行添加到配置文件中:

load_module '/usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so';

http
块中

/usr/lib/nginx/modules
是安装后软件包放置模块(
*.so
文件)的位置

重新加载不会输出任何读取配置文件的错误,但模块不起作用。我仍然可以在
403:Forbidden
页面中看到标识
nginx
名称

我在网上做了一些研究,我读到了在中有静态和动态模块处理


为了有效地使用
load\u module
指令,我是否应该使用switch重新编译web服务器?

我建议您使用标题重新编译nginx更多模块这是我遇到的一个好教程:我建议您使用标题重新编译nginx更多模块这是我遇到的一个好教程:
more_set_headers 'web server'