Create a folder to store the databases :
mkdir -p /usr/share/GeoIP
Download Country IP database
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz
| [ext-letsencrypt] | |
| renew-before-expiration = 45 | |
| rsa-key-size = 4096 | |
| [ext-security-advisor] | |
| promoteSymantec = false | |
| [ext-catalog] | |
| contextAds = off |
Create a folder to store the databases :
mkdir -p /usr/share/GeoIP
Download Country IP database
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz
| # EasyEngine admin NGINX CONFIGURATION | |
| server { | |
| listen 22222 default_server ssl http2; | |
| access_log /var/log/nginx/22222.access.log rt_cache; | |
| error_log /var/log/nginx/22222.error.log; | |
| ssl_certificate /var/www/22222/cert/22222.crt; |
| ## | |
| # SSL Settings (TLSv1.2 and TLSv1.3) | |
| ## | |
| ssl_protocols TLSv1.2 TLSv1.3; | |
| ssl_ciphers 'TLS13+AESGCM+AES128:EECDH+AES128'; | |
| ssl_prefer_server_ciphers on; | |
| ssl_session_cache shared:SSL:50m; | |
| ssl_session_timeout 1d; | |
| ssl_session_tickets off; | |
| ssl_ecdh_curve X25519:sect571r1:secp521r1:secp384r1 |
| # Package generated configuration file | |
| # See the sshd_config(5) manpage for details | |
| # What ports, IPs and protocols we listen for | |
| Port 22 | |
| # Use these options to restrict which interfaces/protocols sshd will bind to | |
| #ListenAddress :: | |
| #ListenAddress 0.0.0.0 | |
| Protocol 2 | |
| # HostKeys for protocol version 2 |
apt install php7.1-common php7.1-cli php7.1-zip php7.1-opcache php7.1-mysql php7.1-mcrypt php7.1-mbstring php7.1-json php7.1-intl php7.1-gd php7.1-fpm php7.1-curl php7.1-bz2Copy the php7.1-fpm pool configuration from php7.0-fpm
cp -f /etc/php/7.0/fpm/pool.d/www.conf /etc/php/7.1/fpm/pool.d/www.conf| ./configure \ | |
| --with-cc-opt='-g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' \ | |
| --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' \ | |
| --prefix=/usr/share/nginx \ | |
| --conf-path=/etc/nginx/nginx.conf \ | |
| --http-log-path=/var/log/nginx/access.log \ | |
| --error-log-path=/var/log/nginx/error.log \ | |
| --lock-path=/var/lock/nginx.lock \ | |
| --pid-path=/run/nginx.pid \ | |
| --http-client-body-temp-path=/var/lib/nginx/body \ |