Nginx
木禾杂谈
左手代码,右手吉他,这就是天下!
展开
-
nging:[warn] conflicting server name “mytest.com“ on 0.0.0.0:80,ignored
今儿配置nginx,重启ng的时候突然报错了,异常如下:最终原因:是粗心把域名写重复了。因为ng里面已经配过这个域名了。更改域名重启就可以了!原创 2022-01-07 14:46:55 · 1221 阅读 · 0 评论 -
nginx设置域名跳转另一个域名
server { listen 80; server_name 你访问的域名; location / { index index.html index.jsp; proxy_pass http://跳转目标域名; proxy_set_header Host 跳转目标域名; proxy_set_header X-Real-IP $rem...原创 2020-09-02 14:51:22 · 6712 阅读 · 2 评论 -
Nginx配置允许跨域访问,简单记录
Nginx版本(windows):nginx_1.15.8.1location / { set $cors_origin ""; if ($http_origin ~* "^http://localhost:8080$") { set $cors_origin $http_origin; ...原创 2019-10-28 16:57:53 · 1018 阅读 · 0 评论