![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
BishopTylaor
这个作者很懒,什么都没留下…
展开
-
nginx 服务器重启关闭重新加载
nginx -s reload :修改配置后重新加载生效nginx -s reopen :重新打开日志文件nginx -t 测试nginx配置文件是否正确检查正确性时,出现:nginx: the configuration file /home/kratos/local/nginx/conf/nginx.conf syntax is oknginx: [eme原创 2017-03-23 18:39:18 · 626 阅读 · 0 评论 -
nginx CORS 配置
nginx 跨域请求## Wide-open CORS config for nginx#location / {if ($request_method = ‘OPTIONS’) {add_header ‘Access-Control-Allow-Origin’ ‘*’;## Om nom nom cookies#add_header ‘Access-Contro...原创 2018-03-02 12:00:24 · 693 阅读 · 0 评论