Nginxのproxy_passでページが真っ白になってしまいます

vps上にubuntu22.04ltsでwiki.jsを動かしています。
wiki.jsはポート指定でのssl接続はできており、次にwiki.jsをロケーション指定で表示しようとしています。

以下、設定ファイルから抜粋ではありますが、以下のように設定しているときproxy_passで正常に表示されません。
ブラウザ上ではタブにタイトルは正しく表示されますが、ページは真っ白です。
参考にcurlのアクセス結果も添付いたします。

linux自体も初めて1か月立っていないため当たり前のこともわかっていないと思います。
いろいろと調べながらパーミッションなど気を付けてSSL接続まではできていると思うのですが、なにか根本的な間違いをしているかもしれません。

アドバイスをよろしくお願いいたします。

/etc/nginx/sites-available/default

# SSL configuration server { listen 443 ssl http2 default_server; listen [::]:443 ssl http2 default_server; server_name www.server.com; root /var/www/html; index index.html index.htm; # SSL ssl_certificate "/etc/letsencrypt/live/www.server.com/fullchain.pem"; ssl_certificate_key "/etc/letsencrypt/live/www.server.com/privkey.pem"; ssl_session_cache shared:SSL:1m; ssl_session_timeout 10m; location / { try_files $uri $uri/ =404; } # wiki.js location /wiki/ { proxy_pass https://www.server.com:3443/; } }

ポートアクセスの結果

$ curl https://www.server.com:3443

bash

1curl: (60) SSL certificate problem: unable to get local issuer certificate 2More details here: https://curl.se/docs/sslcerts.html 3 4curl failed to verify the legitimacy of the server and therefore could not 5establish a secure connection to it. To learn more about this situation and 6how to fix it, please visit the web page mentioned above.

proxy_passの結果

$ curl https://www.server.com/wiki/

bash

1<!DOCTYPE html><html lang="ja"><head><meta http-equiv="X-UA-Compatible"2~~~省略~~~ 3<p>テスト中</p>4</div></template><template slot="comments"><div><comments></comments></div></template></page></div></body></html>

コメントを投稿

0 コメント