【发布时间】:2022-01-29 14:31:57
【问题描述】:
我想将此配置 sn-p 转换为 apache。不明白位置/添加标题标签将被转换成什么
location / {
root html;
index index.html index.htm;
# Security based headers
add_header Content-Security-Policy "frame-ancestors 'self'";
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options SAMEORIGIN;
add_header X-XSS-Protection "1; mode=block";
}
# reverse proxy for xyz
location /zyz/v1 {
proxy_pass https://localhost:4855/zyz/v1;
}
【问题讨论】:
-
有类似这个问题的问题stackoverflow.com/questions/45780526/…
标签: apache nginx webserver nginx-reverse-proxy