Get real IP when using CloudFlare with Nginx / Apache

CloudFlare acts as a reverse proxy, so all connections to your server’s IP will be displayed with CloudFlare.

If your server configuration uses to IP, such as using firewall, log files … it is obligatory to adjust add additional steps to be able to operate stably.

the IP address of the original users are stored in the header X-Forwarded-for or header CF-Connecting-IP you use headers Whatever.

See also: Thiet ke biet thu dep

Get original IP client using CloudFlare with Nginx

Open Nginx configuration file, usually the path /etc/nginx/nginx.conf and place the real Nginx configuration later in the block IP module http .

 set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 104.16.0.0/12;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 131.0.72.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
set_real_ip_from 199.27.128.0/21;
set_real_ip_from 2400: cb00 :: / 32;
set_real_ip_from 2606: 4700 :: / 32;
set_real_ip_from 2803: F800 :: / 32;
set_real_ip_from 2405: B500 :: / 32;
set_real_ip_from 2405: 8100 :: / 32;
set_real_ip_from 2c0f: f248 :: / 32;
set_real_ip_from 2a06: 98c0 :: / 29;

# Use any of the drop down two
CF-Connecting-IP real_ip_header;
X-Forwarded-For #real_ip_header;

In addition, you need to adjust the parameters to use log_format $ http_cf_connecting_ip or $ HTTP_X_FORWARDED_FOR as follows:

 main log_format '$ REMOTE_ADDR - $ REMOTE_USER [$time_local] $ status'
                '' $ Request "$ body_bytes_sent" $ HTTP_REFERER " '
                ' "$ HTTP_USER_AGENT" "$ http_cf_connecting_ip"';

Reload the Nginx to use the new configuration is complete.

List of IP needs to be updated from time to time, you can get the IP the latest here .

Get original IP client using CloudFlare with Apache

If using Apache Webserver, you can use the package available mod cloudflare .

1. Install the package needed

– Red Hat / Fedora:

 sudo yum install httpd-devel libtool git

– Debian / Ubuntu:

 sudo apt-get install apache2-dev libtool git

2. The latest Clone mod_cloudflare code

 && cd git clone https://github.com/cloudflare/mod_cloudflare.git mod_cloudflare

3. Compile the module

Red Hat / Fedora / Debain / Ubuntu:

 apxs -i -a -c mod_cloudflare.c

4. Restart the webserver and check the module was active

– Red Hat / Fedora:

 service httpd restart httpd -M && | grep CloudFlare

– Debian / Ubuntu:

 sudo apachectl restart; apache2ctl -M | grep CloudFlare

5. If your web server load balancer is used to add the following line to your Apache configuration file:

 CloudFlareRemoteIPTrustedProxy 123 123 123 123

More information here guidelines use CloudFlare and configure WordPress, Joomla …

Wish you success.

See more:

> Máy ép bùn khung bản tốt nhất Việt Nam

> Mẫu thiết kế biệt thự cao cấp nhất

> Thiết kế biệt thự cổ điển bởi Kiến Trúc AC

> Dự án thiết kế biệt thự Pháp đẹp

Get real IP when using CloudFlare with Nginx / Apache
3.27 (65.33%) 150 votes

Instructions for installing the Comodo SSL certificate

Installing the Comodo SSL certificate

PositiveSSL of Comodo SSL Certificate Domain Validation is a lot of people used by low cost, easy to install, does not require paperwork to confirm the information at all.

In this article, I will guide you how to install the certificate on the server PositiveSSL using Nginx.

If you have not registered SSL certificate, refer to promotional SSL blog thiết kế biệt thự

1. Generate certificate

SSL After registration, you need to conduct a new receiving generate the certificate file.

In this step, you need to give Private Key (and CSR Key), be careful to save Private Key to use the steps below. Depending on where you register the certificate that supports key functions automatically generate different.

See also: Plan your keywords for any website

Format private key form:

—– BEGIN PRIVATE KEY —–
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDXCvdAoLtG5QRb
GvYZ / 9pOqYYUpA / rZnAAUAFyqdnMcMsYmD6W / m4J9W7 / onDrQX7ExzfAKhbWy + FA
v18S8P7arvjxnjXoS8rs4 / IVwiqLy5PqispyEmlsFp19 / TpJeYltVrrPofiS7 / IV
p095TH66erRgxe54BhzPI2XrurKeqSlgyMbBfgw73KaX3LP7qVcVOSEJWkz9WEhl
RJrYwZ3s8U2iFF7ZK / wX7pVN36XM187pFg6vcIjKWdnOUmgPsOYof6d72koddiPm
oOuDIHAd3M3i1OrhLmx1usHmbL5hj2ls9MI6LOjm15ZAGk + q7lIOsdRfAto8pgE7
u7oB4ts / AgMBAAECggEAaLYGP4oEpzjNLi + qtm5HNxaFG3fn6JAw6XYLvnHGhC5I
NumrUIsDugWwzvmiUmvJ9rerBf94r48HWCfXe7mt335j6gNH7J07aq50KvQpE3lF
xWdfvLwKaX95oOe1giGUMZGR1ZjhGWuNTc3yfPYqn1Mwkg7PV9JiJNrvviFi6K5B
vcjVNBlf44zQG4UMeZ9T / aoVFtmDifRMDQQ62MdzgJs4AE0U2 + MEbN3NBySbeXID
—– END PRIVATE KEY —–
Email sent from Comodo SSL certificate with the same title as follows: ” Your PositiveSSL Certificate for seosieutoc.com “, in the mail with attachment 1 zip seosieutoc_com.zip consists of two files:

seosieutoc_com.crt
seosieutoc_com.ca-bundle
You use any editor, Notepad ++ for example, open the file seosieutoc_com.crt copy and paste the entire contents of the file on top of seosieutoc_com.ca-bundle saved in the file ssl-bundle.crt

