ユーザーが特定の場所にログインするたびに nginx に電子メールを送信するように指示することは可能ですか?
サーバーおよび場所は、例えば次のようになります。
server {
listen 443 ssl;
server_name myserver.com;
root /data;
index index.php index.htm index.html;
ssl_certificate /var/www/certificates/whatever_combined.crt;
ssl_certificate_key /var/www/certificates/whatever.com.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
#Heizungskeller web site
location /heizungskeller {
access_log logs/heizungskeller.access.log heizungskeller if=$loggable;
error_log logs/heizungskeller.error.log;
auth_basic "Please enter userid and password for the heating controls";
auth_basic_user_file .htpasswd_heizung;
allow all;
autoindex on;
index heizung.htm;
}
}
ユーザーが /heizungskeller の場所に正常にログインするたびに電子メールを送信する方法があるかどうかを知りたいです。
答え1
アイデア:
index.html内の画像などの隠しタグを使用して訪問を「マーク」します。後で、次のようなツールでログを確認します。ログサーファー