Closed ZOI-dayo closed 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
あとはGoogle Search Consoleから再クロールをリクエストして、完了です
やるぞ〜〜