At this time, the certificate file ssl-bundle.crt will contain the contents of two files .crt and .ca-bundle

2. Install SSL certificates

This step alone operation on server installation HocVPS Script the server installed Nginx server manually or else how do you keep reading same carefully to understand. Entanglements place to leave a comment I will support always.

Create a file folder containing the certificate:

mkdir -p / etc / nginx / ssl / seosieutoc_com /
Save the content certificate file in this folder, copy / paste using Nano editor

nano /etc/nginx/ssl/seosieutoc_com/ssl-bundle.crt
Save the content shared folder Private Key:

nano /etc/nginx/ssl/seosieutoc_com/seosieutoc_com.key
Creating parameters DH 2048 bit file, the process will generate a while:

mkdir / etc / nginx / cert /
openssl-out /etc/nginx/cert/dhparam.pem[19459015dhparam2048]
Next, we will adjust the Nginx configuration file. For example, your domain name is seosieutoc.com the file will be the path configuration is /etc/nginx/conf.d/seosieutoc.com.conf

Open up the configuration file with nano

nano /etc/nginx/conf.d/seosieutoc.com.conf
Configuring SSL processing requests

In block server … 2nd adjusted as follows:

+ Transfer listen 80 default_server ; to listen ssl 443 http2 ;

+ The line server_name seosieutoc.com; add the SSL configuration has been optimized yourself:

# SSL
ssl_certificate /etc/nginx/ssl/seosieutoc_com/ssl-bundle.crt;
ssl_certificate_key /etc/nginx/ssl/seosieutoc_com/seosieutoc_com.key;
TLSv1 TLSv1.1 ssl_protocols TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers’ ECDHE-ECDSA-CHACHA20-POLY1305: ECDHE-RSA-CHACHA20-POLY1305: ECDHE AES128-GCM-ECDSA-SHA256-: RSA-AES128-ECDHE-GCM-SHA256: ECDHE AES256-GCM-ECDSA-SHA384-: ECDHE- RSA-AES256-GCM-SHA384: DHE-RSA-AES128-GCM-SHA256: DHE-RSA-AES256-GCM-SHA384: ECDHE-ECDSA-AES128-SHA256: RSA-AES128-ECDHE-SHA256: ECDHE-ECDSA-AES128- SHA: RSA-AES256-ECDHE-SHA384: RSA-AES128-ECDHE-SHA: ECDHE-ECDSA-AES256-SHA384: ECDHE AES256-SHA-ECDSA-: RSA-AES256-ECDHE-SHA: DHE-RSA-AES128-SHA256: DHE-RSA-AES128-SHA: DHE-RSA-AES256-SHA256: DHE-RSA-AES256-SHA: ECDHE-ECDSA-DES-CBC3-SHA: ECDHE-RSA-DES-CBC3-SHA: EDH-RSA-DES CBC3-SHA: AES128-GCM-SHA256: AES256-GCM-SHA384: AES128-SHA256: AES256-SHA256: AES128-SHA: AES256-SHA: DES-CBC3-SHA:! DSS ‘;

OCSP ## Stapling
127.0.0.1 resolver;
ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /etc/nginx/ssl/seosieutoc_com/ssl-bundle.crt;

# Improve performance with HTTPS session resumption
ssl_session_cache shared: SSL: 50m;
ssl_session_timeout 1d;

ssl_session_tickets off;

# DH parameters
ssl_dhparam /etc/nginx/cert/dhparam.pem;

# Enable HSTS (https://developer.mozilla.org/en-US/docs/Security/HTTP_Strict_Transport_Security)
Strict-Transport-Security add_header “max-age = 31536000” always;
Redirect entire www http to https link

In block server … at the top:

+ Transfer server_name www.seosieutoc.com ; to server_name seosieutoc.com www.seosieutoc.com ;

+ Transfer rewrite ^ (. *) http : //seosieutoc.com$1 permanent; to rewrite ^ (. *) https : //seosieutoc.com$1 permanent;

Results are as follows:

server
listen 80;
server_name seosieutoc.com www.seosieutoc.com ;
rewrite ^ (. *) https : //seosieutoc.com$1 permanent;

Now when accessed http://seosieutoc.com and will automatically redirect to http://www.seosieutoc.com https://seosieutoc.com

Redirect entire www https link to https

Add new block server … at the top

server
http2 listen ssl 443;
server_name www.seosieutoc.com;

# SSL
ssl_certificate /etc/nginx/ssl/seosieutoc_com/ssl-bundle.crt;
ssl_certificate_key /etc/nginx/ssl/seosieutoc_com/seosieutoc_com.key;
TLSv1 TLSv1.1 ssl_protocols TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers’ ECDHE-ECDSA-CHACHA20-POLY1305: ECDHE-RSA-CHACHA20-POLY1305: ECDHE AES128-GCM-ECDSA-SHA256-: RSA-AES128-ECDHE-GCM-SHA256: ECDHE AES256-GCM-ECDSA-SHA384-: ECDHE- RSA-AES256-GCM-SHA384: DHE-RSA-AES128-GCM-SHA256: DHE-RSA-AES256-GCM-SHA384: ECDHE-ECDSA-AES128-SHA256: RSA-AES128-ECDHE-SHA256: ECDHE-ECDSA-AES128- SHA: RSA-AES256-ECDHE-SHA384: RSA-AES128-ECDHE-SHA: ECDHE-ECDSA-AES256-SHA384: ECDHE AES256-SHA-ECDSA-: RSA-AES256-ECDHE-SHA: DHE-RSA-AES128-SHA256: DHE-RSA-AES128-SHA: DHE-RSA-AES256-SHA256: DHE-RSA-AES256-SHA: ECDHE-ECDSA-DES-CBC3-SHA: ECDHE-RSA-DES-CBC3-SHA: EDH-RSA-DES CBC3-SHA: AES128-GCM-SHA256: AES256-GCM-SHA384: AES128-SHA256: AES256-SHA256: AES128-SHA: AES256-SHA: DES-CBC3-SHA:! DSS ‘;

