【发布时间】:2021-11-28 20:44:48
【问题描述】:
我在 .ebextensions 中创建了一个 apache.config 来扩展 apache 的 keep-alive 设置,但在我的实例中我看不到 /etc/httpd/conf.d 中的文件。我的尝试是这样的:
我的实例版本:Amazon Linux 2/3.3.5
files:
"/etc/httpd/conf.d/timeout.conf" :
mode: "000644"
owner: root
group: root
content: |
Timeout 300
KeepAliveTimeout 300
xxxxxxx@ip-172-30-2-176 current]$ ls -l /etc/httpd/conf.d
total 0
drwxr-xr-x 2 root root 62 Oct 9 02:59 elasticbeanstalk
另外,我已经运行 httpd -t -D DUMP_CONFIG 2>/dev/null | grep -v '#' 来检查这些值,但这些值是 60(默认值)。
对我可能做错的任何建议? 非常感谢您提前提供的帮助。
【问题讨论】:
标签: apache amazon-elastic-beanstalk httpd.conf