Hello there,
I have came across a situation, where the site is working, but the path to replies isn’t.
You may visit the main site here: https://discuss.stickyricelove.com
And any replies like this one here: https://discuss.stickyricelove.com/t/男友背住我同另一個女仔傾計/2026
I have rebuilt many times over the last night, restarted and updated all things, yet still can’t figure out what’s the cause of this. Here is some configurations in use for references, hopefully someone can shed some lights on this problem:
nginx.conf
server{
listen 443 ssl http2; # Deprecating IPv4
listen [::]:443 ssl http2;
server_name discuss.stickyricelove.com;
location / {
proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_redirect off;
proxy_set_header X-Url-Scheme $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto "https";
}
}
containers/app.yml
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
- "templates/web.socketed.template.yml"
The socket
[root@donut discourse]# ls -al /var/discourse/shared/standalone/nginx.http.sock
srwxrwxrwx 1 root root 0 Sep 19 08:45 /var/discourse/shared/standalone/nginx.http.sock
The access log for the example path above
172.20.209.164 - - [19/Sep/2017:09:22:04 +0800] "GET /t/%E7%94%B7%E5%8F%8B%E8%83%8C%E4%BD%8F%E6%88%91%E5%90%8C%E5%8F%A6%E4%B8%80%E5%80%8B%E5%A5%B3%E4%BB%94%E5%82%BE%E8%A8%88/2026 HTTP/1.1" 301 158 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36"
172.20.209.164 - - [19/Sep/2017:09:22:05 +0800] "GET /t/%E7%94%B7%E5%8F%8B%E8%83%8C%E4%BD%8F%E6%88%91%E5%90%8C%E5%8F%A6%E4%B8%80%E5%80%8B%E5%A5%B3%E4%BB%94%E5%82%BE%E8%A8%88/2026 HTTP/1.1" 301 158 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36"
172.20.209.164 - - [19/Sep/2017:09:22:05 +0800] "GET /t/%E7%94%B7%E5%8F%8B%E8%83%8C%E4%BD%8F%E6%88%91%E5%90%8C%E5%8F%A6%E4%B8%80%E5%80%8B%E5%A5%B3%E4%BB%94%E5%82%BE%E8%A8%88/2026 HTTP/1.1" 301 158 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36"
172.20.209.164 - - [19/Sep/2017:09:22:05 +0800] "GET /t/%E7%94%B7%E5%8F%8B%E8%83%8C%E4%BD%8F%E6%88%91%E5%90%8C%E5%8F%A6%E4%B8%80%E5%80%8B%E5%A5%B3%E4%BB%94%E5%82%BE%E8%A8%88/2026 HTTP/1.1" 301 158 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36"
172.20.209.164 - - [19/Sep/2017:09:22:05 +0800] "GET /t/%E7%94%B7%E5%8F%8B%E8%83%8C%E4%BD%8F%E6%88%91%E5%90%8C%E5%8F%A6%E4%B8%80%E5%80%8B%E5%A5%B3%E4%BB%94%E5%82%BE%E8%A8%88/2026 HTTP/1.1" 301 158 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36"
172.20.209.164 - - [19/Sep/2017:09:22:05 +0800] "GET /t/%E7%94%B7%E5%8F%8B%E8%83%8C%E4%BD%8F%E6%88%91%E5%90%8C%E5%8F%A6%E4%B8%80%E5%80%8B%E5%A5%B3%E4%BB%94%E5%82%BE%E8%A8%88/2026 HTTP/1.1" 301 158 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36"
172.20.209.164 - - [19/Sep/2017:09:22:05 +0800] "GET /t/%E7%94%B7%E5%8F%8B%E8%83%8C%E4%BD%8F%E6%88%91%E5%90%8C%E5%8F%A6%E4%B8%80%E5%80%8B%E5%A5%B3%E4%BB%94%E5%82%BE%E8%A8%88/2026 HTTP/1.1" 301 158 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36"
Regards,
Ivan