How To Load Apache Proxy Module in Qnap

Log in to the Qnap as administrator via SSH. To View the list of avaliable Apache modules, go to 1 /usr/local/apache/modules To view those modules have already load, open this file 1 /etc/config/apache/extra/apache-default-modules.conf You should add proxy modules to the main configuration of Apache, showed as below, not the apache-default-modules.conf 1 /etc/config/apache/apache.conf Just append these lines into the conf 1 2 3 4 # Added by xxx, xx/xx/2020 23:21:00 LoadModule proxy_module modules/mod_proxy.

When the Camellia Blooms

It took a whole Saturday night to watch this Korean TV show, which was crazy for me. I must admit this soap TV show reminds me of the feeling you fall in love with someone. I am looking forward to the second season, wondering what happens to them. Click HERE for more information about this TV show.

How To Deploy DNS Master-Slave Service

There are some experiment information I should mentioned as blow Server Type IP Address Domain Name Master 192.168.50.11 master.sparkle.local Slave 192.168.50.22 slave.sparkle.local Master Install required RPM packages. 1 $ yum install -y bind bind-utils Modify the main configuration file saved in /etc/named.conf 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 options { # add master ip address listen-on port 53 { 127.

How to deploy local http yum repository

Installing some RPM packages without WAN network can be painful. Why not deploy a local http yum repository to manage your rpm packages. Assume we have two host just like this CentOS 7 Server - 1.2.3.4 CentOS 7 Client - 1.2.3.5 Server Mount CentOS 7 DVD iso into the server . 1 2 3 $ mkdir -pv /media/CentOS $ mount /dev/cd-rom /media/CentOS Create local yum repository 1 2 3 4 5 6 7 8 9 # create local repository directory $ mkdir -pv /data/mylocal # sync rpm packages $ cp -ap /media/CentOS/* /data/mylocal # create local repository info $ yum -y install createrepo --disablerepo='*' --enablerepo='c7-media' $ createrepo /data/mylocal Create local yum repository configuration and Test it

How To Use Iptables

Iptables is a very important skill that must be learned by every system administrator. Basic Usage Enable iptables on centos 7 as root. 1 2 3 4 5 $ systemctl stop firewalld $ yum install -y iptables-servers $ systemctl start iptables $ systemctl enable iptables There are 3 tables including NAT, FILTER, MANGLE and 5 chains including PREROUTING, POSTROUTING, INPUT, OUTPUT , REDIRECT . Different chains depends on the specific table.