joglomedia / LEMPer

LEMPer Stack is terminal-based LEMP / LNMP ( Linux, Nginx, MariaDB, PostgreSQL, MongoDB, Redis, Memcache, PHP, Secure FTP ) auto installer and virtual host manager for Debian & Ubuntu cloud or virtual server (vps) and on-premise (bare metal).
https://lemper.cloud/
GNU General Public License v3.0
208 stars 56 forks source link

Local domain (e.g. example.test) not working on Local/Dev environment #85

Closed joglomedia closed 3 years ago

joglomedia commented 3 years ago

Currently, to make local domain (e.g. example.test) working or accessible on Local/Dev environment you need to modify /etc/hosts file. By adding the local domain name to the hosts file and assign it with local/private IP address.

Since version 3.0.1 this solution could be done from lemper-cli command by passing --ipv4 parameter, as below:

sudo lemper-cli create -u ${USER} -d example.test -f wordpress -w ${HOME}/webapps/example.test --ipv4=127.0.10.1

For further release, we should take other better solution.