virtualmin nginxサイトの横に2番目のnginx Webアプリケーション(swizzin)を使用する方法は?

virtualmin nginxサイトの横に2番目のnginx Webアプリケーション(swizzin)を使用する方法は?

私の目標は、WebホスティングとシードボックスにVPSを使用することです。私はこれを動作させる方法を考えることはできません。現在、すべてのサブドメイン(swizzinを使用するように設定したドメインを含む)は、Virtualminの「Under Construction」ページに直接移動します。

誰でも私を助けることができますか? (私はこれがうまくいかないので、詳細な指示と一緒に)いくつかのリバースプロキシとアップストリームの提案を試しましたが、うまくいきませんでした。

私は現在4日間これをやろうとしています。

ベストアンサー1

うん。数日間の努力の後、VPSでVirtualminとswizzinを実行するようになりました。まず、nginxをサポートするVirtualminをインストールする必要があります。

https://www.virtualmin.com/documentation/web/nginx

次に swizzin をインストールします。

bash <(curl -sL git.io/swizzin) && . ~/.bashrc

GUI または端末から swizzin パネルをインストールします。

box install panel

ドメインに LetsEncrypt をインストールします。

box install letsencrypt

ドメイン名(例:my.domain.com)を指します。

nginx デフォルト値の編集

nano /etc/nginx/sites-enabled

そこに置く

server {
server_name my.domain.com;
listen x.x.x.x;

client_max_body_size 40M;
server_tokens off;
root /srv/;

include /etc/nginx/apps/*;

location ~ /\.ht {
deny all;
}

location /.well-known {
alias /srv/.well-known;
allow all;
default_type "text/plain";
autoindex    on;
}

# SSL configuration
server {
server_name my.domain.com;
listen x.x.x.x:xssl;

ssl_certificate /etc/nginx/ssl/my.domain.com/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/my.domain.com/key.pem;
include snippets/ssl-params.conf;
client_max_body_size 40M;
server_tokens off;
root /srv/;

include /etc/nginx/apps/*;

location ~ /\.ht {
    deny all;
  }
}

Virtualminでswizzinを操作する必要があります。

おすすめ記事