Apa Itu Reverse Proxy
Apa Itu Reverse Proxy
1 apt-get update
2 listen 80;
4 root /var/www/;
7 server_name example.com;
9 location / {
11 }
12
13 location ~ \.php$ {
14
18 proxy_pass http://127.0.0.1:8080;
19
20 }
21
22 location ~ /\.ht {
23 deny all;
24 }
25 }
Konfigurasi Apache
1 nano /etc/apache2/ports.conf
2 Listen 127.0.0.1:8080
Simpan.
Konfigurasi Apache2 Virtual Host
Copy saja dari konfigurasi default menjadi example.
1 cp /etc/apache2/sites-available/default /etc/apache2/sites-available/example
Finishing.
Cek info php.
1 nano /var/www/info.php
2 phpinfo( );
3 ?>