This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MIME_TYPES=$(wget -qO- http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types | sed '/^#/d') | |
echo "types {" > ./mime.types; | |
echo "$MIME_TYPES" | while read -r line | |
do | |
TYPE=$(echo $line | awk '{print $1}') | |
EXTENSIONS=$(echo $line | cut -d' ' -f2-) | |
for EXT in $EXTENSIONS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Получить последние IP-адреса Cloudflare | |
IPS_IPV4_CLOUDFLARE=$(curl https://www.cloudflare.com/ips-v4) | |
IPS_IPV6_CLOUDFLARE=$(curl https://www.cloudflare.com/ips-v6) | |
# Получить последние IP-адреса Google Cloud | |
IPS_IPV4_GOOGLECLOUD=$(curl https://www.gstatic.com/ipranges/cloud.json | jq -r '.prefixes[] | select(.ipv4Prefix) | .ipv4Prefix') | |
IPS_IPV6_GOOGLECLOUD=$(curl https://www.gstatic.com/ipranges/cloud.json | jq -r '.prefixes[] | select(.ipv6Prefix) | .ipv6Prefix') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Options All -ExecCGI -Indexes -Includes +FollowSymLinks | |
#Options -MultiViews | |
# REWRITE ___________________ | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} ^roocms |