Quantcast
Channel: CentOS – Sohaib Tech Diary
Viewing all articles
Browse latest Browse all 4

Apache Traffic Server Reverse Proxy

$
0
0
Apache Traffic Server
Apache Traffic Server

This tutorial is about setting up Apache Traffic Server to work as Reverse Proxy to cache your website for SSL and NON SSL domain for CENTOS 6.x

[adsenseyu2]

1.Aapache Traffic Server is not available in default Repository of CentOS so we need to istall EPEL repository
rpm -ivh http://mirror.yourconnect.com/epel/6/i386/epel-release-6-8.noarch.rpm

2. Install Apache Traffic Server
yum install trafficserver

3.Added Following line to /etc/trafficserver/remap.config
map http://YOURDOMAIN.COM.com http://209.xx.xx.xx
map http://www.YOURDOMAIN.COM.com http://209.xx.xx.xx
map https://YOURDOMAIN.COM.com https://209.xx.xx.xx
map https://www.YOURDOMAIN.COM.com https://209.xx.xx.xx

4.A directory ssl is created at /etc/trafficserver/ and ssl.key and ssl.cert is added to that directory.

[adsenseyu2]

5.records.config
#Seting Port of server to 80
CONFIG proxy.config.http.server_port INT 80
#Enabling ssl port 443
CONFIG proxy.config.ssl.enabled INT 1
#Filename of ssl certificate
CONFIG proxy.config.ssl.server.cert.filename STRING ssl.cert
#Path of SSL Certificate
CONFIG proxy.config.ssl.server.cert.path STRING /etc/trafficserver/ssl/
#Name of SSL Key file
CONFIG proxy.config.ssl.server.private_key.filename STRING key.ssl
#Path of SSL Key File
CONFIG proxy.config.ssl.server.private_key.path STRING /etc/trafficserver/ssl/

For the replication across different servers follow step 1 to 2 and copy replace /etc/trafficserver


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images