pm2 logrotate -u user
/home/user/.pm2/pm2.log /home/user/.pm2/logs/*.log {
rotate 12
weekly
missingok
notifempty
compress
delaycompress
create 0640 user user
}
pm2 logrotate -u user
/home/user/.pm2/pm2.log /home/user/.pm2/logs/*.log {
rotate 12
weekly
missingok
notifempty
compress
delaycompress
create 0640 user user
}
ServerName testdomain.com
ServerAlias *.testdomain.com
RewriteEngine on
RewriteMap lowercase int:tolower
RewriteCond ${lowercase:%{SERVER_NAME}} ^[a-z0-9-]+\.testdomain\.com$
RewriteRule ^(.+) ${lowercase:%{SERVER_NAME}}$1 [C]
RewriteRule ^([a-z0-9-]+)\.testdomain\.com/(.*) /var/www/vhost/testdomain.com/httpdocs/$1/$2
rabbitmqctl authenticate_user username password
rabbitmq-plugins enable rabbitmq_management
curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | apt-key add –
echo “deb https://packages.wazuh.com/4.x/apt/ stable main” | tee -a /etc/apt/sources.list.d/wazuh.list
apt-get update
WAZUH_MANAGER=”10.0.0.2″ apt-get install wazuh-agent
curl -XGET 'http://localhost:9200'
echo "notify-send 'Need to check kitchen in 10 min'"| at now + 10 minutes
<?php sleep(90); $time = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"]; echo "PHP was running $time seconds\n";
export EDITOR=vim
mysql> SET GLOBAL expire_logs_days=7;
curl --write-out "%{http_code}\n" --silent --output /dev/null "$URL"
for URL in `cat domain_list.txt`; do printf "%s: " $URL; curl --write-out "%{http_code}\n" --silent --output /dev/null https://$URL ; done
0 0 * * * /bin/bash -c 'for file in $(/bin/find /some/path -name "*.log"); do /usr/bin/tee -a $file; done'
cat /some/file | grep -oE '[^ ]+$'
Bad Request Your browser sent a request that this server could not understand.
Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request.
Pproblem was in duplicate proxy_set_header Host $http_host;
$_SERVER[‘HTTPS’] = ‘On’;