1. Create the repo directory:
cd /var/dav
sudo mkdir xxxx-repo
sudo chown www-data xxxx-repo

2. Create an htpasswd file if required

#create a username/password if it's required
cd /etc/nginx/htpasswd-files
sudo htpasswd -c xxxx-htpasswd [username] 
    #(then enter password)

3. Add the username/password to the ERGO shared folder in lastpass

4. Update nginx config:

edit /etc/nginx/sites-enabled, copy a relevant config block (update permissions)

sudo service nginx restart


5. Test that it works

6. Add and commit the changes to /etc/nginx to git (no need to push, this is just a local git repo to track our changes to nginx config)

  • No labels