airikr / domain.conf
0 likes
0 forks
1 files
Last active 5 months ago
My default config file for a domain for Apache.
| 1 | Protocols h2 h2c http/1.1 |
| 2 | |
| 3 | <VirtualHost *:80> |
| 4 | <Directory /var/www/html/website/> |
| 5 | Options Indexes FollowSymLinks MultiViews |
| 6 | AllowOverride All |
| 7 | Order allow,deny |
| 8 | allow from all |
| 9 | </Directory> |
airikr / domain.conf
0 likes
0 forks
1 files
Last active 5 months ago
My default config file for a domain for Apache (Docker).
| 1 | Protocols h2 h2c http/1.1 |
| 2 | |
| 3 | <VirtualHost *:80> |
| 4 | ServerName domain.com |
| 5 | |
| 6 | RewriteEngine On |
| 7 | RewriteCond %{SERVER_NAME} =domain.com |
| 8 | RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] |
| 9 | </VirtualHost> |
airikr / Update Docker images/containers
0 likes
0 forks
1 files
Last active 5 months ago
TODO: check if the image is up-to-date or not.
| 1 | #!/bin/bash |
| 2 | declare -a arr=("snikket") |
| 3 | |
| 4 | for i in "${arr[@]}" |
| 5 | do |
| 6 | if [ "$i" = "snikket" ] |
| 7 | then |
| 8 | echo |
| 9 | echo "snikket" |
| 10 | echo |
airikr / Backup the whole system
0 likes
0 forks
1 files
Last active 9 months ago
Send the entire system to one of my SSD's that I use only for this goal.
| 1 | #!/bin/bash |
| 2 | dir_backup="backup-ssd-dir" |
| 3 | sudo rsync -aAXv --progress --delete / --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} "$dir_backup" |
airikr / Install softwares and restore backup files
0 likes
0 forks
1 files
Last active 9 months ago
| 1 | #!/bin/bash |
| 2 | |
| 3 | # VARIABLES |
| 4 | dir_home='/home/{username}' |
| 5 | dir_backup='/to/dir' |
| 6 | GREEN='\033[0;32m' |
| 7 | YELLOW='\033[1;33m' |
| 8 | BLUE='\033[0;34m' |
| 9 | NC='\033[0m' |
| 10 | SLEEP='.5' |
Newer
Older