如何添加http module

问答中心分类: Nginx如何添加http module
BabyBichu asked 8月 ago

https://support.cloudflare.com/hc/en-us/articles/200170706-How-do-I-restore-original-visitor-IP-with-Nginx-
如何实现这个?我是将那些字段加在默认那个conf的http {的后面 结果service nginx restart时出错

4 Answers
oneinstack 管理员 answered 7月 ago

添加后,nginx -t 检查语法吧

BabyBichu answered 7月 ago

nginx: [emerg] invalid parameter “2400:cb00::/32” in /usr/local/nginx/conf/nginx.conf:75
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed

BabyBichu answered 7月 ago

删去那些IPV6地址又没问题能重启了……求解~难道不支持IPV6?如何支持?

BabyBichu answered 7月 ago

懂了惹~看来默认不支持,要支持得重新配置……已成功!