rewrite ^ (. *) https: //seosieutoc.com$1 permanent;

At this time when access will be automatically redirected to https://www.seosieutoc.com https://seosieutoc.com

Configuring SSL with port management HocVPS Admin Script

If you install SSL for the domain name used HocVPS Script, add SSL configuration required when using the port. For example, if your installation to the default port 2313 .

Find block server … line listen 2313;

Add text and paragraph ssl SSL configuration similar to below:

server {
listen 2313 ssl http2 ;
access_log off;
log_not_found off;
error_log off;
/home/seosieutoc.com/private_html root;
index.htm index.html index.php index;
server_name seosieutoc.com;

# SSL
ssl_certificate /etc/nginx/ssl/seosieutoc_com/ssl-bundle.crt;
ssl_certificate_key /etc/nginx/ssl/seosieutoc_com/seosieutoc_com.key;
TLSv1 TLSv1.1 ssl_protocols TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers’ ECDHE-ECDSA-CHACHA20-POLY1305: ECDHE-RSA-CHACHA20-POLY1305: ECDHE AES128-GCM-ECDSA-SHA256-: RSA-AES128-ECDHE-GCM-SHA256: ECDHE AES256-GCM-ECDSA-SHA384-: ECDHE- RSA-AES256-GCM-SHA384: DHE-RSA-AES128-GCM-SHA256: DHE-RSA-AES256-GCM-SHA384: ECDHE-ECDSA-AES128-SHA256: RSA-AES128-ECDHE-SHA256: ECDHE-ECDSA-AES128- SHA: RSA-AES256-ECDHE-SHA384: RSA-AES128-ECDHE-SHA: ECDHE-ECDSA-AES256-SHA384: ECDHE AES256-SHA-ECDSA-: RSA-AES256-ECDHE-SHA: DHE-RSA-AES128-SHA256: DHE-RSA-AES128-SHA: DHE-RSA-AES256-SHA256: DHE-RSA-AES256-SHA: ECDHE-ECDSA-DES-CBC3-SHA: ECDHE-RSA-DES-CBC3-SHA: EDH-RSA-DES CBC3-SHA: AES128-GCM-SHA256: AES256-GCM-SHA384: AES128-SHA256: AES256-SHA256: AES128-SHA: AES256-SHA: DES-CBC3-SHA:! DSS ‘;

auth_basic “Restricted”;
auth_basic_user_file /home/seosieutoc.com/private_html/hocvps/.htpasswd;


Now HocVPS Script link Admin login will be https://seosieutoc.com

Nginx configuration file will eventually be similar to the following:

server
http2 listen ssl 443;
server_name www.seosieutoc.com;

# SSL
ssl_certificate /etc/letsencrypt/live/seosieutoc.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/seosieutoc.com/privkey.pem;
TLSv1 TLSv1.1 ssl_protocols TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers EECDH + CHACHA20: EECDH + AES128: RSA + AES128: EECDH + AES256: RSA + AES256: EECDH + 3DES: RSA + 3DES:! MD5;

rewrite ^ (. *) https: //seosieutoc.com$1 permanent;

server
listen 80;
server_name seosieutoc.com www.seosieutoc.com;
rewrite ^ (. *) https: //seosieutoc.com$1 permanent;

server rar

server
ssl http2 listen 2313;
access_log off;
log_not_found off;
error_log off;
/home/seosieutoc.com/private_html root;
index.htm index.html index.php index;
server_name seosieutoc.com;

# SSL
ssl_certificate /etc/letsencrypt/live/seosieutoc.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/seosieutoc.com/privkey.pem;
TLSv1 TLSv1.1 ssl_protocols TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers EECDH + CHACHA20: EECDH + AES128: RSA + AES128: EECDH + AES256: RSA + AES256: EECDH + 3DES: RSA + 3DES:! MD5;

auth_basic “Restricted”;
auth_basic_user_file /home/seosieutoc.com/private_html/hocvps/.htpasswd;

location /
$ uri $ uri try_files / /index.php;
location ~ .php $
fastcgi_split_path_info ^ (. + . php) (/.+) $;
include / etc / nginx / fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_connect_timeout 1000;
fastcgi_send_timeout 1000;
fastcgi_read_timeout 1000;
fastcgi_buffer_size 256k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;
fastcgi_param SCRIPT_FILENAME /home/seosieutoc.com/private_html$fastcgi_script_name;

location ~ / .
deny all;
Check your Nginx configuration standard view has not

nginx -t
Restart Nginx

service nginx restart
If you use WordPress, install the plugin Really Simple SSL to redirect http to https automatically and transfer the entire link .css, .js to https. The address bar will be green at this time.

Access time to enjoy the fruits domain only. Wish you success.

See also: 

The most searched keywords: dich vu seo, thiết kế biệt thự cổ điển, máy ép bùn khung bản

Why you should focus on improving the speed of web load in 2017

Google AdSense: 10 Methods of optimizing revenue for Web page

Instructions for installing the Comodo SSL certificate
3.18 (63.53%) 170 votes

You can not participate in ICANN’s new policy for the domain name in Name.com

You can not participate in ICANN’s new policy for the domain name in Name.com

If you have a domain name in Name.com can be assured of choosing not to participate policy of ICANN’s new domain Transfer .

Previously, if you update the domain information (including First name, Last name, Organization) after 60 days, they must transfer the domain name away is new.

When ICANN’s new policy came into effect, changing any point in relation to the external domain of communication, eg enable / disable domain privacy, you’ll have to wait another 60 days. In addition, there must verify the information by email as well.

This provision of ICANN to help domain name owners more secure when used, to avoid losing the domain name transfer. However, it also brings more unnecessary inconveniences.

Recognizing these shortcomings, the Name.com pioneered allows customer can choose not to participate in ICANN’s new policy .

Once logged into your account, you will see the message as shown below:

Select Yes, opt-out of the 60 day transfer lock change domain contact (Recommended) to avoid being locked domain.

If you do not see a message on, also on Account Settings to install.

Scroll down below, in the section Contact Change Transfer Lock tick you select Opt-out of the 60-day lock the domain transfer.

Hopefully the next time the other domain name providers will also have more options, enabling users to manage and use more convenient domain.

Consult introductory article Transfer domain name is what if you do not know.

See more:

Onpage SEO tips & Offpage 2016: +100 SEO tips

Guide processor 404 for websites

> Coupon VPS and domain

Promotional Dediserve 50% lifetime, quick registration 12/2016

Themify Coupon – Discounts up to 75%, $ 100 for the package fell Lifetime Master

You can not participate in ICANN’s new policy for the domain name in Name.com
4.13 (82.5%) 80 votes

Installing Redis Cache on CentOS 7/6

Redis caching system that stores data in RAM is similar Memcached. Format not only supports cache keys / values ​​as good as Memcached that Redis also supports many data structures such as hash, list, set, sorted sets, and string.

Redis fully supports similar functions but manipulation Memcached retrieve and load data very quickly, than memcached.

In this article, I will guide you installing Redis on CentOS and Redis configuration instructions for work on WordPress and Magento.

To Redis can work with Magento, we will need to install Redis server with PHP extension can PhpRedis to connect with Redis.

1. Add EPEL repo, remi

 CentOS 7 ## ##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

CentOS 6 ## ##
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

2. Install Redis and PhpRedis extension

 PHP 5.6 ## ##
yum --enablerepo = remi, remi-php56 install php-pecl-Redis Redis
php-fpm service restart

PHP 5.5 ## ##
yum --enablerepo = remi, remi-php55 install php-pecl-Redis Redis
php-fpm service restart

– Running Redis and automatically start at boot

 chkconfig Redis on
Redis service start

1. Check back Redis server

 Redis-cli ping

If the result of PONG is ok

2. Check back PhpRedis extension

 php -m | grep Redis

The results of Redis is ok

3. Redis shell tools

Default Redis installed with a tool comment is Redis-cli

After booting Redis, you can use a command like:

  • FLUSHALL – clear all databases
  • SELECT # – select the database under Index #
  • FLUSHDB – hiện selected empty database
  • KEYS * – list all keys from hiện selected

See the complete list of command here .

4. Application management and tracking Redis

Once installed, you can use PHPRedMin to manage Redis with intuitive interface on the web. Download here .

compression is done, you rename the folder phpredmin-master to phpredmin such then up to the server. Access to the management interface using the link: http://domain.com/phpredmin/public/

The login username / password default is admin / admin . To edit the file you open /phpredmin/config.dist.php up and correct corresponding in paragraph auth

 'auth' => array (
  'Username' => 'admin',
  'Password' => password_hash ( 'admin', PASSWORD_DEFAULT)
),

If left step login, you delete a few lines on the go is.

PHPRedMin used rewritten, so you need to reconfigure the new rules work.

– With Apache:

  Alias ​​ / phpredmin / var / www / phpredmin / public


    AllowOverride  All

   
      # Apache 2.4 
     
        Require  ip localhost
        Require  local
   
   
      # Apache 2.2 
      Order   Deny   Allow 
      Deny  from All
      Allow  from 127.0.0.1
      Allow  from :: 1
   

– With Nginx:

 location / phpredmin / public / 
   $ uri $ uri try_files / /phpredmin/public/index.php;

After the installation is completed and activated Redis service, you just need to install additional plugins W3 Total Cache and then activate selected Redis configuration page is finished.

With Magento, Redis supports different versions. In case your Magento version does not support Redis backend cache or session (or both), you can use to install extensions.

Magento CE> = 1.7.0.0 and <1.8.0.0

  • Session storage – does not support
  • -no Cache backend support, after installing the class name is Cm_Cache_Backend_Redis

Magento CE> = 1.8.0.0

  • Session storage – support
  • -backed cache backend, after installing the class name is Mage_Cache_Backend_Redis

Magento EE> = 1.13.0.0 and <1.13.1.0

  • Session storage – does not support
  • Cache backend – support, after installing the class name is Mage_Cache_Backend_Redis

Magento EE> = 1.13.1.0

Session storage – support
Cache backend – support, after installing the class name is Mage_Cache_Backend_Redis

Using Redis as cache backend

Redis To activate, simply edit the file app / etc / local.xml add the following to the corresponding position to use database 0

            CACHE_BACKEND_CLASS_NAME  
          
             127.0.0.1  
             6379 
              
             0 
             
             0  
             1  
             10  
             0  
             1  
             1  
             20480  
             gzip  
          

Rather CACHE_BACKEND_CLASS_NAME by class name as mentioned above.

Redis Once activated, you can delete the entire contents of the folder var / cache . Redis To check if there really are active or not, run the tool Redis-cli then use the following commands with the database 0

 SELECT 0
KEYS *

Redis works very effectively, particularly with large websites with data, mainly the SELECT query, you can not ignore this stuff.

Installing Redis Cache on CentOS 7/6
5 (100%) 10 vote

Promotional Dediserve 50% lifetime, quick registration 12/2016

Dediserve remains the KVM VPS providers are a lot of people would expect on we by providing good quality, there location Hong Kong and Singapore speed is very fast on ASIA.

Series Crazy Christmas Sale apply cycle time in months or years in comfort, both Resource Pools registration and Server with all the location. Too delicious so you should not ignore offline.

Click the button below to get the coupon code:

Use coupon: RSD9Y5KS1ZB

*** The program lasts from now until 12.31.2016.

Dediserve rarely promotion, each session usually ends prematurely should you be quick order. Payment is by the PayPal or Visa / Master .

VPS here install Windows but the extra $ 21 / month licensing fees, high cost, should not be used. The priority you use the Vultr is cheapest.

Dediserve with location Hong Kong to speed very quickly on Asia, this location is also more stable than Singapore . Priority should choose Hong Kong and Singapore, Indonesia upon registration.

Network Information

Update : lately I see some of you comment flutter Hong Kong location. What are you using to evaluate your application for comment offline.

PING and Trace route results from Viettel to Hong Kong location:

PING latencies

 PING 103.53.199.50 (103.53.199.50): 56 data bytes
64 bytes from 103.53.199.50: 0 ttl = 57 icmp_seq = time = 37 682 ms
64 bytes from 103.53.199.50: 1 ttl = 57 icmp_seq = time = 36 521 ms
64 bytes from 103.53.199.50: 2 ttl = 57 icmp_seq = time = 37 032 ms
64 bytes from 103.53.199.50: 3 ttl = 57 icmp_seq = time = 37 199 ms
64 bytes from 103.53.199.50: 4 ttl = 57 icmp_seq = time = 39 081 ms
64 bytes from 103.53.199.50: 5 ttl = 57 icmp_seq = time = 37 429 ms
64 bytes from 103.53.199.50: ttl = 57 icmp_seq = 6 time = 36 113 ms
64 bytes from 103.53.199.50: 7 ttl = 57 icmp_seq = time = 36 887 ms
64 bytes from 103.53.199.50: 8 ttl = 57 icmp_seq = time = 37 550 ms
64 bytes from 103.53.199.50: 9 ttl = 57 icmp_seq = time = 37 426 ms
64 bytes from 103.53.199.50: ttl = 57 icmp_seq = 10 time = 36 791 ms

Little Trace route through the route

 traceroute to 103.53.199.50 (103.53.199.50), 64 hops max, 72-byte packets
 1 192.168.0.1 (192.168.0.1) 2,677 ms 0929 ms 0888 ms
 2 192.168.1.1 (192.168.1.1) 3,443 ms 2937 ms 2170 ms
 3 125.235.243.172.adsl.viettel.vn (125,235,243,172) 4,584 ms 4947 ms 4669 ms
 4 125.235.243.5.adsl.viettel.vn (125.235.243.5) 4,930 ms 4254 ms 4962 ms
 5 localhost (27.68.229.9) 51,792 ms 55 949 ms 55 919 ms
 6 localhost (27.68.255.38) 59,944 ms 58 888 ms 54 992 ms
 7 localhost (27.68.238.178) 48,456 ms 48 193 ms 48 490 ms
 8 newmedia1-rge.hkix.net (123.255.90.188) 38,555 ms 38 430 ms 38 269 ms
 9 speedtest.c1.hkg1.dediserve.com (103.53.199.50) 35,720 ms 37 067 ms 36 347 ms
Promotional Dediserve 50% lifetime, quick registration 12/2016
5 (100%) 10 vote

EXA birthday, Dedicated Server discount 1.999.000d only E5 2670 CPUs, 16GB RAM

Occasion EXA 05 anniversary of its founding on December 13, 2011, the company has customer appreciation program using the Dedicated Server service only 1,999,000 VND / month now 02 service.

1. CPU: Intel Core E5 1 x 8 2670, 16GB DDR3 ECC RAM, 2 x 120 GB SSD speed, 1 IP, Bandwidth: 100Mbps, Unlimited traffic.

2. 100GB Backup service information http://backup.exa.vn

2670 E5 CPU of the current top form, the server uses SSD, DDR3 ECC RAM so delicious. 100Mbps bandwidth of standard forms in VN now. You should not ignore it this deal.

Subscribe contact the business department.

Co. EXA
A4 36 Street, Ward 12, Tan Binh District, HCM
Phone: 08 7300 3909
Hotline: 093 829 8278
Website: http://exa.vn
Email: sales@exa.vn

EXA birthday, Dedicated Server discount 1.999.000d only E5 2670 CPUs, 16GB RAM
2.33 (46.67%) 30 votes

Themify Coupon – Discounts up to 75%, $ 100 for the package fell Lifetime Master

With MyThemeShop Theme Junkie Elegant Themes … Themify also gives users the theme WordPress pretty easy use that the price affordable, from just $ 49.

Known as the “ Drag & Drop Website Builder “, every theme in this provider is equipped with drag and drop interface makes it easy to design its website.

Just choose the features and sort them into the appropriate location that you would be right interface for your site demo already. This is also the highlight of Themify attract customers.

Currently, Themify There are over 50 themes (free / paid), with more than 58,000 customers. The theme here is pretty diverse with many different fields:

  • blog and magazine
  • Corporate themes
  • eCommerce themes
  • Portfolio themes
  • Responsive themes

Use these beautiful themes in Themify have advantages such as easy installation / management, SEO support, unlimited domains, providing detailed documentation, support through forum / emails … and there are trial 30 days again.

However, if you are designing one online shopping website, then consider because Themify not provided with Ecommerce / Online Store on his theme that only supports the theme so that compatible with the corresponding plugin.

References 1 favorite theme in the Themify:

Prices in Themify very flexible theme:

Single Theme Buy 1 get 1 theme any$ 49
Themify Standard Club The whole theme$ 79
Themify Developer Club The entire theme and photoshop files$ 99
Themify Master Club The whole theme, and photoshop plugin files$ 139
Themify Lifetime Master Complete themes, plugins and photoshop files Lifetime$ 399

rates are not too high, simple management interface easily, beautifully designed themes … Themify is also a good option especially if you’re just beginning to become familiar with web design.

For more motivation for this choice, Watch Me introduce to you coupon discounts up to 30% applicable to all themes, plugins, addons … in addition, new customers will be 50% when switching from another provider on Themify .

Themify Coupons – Discounts up to 50%

1. 50% discount for new customers

*** Applies to new customers want to switch back to using the theme in Themify.

2. 30% discount on the entire theme, plugin, addon or membership packages

On the occasion of Christmas and New Year’s Eve, Themify launched coupon 30% discount for the entire theme, plugin, addon or membership packages (except Lifetime Master). $ 1 from $ 34 only theme only.

Particularly with Lifetime Master package, when registration please use the coupon below, you will be fell $ 100 price $ 299.

*** Discounts apply from now until the end of 2016 offline.

3. 75% discount for the package Master Club

Besides the 30% discount on the occasion of the end of the year above, Themify are reduction of up to 75% for package Master Club, only $ 139 $ 34.99 only . This promotional program is introduced on page StackSocial, so you need to buy through this page.

Click the button below to go to the registration page

After payment on StackSocial you will receive an email with a link redeem click on it to get License Code and order on Themify .

4. 20% off coupon for any theme, plugin, addon or membership packages

In addition, a 20% discount coupon all products and services from earlier were still in use.

Wish you success!

Themify Coupon – Discounts up to 75%, $ 100 for the package fell Lifetime Master
4 (80%) 20 votes

Coupon Vultr December – Offering free to $ 103, down 20% Server old Account

Vultr is the service provider world-renowned Cloud Server that you are confident using the blog Watch Me and Learning VPS . With so many preferential deals, not difficult for you to start using the service here.

rates are pretty cheap here, VPS good quality, high uptime, that’s why Vultr first appearance in VPS recommended list on Canhme.com. Lowest package only $ 5 / month 768MB RAM is made yes, 1,000GB bandwidth is worth using. No vendor dare to give equal value and this configuration where.

time Vultr is present in 15 cities spanning the world, especially with location Singapore and Tokyo, Japan for Vietnam download speed very quickly is not inferior to domestic suppliers so you can be assured of long-term use.

Vultr who had plenty of promotions trial so you have time to experience the experience. Time limit extended to this year proved Vultr very confident in the quality of service provided to customers.

You read the details of each program listed below for your choice to suit demand prior to registration offline.

Note : the purpose of the promotion to your Credit donate enough time to install, configure and select the optimal server for actual demand. Rather than creating very high configuration servers to take advantage of all the money being donated.

Vultr Coupon December – Offering free to $ 103, the old account also presents

The entire amount is offered only for registration in Vultr VPS. New account can only choose 1 of 3 top promotions alone, think carefully before signing up.

1. Doubling the load for the new account, up to $ 103

This is the most spectacular program of preferential Vultr to give new customer first register for an account here. Immediately after registration and account recharge, will donate immediately Vultr corresponding amount, doubling the amount you receive, of up to $ 100 .

-> Register now

For example, if your account has not been here, know this program, register for an account and then loaded into $ 100 immediately will receive $ 200 account!

The amount of this bonus will expire in 12 month period, spoiled used. Additionally, you can incorporate additional promotion 4, bringing the total amount can get up to $ 103. Recharge account via PayPal or Visa / Master feature.

This is best promotions ever of Vultr, take advantage of opportunities that registration offline. Sorry does not apply to old accounts.

More information here .

2. Donate $ 53 for a new account

If you do not like to deposit into your account to be duplicated, use this promotional 2. Vultr are donated free of charge to new account 53 $ Free Credit.

a very simple way, you just visit this promotional link to register the account.

Soon will be taken to a page Billing enter the information Visa / Master (not used PayPal) to confirm that you are now $ 50 in finance feeling all. 4 Use promotions more you will get a total of $ 53 Free .

The amount of this trial is limited to use 60 days calculated from the start of receipt.

More information here .

3. Donate $ 23 free for new accounts

Similar Promotional 2, you only need to register a new account, verify the card information was given $ 20. Promotional plus 4, you get a total of 23 $ free .

After account register here and you go to Billings, loaded $ 5 through accounts PayPal or enter information Visa / Master then filled gift Code SSDVPS is immediately donated $ 20.

Shelf life is 30 days for this code.

4. Connect with Twitter to get more Vultr $ 3

Just account login Vultr click and click, you will receive added just $ 3 of Vultr. This promotion is exclusively for Twitter users.

Only Promotional No. 4 is applicable to other programs!

See details here .

5. Promos for the old account

If you already have an account here, then, do not be sad because Vultr are promotional 20% discount on all packages Compute Instance .

Just you login to your account, visit this link is going to see price fell 20% as below:

The plan from 1GB RAM or higher to get 20%, 768MB RAM too cheap plan should prices remain $ 5 / month.

6. 50GB Free Storage Block Free Trial

Vultr are awarded for the entire customer 50GB Free Storage Block but is only used with location New York, New Jersey only.

If you need to add capacity VPS, do not miss this exciting promotion department.

See details here .

Visit Vultr here .

Refer to the installation guide, Managing VPS blog Learning VPS . In particular, I have all guidelines optimized VPS 2GB RAM running at over 4k Vultr online.

VPS in Vultr can install both Windows for the remote to Download / Upload offline. The tool exchange traffic is prohibited.

Note

  • your bank account will be charged $ 2.5 card information to confirm, then a few weeks the money will be automatically refunded.
  • If you get the message This card is not Eligible for free credit promotions ie your bank card is not accepted, it should go through the other cards until the card to add it.
  • When Deploy VPS can take several minutes to complete, to keep track of your schedule, please click on the button in the Console View VPS management site.

Absolutely not register multiple accounts to take advantage of a promotional series lest blocked!

Vultr or refusal of bank card bank, VP Bank and Virtual Visa Cards, Prepaid Cards. You can use Visa / Master of Techcombank, Vietcombank to register.

Due to fraud, registering multiple accounts to use Free High Credit should Vultr tightly controlled registration from Vietnam . Account registration can take 24 hours – 48 hours to verify manually, after finishing verify if the community is not $ 50 and not violate any policy of Vultr, be wrote the ticket for them to check and manually add it.

If after add the card information that error Unable to process payment ngôn: This transaction was denied by the credit card ISSUER please check the following issues:

  1. tags have been enabled by changing the PIN at ATMs yet?
  2. has enabled cards of international payment yet? -> Call up the bank asked, taking the number printed on the card. Some banks like TPB, VIB is not already active.
  3. Information has declared standards yet?
  4. account balance is not sufficient, noting a number of banks required to maintain an account balance.
Coupon Vultr December – Offering free to $ 103, down 20% Server old Account
3.5 (70%) 20 votes

Theme Junkie Coupon – Discounts up to 50%

Referring to WordPress Theme can not help but say to Theme Junkie – supplier of good quality themes that prices are affordable, a lot of Vietnam use Blogger .

Established since 2009, so far, Theme Junkie had than 48 theme with 6 free plugin handy. The theme at this provider are often designed simple but elegant, consistent with the need to create technology blog, magazine pages small.

Like most other premium theme, Theme Junkie provides a custom interface is very nice and professional with optimal features for website SEO, choose the layout, allows inserting code directly from the settings panel as well as help you easily insert ads in the optimum position.

Some commonly used theme in Theme Junkie:

Blog Watch Me currently use this theme TheWorld in Theme Junkie be excellent optimization, load very fast, gentle, easily edit, add functions.

For the price, Theme Junkie has 3 different plan as follows:

  1. Single Theme : buy 1 theme $ 39.
  2. All Themes Package : with $ 49 to own the entire theme.
  3. Lifetime Package : pay $ 99 one-time, lifetime ownership.

To purchase separately one theme was $ 39 then, so if you skip registering the additional $ 10 to register the plan All Themes Package or more, will be more efficient .

Theme Junkie Coupon – Discounts up to 50%

Like MyThemeShop Theme Junkie regularly provides preferential coupons, special promotions for customers.

1. 50% discount for new customers

*** Applies to new customers want to switch back to using the theme in Theme Junkie.

2. 30% discount on the occasion of Christmas and New Year’s Eve

From now until the first week of the new year – 2017, when purchasing any theme or package in Theme Junkie members use the coupon below you will also be 30% .

The coupon on, the price will be a theme 27.3 $, All Themes Package and packages only $ 34.3 Lifetime Lifetime owns the entire theme only $ 69.3 only.

3. 20% discount coupon package Lifetime

In addition, there is currently a 20% discount coupon for Lifetime packages anymore.

*** Payment is by PayPal or Visa / Master .

To use the coupon code, the page Checkout you click on the link Click here to enter your code then enter the code. Immediately column Your order displays discount information if valid code. See image guidance here .

Theme Junkie Coupon – Discounts up to 50%
2.5 (50%) 60 votes

Optimized for VPS configuration, 2GB RAM 4363 People Online

There are currently a lot of instructions configured to be able to create a large load on the network VPS through load balancing, optimize the services … Today, I’ll show you another way using a combination HocVPS Script , Zend Opcache, Memcache to be able to build a VPS can withstand thousands of people online at the same time.

I tried installing the VPS in Vultr package $ 0022 / hour ~ $ 15 / month, 2 CPUs, 2GB of RAM found at online to 4k (according to statistics Google Analytics) is still running smoothly. Unfortunately, there is no long-term conditions see the actual test the stamina of how VPS.

Pictures taken at the date 12.11.2014 Online 4363 people, as measured by Google Analytics, using WordPress news site:

The number of people online that much, but just used up 20% of the CPU, lots of RAM left over, if operating at full capacity to not know too much online 🙂 k

1. HocVPS Script Settings

 

Use HocVPS Script will be automatically installed and optimized server on CentOS LEMP. Before carrying out the installation, remember to select the CentOS operating system, location Japan in Vultr for the speed of the fastest Vietnam.

Also you should create 1GB swap for VPS (usually double or ~ RAM swap)

The installation steps performed similar HocVPS Script installation guide .

2. Install Zend Opcache

using Zend OPcache aim to optimize and speed up PHP, this is especially important and are required to install the VPS has a large number of people online. Thereby reducing CPU performance and significantly reduce the amount of RAM that PHP uses.

HocvPS Script automatically install Zend OPcache helped you, now just need to adjust the parameters to suit your needs use only.

You keep track of the actual situation when running VPS with the web viewer 1, for example opcache-gui (server installation, the path is http://domain.com:port/op.php HocVPS). Increase or decrease the memory how to keep the memory usage <= 70% is okay, the available memory will be used for other things.

Note The next step you can use cache plugin like WP Super Cache W3 Total Cache or Memcached with (steps 3 and 4). Should try to WP Super Cache before, because most of the website this plugin is just enough, but installation is simple.

3. Install Memcached

 

Memcached cache used to query your database, object and page cache. Normally, the data is usually using a disk cache, but memcached memory stores information on the performance and the speed should be increased a lot.

Have you done as guidelines install memcached . In the Configure Memcached note rose parameters maxconn = "1024" to maxconn = "10240"

 nano / etc / sysconfig / memcached

PORT = "11211"
USER = "memcached"
Maxconn = "10240"
CacheSize = "64"
OPTIONS = ""

Similarly Zend OPcache above, you should use the tool to track phpMemcachedAdmin adjusted to ensure memory <= 70%, avoid too much redundant RAM (like blogs Learning VPS due WordPress just 64MB RAM for memcached should spend).

In the last step you do not need to install plugin for WordPress WP-FFPC because we W3 Total Cache plugin using the guidance below.

4. W3 Total Cache configuration

To make sure everything works smoothly, please use the W3 Total Cache plugin. I still ordinary or WP Super Cache plugin used because it is simple, easy to use and also very effective ( Watch Me is used). However when used to Memcached, you are required to W3 Total Cache or switch WP-FFPC.

After the installation is complete plugin, you just activate Page Cache, Cache and Object Database Cache used method is Memcached. In addition, it should enable Browser Cache and CDN if possible.

Click on each item to be able to configure more specific details.

Hopefully, with this article you will be able to build better be 1 VPS load. Do not forget to leave a comment below notice the results you achieve after doing offline.

Update : I was removed from the article by ngx_pagespeed unnecessary.

Optimized for VPS configuration, 2GB RAM 4363 People Online
4 (80%) 40 votes

[HocVPS Script Plugin] – Automatically backup the entire VPS

Yesterday I had to share a script to help automatically backup the entire WordPress website activity on the server settings HocVPS Script . However, today I will introduce a better bash scripts, the entire VPS backup with instructions to create autorun daily cronjob always.

This script automatically back up all data on the server, including:

  1. The entire MySQL database, each database .sql file
  2. The entire code in the folder public_html of the domain, in the form /home/domain.com/public_html/
  3. Complete Nginx configuration folder /etc/nginx/conf.d/

All data will be compressed into a .zip file to the directory and / root / backup / and automatically delete old backup files, only keeping the file within 14 days of return.

Thus, you absolutely can use this script to move the VPS, or restore any particular piece of data. Her script writing is compatible with the directory structure by HocVPS Script management, but you can also modify to fit any other server also.

Currently, I am using this script to daily data backup and upload to Google Drive with Rclone.

Guidelines automatically backup the entire VPS

1. Create a backup script bash

– Creates backup.sh file in the directory / root /

 nano /root/backup.sh

Consult guidelines use nano if unknown user.

– Copy the entire contents of the script below and paste into:

 # HocVPS Plugin Script - Backup Server

#! / Bin / bash

. /etc/hocvps/scripts.conf

SERVER_NAME = VPS

TIMESTAMP = $ (date + "% Y-% m-% H% M D_%")
BACKUP_DIR = "/ root / backup / $ TIMESTAMP"
MYSQL_USER = "root"
MYSQL = / usr / bin / mysql
MYSQL_PASSWORD = $ mariadbpass
Mysqldump = / usr / bin / mysqldump
SECONDS = 0

mkdir -p "$ BACKUP_DIR / mysql"

echo "Starting Backup Database";
= `$ MYSQL databases --user = $ MYSQL_USER -p -e $ MYSQL_PASSWORD" SHOW databases; " | -Ev grep "(Database | information_schema | performance_schema | mysql)" `

print for $ db databases; dirty
$ Mysqldump --user = $ MYSQL_USER --opt --force -p $ MYSQL_PASSWORD --databases $ db | gzip> "$ BACKUP_DIR / mysql / $ db.gz"
done
echo "Finished";
echo '';

echo "Starting Backup Website";
#Loop Through the / home directory
for D in / home / *; dirty
if [ -d "$D" ]; then #if a directory
domain = $ D ## * / # Domain name
echo "-" $ domain;
zip -r $ BACKUP_DIR / $ domain.zip / home / $ domain / public_html / q -x / home / $ domain / public_html / wp-content / cache / **  * #Exclude cache
fi
done
echo "Finished";
echo '';

echo "Starting Backup Nginx Configuration";
cp -r $ /etc/nginx/conf.d/ BACKUP_DIR / nginx /
echo "Finished";
echo '';

echo "Starting Compress Files";
zip -r -q /root/backup/$SERVER_NAME-$TIMESTAMP.zip $ BACKUP_DIR
rm -rf $ BACKUP_DIR
size = $ (ls -lah /root/backup/$SERVER_NAME-$TIMESTAMP.zip | awk 'print $ 5')
echo "Finished";
echo '';

#remove Older backups (14 days)
find / root / backup / -mindepth 1 -mtime +14 -delete

duration = $ SECONDS
echo "Total $ size, $ (($ duration / 60)) minutes and $ (($ duration% 60)) seconds elapsed."

Additional explanation:

  • Name the backup file is automatically set to the current date and time.
  • MYSQL_USER default is root, password is taken in the configuration file /etc/hocvps/scripts.conf.

– Press Ctrl + O, Enter to save and Ctrl + X to exit.

– Distribution rights to the script

 chmod + x /root/backup.sh

– So that’s it then, now you can test it by running the command /root/backup.sh

Done, check the folder / root / backup / has yet lightweight .ZIP file backup.

2. Create automated daily backup cronjob

Now I would for scripts automatically run at 2:00 am.

 crontab -e EDITOR = nano

Paste the following into the Terminal window

 0 2 * * * /root/backup.sh> / dev / null 2> & 1

Press Ctrl + O, Enter to save and Ctrl + X to exit

That’s it, keep daily 2am script automatically runs, the entire data backup of VPS.

In the next article, I will guide you how to automatically upload files to Google Drive backups to save space for VPS. Me welcome to read offline.

[HocVPS Script Plugin] – Automatically backup the entire VPS
5 (100%) 10 vote