Koyo-PC / 2023-onten-web

1 stars 0 forks source link

公開する #10

Closed ZOI-dayo closed 1 year ago

ZOI-dayo commented 1 year ago

やるぞ〜〜

ZOI-dayo commented 1 year ago
$ cd /etc/nginx
$ sudo vim sites-available/onten.conf
server {
        listen 443 ssl;
        server_name koyo-onten.net;
        ssl_certificate /home/nginx/cert/koyo-onten.net.pem;
        ssl_certificate_key /home/nginx/cert/koyo-onten.net.key;

        location / {
-                 proxy_pass https://2022.koyo-onten.net:443/;
+                 proxy_pass https://2023.koyo-onten.net:443/;
                proxy_ssl_server_name on;
        }
}
server {
        listen 80;
        server_name koyo-onten.net;
        return 301 https://$host$request_uri;
}
$ sudo systemctl restart nginx
ZOI-dayo commented 1 year ago

あとはGoogle Search Consoleから再クロールをリクエストして、完了です