apt-get install apache2-mpm-itk
AssignUserID petya petya
chmod -R 644 /home/petya/domain.ru/docs
find /home/petya/domain.ru/docs -type d -exec chmod 755 {} \; -print
error_page 404 = @fallback;
location / { ...; }
location ~* ^.+\.(jpg|jpeg|gif|...) { ...; }
location @fallback {
proxy_pass http://127.0.0.1:81;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
Вариант для ленивых https://debian.pro/1128
Для не ленивых - https://debian.pro/276 , https://debian.pro/1139 (только PTR и А записи для ip/хостнейма настроить не забудьте. Ну и spf записи тоже).
#!/bin/bash
set_vars () {
chroot_dest=/
#db_list=$(chroot ${chroot_dest}/ /usr/bin/mysql -e 'show databases;' | egrep -v '("+--"|Database|mysql|information_schema|performance_schema)')
backupdate=$(date +%Y%m%d-%H%M)
backup_dest=/backup2/dom0
backup_dest_chroot=${backup_dest}/rootfs/
backup_dest_mysqldumps=${backup_dest}/mysqldumps/
exclude_list=/etc/backup/exclude-dom0.list
}
rdiff_backup () {
#set -x
/usr/bin/rdiff-backup --print-statistics --exclude-sockets --preserve-numerical-ids --exclude-globbing-filelist ${exclude_list} ${chroot_dest} ${backup_dest_chroot}
}
set_vars
rdiff_backup