server { listen 443 ssl; server_name hogehoge.com; ############ 中略 ############ location ^~ /nextjs/ { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://hogehoge.com:3000/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_next_upstream error timeout http_502 http_503 http_504; } location ^~ /_nex