Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


No Format
sudo apt-get install -y git apache2-utils apache2
cd /var/www/
git clone
sudo ln -s /var/www/zmNinja/www /var/www/html/zmninjazmNinja
sudo rm /var/www/html/index.html
sudo nano /etc/apache2/apache2.conf


Notes: The reason I say this isn't the intended way is because without the htpasswd zmNinja will just log in and remember authorization like the desktop and mobile apps. This is bad news bears when it comes to internet accessible domains! Hence the htpasswd.

Bonus : Forward root of domain to /


if desired

No Format
sudo sh -c 'echo "RedirectMatch ^/$ /zmNinja/" >> /etc/apache2/apache2.conf' && sudo service apache2 restart