Reverse-Proxy-with-Nginx =============== Dokumentasi untuk Lab Reverse Proxy with Nginx Centos 7 <img src="https://git.leon36.web.id/yukitoki/Reverse-Proxy-with-Nginx/raw/master/images/nginx-reverse-proxy.jpg" width="400"> Task ============== Instalasi & Konfigurasi: * Apache (Port 8080) * Nginx as Reverse Proxy (Port 80) * MariaDB 10.1 * PHP Ketentuan: * WordPress: wordpress.domain.tld (PHP 7.2, Port 8080 + Reverse Proxy) dengan Document Root di /home/wordpress/ * PrestaShop: prestashop.domain.tld (PHP 7.1, Port 8080 + Reverse Proxy) dengan Document Root di /home/prestashop/ * Nextcloud: nextcloud.domain.tld (PHP 7.3, Port 8080 + Reverse Proxy) dengan Document Root di /home/nextcloud/ * Phpmyadmin: console-sql.task.my.id * Semua website harus menggunakan SSL * SSL tidak boleh menggunakan CloudFlare ataupun CertBot * SSL yang boleh digunakan adalah https://sslforfree.com Installasi dan konfigurasi tools yang dibutuhkan ============= #### Step 1: Install dan konfigurasi apache2 ``` # yum -y install httpd ``` Ubah agar apache listen pada 127.0.0.1 dan pada port 8080 ``` # vim /etc/httpd/conf/httpd.conf ```