Setting up a domain

cd /etc/nginx/conf.d/vhosts sudo nano X.com.conf ADD: return 301 https://www.X.X$request_uri; (save) I.e. server {     listen 176.31.193.41:80;    access_log /var/log/nginx/access.yoursite.site.log;    error_log /var/log/nginx/error.yoursite.site.log;    server_name yoursite.site www.yoursite.site;    root /public_html/yoursite.site;     return 301 https://www.yoursite.site$request_uri; sudo nano X.X_ssl; ADD: if ($host !~ ^www\.) {             rewrite ^ https://www.$host$request_uri permanent;          } […]

CentOS 7 Notes

Common services started from the command prompt https://www.liquidweb.com/kb/restarting-services-from-the-command-line/ When all services are down it’s probably because the firewall service needs to be started systemctl enable firewalldsystemctl start firewalldsystemctl status firewalld https://www.liquidweb.com/kb/how-to-start-and-enable-firewalld-on-centos-7/ How to start CentOS Web Panel service cwpsrv statusservice cwpsrv start https://www.plothost.com/kb/services-centos-web-panel/ Adding users with root privilatge and no passwords https://unix.stackexchange.com/questions/174780/centos-7-add-new-user-with-root-privileges Deleting files and […]