WE DO NOT KEEP YOU WAITING!

Our support agents are available 24/7 for Phone, Chat or Ticketing support.

Frequently Asked QUESTIONS

Varnish is used to make a website load speedily, as the cache is stored in RAM; to lowers down the server load, specifically CPU works; and to gain more and more visitors.

It can be installed and run either on Apache or Nginx.

Use the following steps to install and configure Varnish on CentOS.

Step–1: Get the rpm for Varnish using the following command.

rpm --nosignature -i

http://repo.varnish-cache.org/redhat/varnish-3.0/el5/noarch/varnish-release/varnish-release-3.0-1.el5.centos.noarch.rpm

Step–2: Use the following command to install Varnish

yum install varnish

Step – 3: Modify or change the VARNISH_LISTEN_PORT=6081 line to port 80, use the following command: VARNISH_LISTEN_PORT=80

Step – 4: Now, you need to save the file and edit the default configuration file of Varnish. The following command is used for this purpose: vi /etc/varnish/default.vcl

Step – 5: Transform the backend default port to port 81 rather. As a result, the backend section will be as follows:

backend default { .host = "127.0.0.1"; .port = "81";

}

Step – 6: To configure Apache on port 81, edit the apache httpd.conf. For editing the file, the following command is used:

vi /etc/httpd/conf/httpd.conf

Also, modify the listen line to port 81

Step – 7: Alter or change iptables firewall to permit connections on port 81

Using the below command to edit the iptables configuration file

vi /etc/sysconfig/iptables

Before the COMMIT, the following lines needs to be added.

-A INPUT -m state --state NEW -m tcp -p tcp --dport 81 -j ACCEPT

-A OUTPUT -m state --state NEW -m tcp -p tcp --dport 81 -j ACCEPT

Further, save the file and after that restart iptables

service iptables restart

Step – 8: Configure SELinux to connect apache on port 81, and then restart apache

vi /etc/selinux/config

Change SELINUX=enforcing to SELINUX=permissive Now, save the file and restart apache with the following command
service httpd restart
Step – 9: Configure and start Varnish
chkconfig varnish on
service varnish start
cd /var/named replace "oldipaddress" "newipaddress" -- example.com.db

Select the Protocol from the drop down button on the right of the Address bar.

There are three options

1. FTP No secure connection

2. FTP over SSL (Explicit)

Explicit security requires that the FTP client issue a specific command to the FTP server after establishing a connection to establish the SSL link. The default FTP server port is used.

3. FTP over SSL (Implicit)

Implicit security is a mechanism by which security is automatically turned on as soon as the FTP client makes a connection to an FTP server. In this case, tne FTP server defines a specific port for the client (990) to be used for secure connections.

View More >>
GIP TECHNOLOGIES PARTNERS
Esteemed partners are good engines for narrative in IT industries

Powered by WHMCompleteSolution