Reverse Proxy Apache: Instalasi Dan Seting Front Web Server
Reverse Proxy Apache: Instalasi Dan Seting Front Web Server
Hi…
Kali ini kita akan coba reverse proxy pada apache2. Lab kali ini didasari dari tugas kantor (hahaha… lagi-
lagi karena dapet tugas kantor).
Jadi dikantor sudah ada banyak web server, dengan IP berbeda-beda. Dan beberapa akan mempunyai
subdomain yang dapat diakses dari internal kantor maupun dari public.
Topologinya kurang lebih seperti ini, masih menggunakan IP private. Nanti silahkan coba sendiri apabila
ingin pasang IP Public
DNS server jadi satu dengan Router dimana menggunakan Mikrotik, dan sudah pernah dibahas disini.
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port t$
# match this virtual host. For the default virtual host (this file) this
# However, you must set it for any further virtual host explicitly.
ServerName a.test.konfigurasi
ServerAdmin webmaster@localhost
#DocumentRoot /var/www/html
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
ProxyPreserveHost On
ProxyPass / http://192.168.192.2:80/
ProxyPassReverse / http://192.168.192.2:80/
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
Ulangi langkah copy dan edit a.conf untuk b.conf dan c.conf, tentunya disesuaikan dengan nama
subdomain dan IP masing-masing.
Enabling site b.
Enabling site c.
Setelah front dan backend web sudah siap, sekarang akan menambahkan atau pointing IP front web server
ke masing-masing sub domain di Router MikroTik
Test ping dulu
C:\Users\konfigurasi.net>ping a.test.konfigurasi
C:\Users\konfigurasi.net>ping c.test.konfigurasi