apache nginx header 删除 配置
发表于|更新于|others
apache 删除响应header
1 | Header unset Access-Control-Allow-Origin |
apache 增加header
1 | Header set Access-Control-Allow-Methods * |
nginx 增加header
1 | add_header Access-Control-Allow-Origin $http_origin always; |
文章作者: developer
文章链接: http://example.com/2020/06/29/apache%20nginx%20header%20%E5%88%A0%E9%99%A4%20%E9%85%8D%E7%BD%AE/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Dev!
相关推荐
2020-06-24
nginx 配置 转发
1234567server { listen 80; server_name geo.datav.aliyun.com; location / { proxy_pass http://geo.datav.aliyun.com; }}
2019-06-20
psd 删除 无用 元数据
123456789101112131415161718function deleteDocumentAncestorsMetadata() { whatApp = String(app.name); //String version of the app name if (whatApp.search("Photoshop") > 0) { //Check for photoshop specifically, or this will cause errors //Function Scrubs Document Ancestors from Files if (!documents.length) { alert("There are no open documents. Please open a file to run this script.") return; } if (...
2018-01-31
Supervisor 配置 使用 常见问题 thinkphp 队列 使用方法
安装安装方法很多,这里给出最简便的 123wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py -O - | sudo pythoneasy_install supervisor 然后 1find / -name supervisord.conf 找到supervisord.conf路径 1echo_supervisord_conf > /etc/supervisord.conf 在找到的空配置中生成示例配置 详细方法http://blog.csdn.net/xyang81/article/details/51555473 配置最后一行 123;包含其它配置文件[include]files = relative/directory/*.ini ;可以指定一个或多个以.ini结束的配置文件 这里注意!!!*[include]*前的 ; 要去掉,否则不会加载 ini 配置!!! 使用在你inclue的目录中加一个ini 1234567891011[program:thinkphp]command...
2017-09-02
php apache 配置 https ssl phpstudy 开启 Forward Secrecy 前向保密
SSL HTTPS检测获得A+的方法 检测地址 https://www.ssllabs.com/ssltest/ apache版本 2.4 开启php的openssl模块 开启apache的ssl模块 一般大家是用apache虚拟机的增加如下配置 1234567891011121314151617181920212223242526272829Listen 443<VirtualHost *:443> DocumentRoot "C:\php\www" ServerName iguojin.com ServerAlias # 开启HSTS长期有效 Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains; preload" # 开启SSL SSLEngine on # 添加SSL协议支持协议 SSLProtocol all -SSLv2 -SSLv3 # 服务器...
2020-12-02
nginx 去掉了TLSv1.0 但是还是一直支持
nginx存在多个虚拟机时候必须所有虚拟机都去掉才会生效
2020-04-16
docker nginx 获取真实 客户端 ip
解决办法修改ports例如如下服务 123456789101112131415nginx: image: "nginx:alpine" ports: - target: 80 published: 80 protocol: tcp mode: host - target: 443 published: 443 protocol: tcp mode: host networks: backend: aliases: - "nginx" 其他介绍原文地址https://blog.csdn.net/fengyilin_henu/article/details/84912763 host模式和ingress模式介绍http://c.biancheng.net/view/3195.html 正常发布服务后,使用host模式更新服务 12345docker service update app_nginx \ --publish-rm 8...
公告
This is my Blog