PC-23

"Sebaik-baik manusia adalah mereka yang bermanfaat bagi orang lain"

Breaking

Thursday, March 15, 2018

Lab 8.9 Use Mod Proxy Backend Server and Forwarded Path


Pada kesempatan kali ini saya akan berbagi kepada anda, yaitu konfigurasi Use Mod Proxy Backend Server and Forwarded Path

Berikut Konfigurasinya :

2 server
1. www.tkj.net = 192.168.43.100 (control)
2. node1.tkj.net = 192.168.43.101 (node1)

configure DNS for www.tkj.net and node1.tkj.net in server control
and configure DNS node1.tkj.net in server node1 and install httpd

configure proxy reverse in server control

cek modul is enable but mod_proxy is enable by default

[root@control ~]# grep "mod_proxy" /etc/httpd/conf.modules.d/00-proxy.conf
----------------------------------------------------------------------------------------
LoadModule proxy_module modules/mod_proxy.so 
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so ..... 
LoadModule proxy_http_module modules/mod_proxy_http.so 
LoadModule proxy_scgi_module modules/mod_proxy_scgi.so 
----------------------------------------------------------------------------------------

[root@control ~]# nano /etc/httpd/conf.d/r_proxy.conf
----------------------------------------------------------------------------------------
# create new 
<IfModule mod_proxy.c> 
        ProxyRequests Off
        <Proxy *> 
                Require all granted 
        </Proxy>  
        # backend server and forwarded path 
        ProxyPass / http://node1.tkj.net/ 
        ProxyPassReverse / http://node1.tkj.net/
</IfModule> 
---------------------------------------------------------------------------------------- 

[root@control ~]# systemctl restart httpd

----------------------------------------------------------------------------------------
akses situs http://www.tkj.net/


Semoga Bermanfaat :)

No comments:

Post a Comment