andreapollastri / cipi

Install and manage your server like a pro! With Cipi you don’t need to be a Sys Admin to deploy and manage websites and PHP applications powered by cloud VPS.
https://cipi.sh
1.08k stars 223 forks source link

domain name to access dashboard #407

Open mobi974 opened 2 years ago

mobi974 commented 2 years ago

Hi I put a domain name to access to the dashboard and now I'm not able anymore to access to the dashboard with the Ip or the domain nmae it's the same. How could I correct it please ?

arwinvdv commented 1 year ago

See https://github.com/andreapollastri/cipi/blob/3f3d881e71c1aaec608fd926bba9ab7a8b8541f1/app/Jobs/EditSiteDomainSSH.php

I think something like

sudo rpl -i -w "server_name [old_domain]" "server_name [new_domain]" /etc/nginx/sites-available/[username].conf
sudo rpl -i -w "server_name [old_domain]" "server_name [new_domain]" /etc/nginx/sites-enabled/[username].conf
sudo systemctl restart nginx.service