Redirect www and non-www http to non-www https on NGINX
September 3rd, 2016 12:27 PM | NGINX | No Comment
How to set up redirect www and non-www http to non-www https
o nginx config file
vim /etc/nginx/sites-enabled/blackonsole.conf
# http
server {
listen 80;
server_name blackonsole.org www.blackonsole.org;
return 301 https://blackonsole.org$request_uri;
}
# https
server ...
CSS Fonts Missing: No ‘Access-Control-Allow-Origin’ header is present on the requested resource
September 3rd, 2016 11:49 AM | How to | No Comment
CSS Fonts Missing on web
The error some like:
Font from origin 'http://css.blackonsole.org' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://blackonsole.org' is therefore not allowed access.
How to fix CSS ...
KVM/Archipel enable ttyconsole on guest vm with virsh
June 13th, 2016 10:51 PM | Linux | No Comment
Debian Jessie Guest VM
+ Enable and start serial console
systemctl enable [email protected]
systemctl start [email protected]
+ Check status
systemctl list-units | grep getty@
you'll see like this:
[email protected] ...
Fix courier imapd.pem error PEM routines no start line
April 26th, 2016 10:39 AM | Linux | No Comment
Error courier imapd.pem file
tailf /var/log/mail.log
imapd-ssl: couriertls: /etc/courier/imapd.pem: error:0906D06C:PEM routines:PEM_read_bio:no start line
How to fix
vim /etc/courier/imapd-ssl
Make sure dhparams.pem added on the file
##NAME: TLS_DHPARAMS:0
#
# TLS_DHPARAMS - DH parameter file.
#
TLS_DHPARAMS=/etc/courier/dhparams.pem
Restart courier-imap-ssl
/etc/init.d/courier-imap-ssl restart
How to push AutoMysqlBackup files to Google Drive
February 9th, 2016 12:23 AM | Linux | 2 Comments
What is AutoMysqlBackup
AutoMySQLBackup with a basic configuration will create Daily, Weekly and Monthly backups of one or more of your MySQL databases from one or more of your MySQL servers.
How to install AutoMySQLBackup on Ubuntu
sudo apt-get install automysqlbackup
Tool backup file ...
How to add NAT iptables rules with CSF
January 9th, 2016 04:33 AM | cPanel | No Comment
What is CSF
Config Server Firewall (or CSF) is a free and advanced firewall for most Linux distributions.
How to add NAT iptables rules with CSF Firewall
We can add custom NAT iptables rules in /etc/csf/csfpre.sh OR/AND /etc/csf/csfpost.sh
0. Create csfpre.sh or csfpost.sh
touch ...
Fix AWStats on WHM/cPanel with NGINX
December 12th, 2015 12:06 AM | cPanel | No Comment
What is AWStats
AWStats is short for Advanced Web Statistics. AWStats is powerful log analyzer which creates advanced web, ftp, mail and streaming server statistics reports based on the rich data contained in server logs. Data is graphically presented in easy to read web pages.
Fix AWStats issue ...