ssl_session_cache
当我使用 https 时,在 nginx.conf 中设置有什么好处?见这里。
假设我有 100 万个文件,文件列表大概是 20MB。如果我只添加一个文件,inotify
会告诉rsync
传输文件列表和新文件。我的网络不好,我可能不得不限制带宽 ( --bwlimit
)。
可能会一次添加多个文件,并且鉴于网络传输速度,可能会同时运行多个 rsync。
这值得么?有没有更好的办法?
我有两个在 saltstack 下管理的 httpd 服务器的仆从。VirtualHost
基于端口需要为它们单独配置。所以/etc/httpd/conf.d/httpd-vhost.conf
是这样看的:
httpd:
pkg.installed: []
service.running:
- require:
- pkg: httpd
- watch:
- file: /etc/httpd/conf.d/httpd-vhosts.conf
/etc/httpd/conf.d/httpd-vhosts.conf:
file.managed:
- source: salt://webserver/httpd-vhosts.conf
Run Code Online (Sandbox Code Playgroud)
问题是这两个 Minion 有自己的服务器名称,httpd-vhost.conf
应该像ServerName www.example1.com
和一样不同www.example2.com
。Saltstackgrains
模块只适用于 .sls 文件而不是托管文件。那么有什么建议可以让它发挥作用吗?
众所周知,我们的 CentOS 服务器默认安装并启用 IPv6 模块。但我从未使用过它,许多文章告诉我们出于性能或安全原因禁用 IPv6 功能。那么我的服务器在 Internet 上应该在什么样的情况下启用 IPv6?
我知道一点proxy_cache
,用于为客户端请求的静态文件制作缓存。但proxy_buffer
真的让我很困惑。它是否为代理后端服务器缓冲?
我也看到client_max_body_size
,并client_body_buffer_size
出现在nginx.conf
与proxy_cache
和proxy_cache
之后。有关系吗?