raw0xff 最近的时间轴更新
raw0xff

raw0xff

V2EX 第 575877 号会员,加入于 2022-03-18 01:19:37 +08:00
根据 raw0xff 的设置,主题列表被隐藏
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
raw0xff 最近回复了
@yinmin 收到,感谢大佬不吝赐教,趁教师节也祝大佬教师节快乐哈哈!
@yinmin 感谢大佬。

我是 docker compose 了一个运行着 nginx 的 alpine 服务,服务启动时会 scale 多个容器,nginx.conf conf.d html 这三个理解,log/nginx 是不是不适合我?我也在考虑如何监视多个 nginx 容器运行的状态的问题。扯远了哈哈
@nightcc
server_name _; 可行。

之前不行是因为没发现 http.d 目录还有个 default.conf ,内容是:
server {
listen 80 default_server;
listen [::]:80 default_server;

# Everything is a 404
location / {
return 404;
}

location = /404.html {
internal;
}
}

所以,无论另一个 d.conf 文件怎么改,只要不在 server_name 名单里都会 404.
server {
listen 80 ;
listen [::]:80 ;
server_name _;
default_type text/html;

location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
}
server_name 用_的话,localhost 127.1 0.0 外网 IP 全是 404 ,不知道为什么,可能 _ 没有 default_server 管的宽?哈哈
@yinmin 您给看看为啥?

我现在是 docker 启动时用 d.conf 直接覆盖这个 default.conf 。
@yinmin
@kiml
@yinmin

对不起对不起,我的错,发现容器里/etc/nginx/http.d 文件夹中还有个 default.conf 文件,两个 conf 同时配置 80 端口,所以我改来改去都没作用。

server_name 0.0.0.0; 可用
server_name 删掉也可用
对不起是我马虎了
@yinmin 你确定吗? server_name 是必须设置的。
@putaozhenhaochi 不是端口的问题,可以访问。
@gps949 copilot 我也在拼车,性价比高。cody 也不错。

@fzls 这几天都在用 poe ,也没提示让充值就继续用着
@timeance 什么是代码模式?感觉自己就像没用过 GPT
@fengtianze 没找到原因,就重启了,重启治百病。
21 天前
回复了 lowsell 创建的主题 程序员 找一个合租 github copilot
cody 也可以 TAB 吗?
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2710 人在线   最高记录 5930   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms · UTC 14:00 · PVG 22:00 · LAX 07:00 · JFK 10:00
Developed with CodeLauncher
♥ Do have faith in what you're doing.