Apache Webserver Setup

VideoCache require Apache Web Server to serve cached videos. If Apache is not installed already on our server, we can install Apache on Ubuntu, Debian, LinuxMint using the command

[user@white-magnet ~]# apt-get install apache2

On Fedora, CentOS, RHEL we can use yum to install Apache (httpd) as below

[root@white-magnet ~]# yum install httpd

If we are planning to run Squid in transparent or tproxy mode, we must configure Apache to listen on port other than 80. We can use any other free port like 81 or 8181. Now, we need to locate Apache configuration file to make the appropriate changes. The Apache config file on Ubuntu, Debian, LinuxMint is located at /etc/apache2/ports.conf while on Fedora, CentOS, RHEL it’s located at /etc/httpd/conf/httpd.conf.

Once we have the config file open, look for the lines shown below and change the port to 81

Listen 81

Now save the file.