Создание своего модуля на битрикс
Рубрика: Программирование
Phone: numeric keyboard for text input
<input type="number" pattern="[0-9]*" inputmode="numeric">
docker monitoring tools
docker stats
https://code-maze.com/top-docker-monitoring-tools/
Потеряшки
Если при запуске docker compose ругается
Found orphan containers (app100-rabbitmq, app100-rabbitmq-manager) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Надо запустить его со следующим параметром:
docker-compose up -d --remove-orphans
избавляемся от двойного редиректа
DirectorySlash Off
# Allow mod_rewrite to function when there is no trailing slash
RewriteOptions AllowNoSlash
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_URI} !(.*)/$
# RewriteRule ^(.*)$ $1/ [L,R=301]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}/ [L,R=301]
Когда нужно закрыть или открыть доступ только к некоторым мельти доменам
.htaccess:
SetEnvIfNoCase Host s4\.yandex\.ru$ require_auth=true
SetEnvIfNoCase Host s54\.yandex\.ru$ require_auth=true
AuthType Basic
AuthName «Access to the staging site»
AuthUserFile /data/www/yandex.ru/.htpasswd
Require valid-user
# Setup a deny/allow
Order Deny,Allow
# Deny from everyone
Deny from all
# except if either of these are satisfied
Satisfy any
# 1. a valid authenticated user
Require valid-user
# or 2. the «require_auth» var is NOT set
#Allow from env=!require_auth
Allow from env=require_auth
Когда sitemap.xml нужно обработать как PHP
.htaccess:
<Files "sitemap.xml">
AddHandler application/x-httpd-php .xml
</Files>
Проверка сертификата
Проверка сертификата
echo | openssl s_client -showcerts -servername qna.habr.com -connect qna.habr.com:443 2>/dev/null | openssl x509 -inform pem -noout -text | grep "Not After"
Начинающий Erlang/Elixir разработчик
Вы счастливы на 65%
Интересный тест прошел, всего на 65% счастлив, хотя такие вопросы там интересные — нуждаетесь ли вы в деньгах? Эм) есть такие кто не нуждается?
https://journal.tinkoff.ru/happiness-test/