Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我应该根据服务器配置 HSTS 代码,如下例所示。示例:是否可以在我使用的服务器上创建一个函数 / if else (apache 或 Nginx 将实现这样的代码)?
NGINX: add_header Strict-Transport-Security 'max-age=31536000; 包括子域;预载';
APACHE:标头集 Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"