Cheatsheet: Adding a new webapp to Apache

Basic config (as root)

  • create a new user useradd _user

  • copy your app to /var/www cp myapp /var/www

  • set the owner chown -r _user._user /var/www/myapp

  • update Apache config vim /etc/apache2/sites-available/.conf cd /etc/apache2/sites-enabled && ln -s ../sites-available/.conf

  • update SSL certificates certbot -apache


59 Words

2017-11-19