- nginx
- MariaDB
- PHP
sudo apt-get install ca-certificates curl
curl -s https://raw.githubusercontent.com/mikekatip/lemp-server-install/master/lemp-server-install.sh | bash
sudo /usr/bin/domain add domain.tld
- Web Root Directory:
/var/www/domain.tld
- nginx .conf file:
/etc/nginx/conf.d/domain.tld.conf
- Configured for SSL using LetsEncrypt
http://domain.tld
will be redirected tohttps://domain.tld
http://www.domain.tld
will be redirected tohttps://domain.tld
https://www.domain.tld
will be redirected tohttps://domain.tld
sudo domain add domain.local
If you installed LEMP on your local development machine instead of a public web sever, replace .tld
(.com, .net, .org, etc) with .local
.
- Web Root Directory:
/var/www/domain.local
- nginx .conf file:
/etc/nginx/conf.d/domain.local.conf
/etc/hosts
will be updated to pointdomain.local
to127.0.0.1
- Not configured for SSL
Make sure to make a backup before removing a domain.
sudo domain remove domain.tld
sudo domain remove domain.local
- Removes Web Root Directory (will not be backed up before deletion)
- Removes nginx .conf file (will not be backed up before deletion)
- Restarts nginx