diff --git a/README.md b/README.md index a00a9b8..318436b 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,12 @@ # useradd prestashop # useradd nextcloud ``` +Kemudian tambahkan host untuk domain kita dengan listen 172.0.0.1 untuk mengarahkan nginx ke apache +``` +# vim /etc/hosts +``` + + Installasi dan konfigurasi tools yang dibutuhkan ============= @@ -173,3 +179,106 @@ setelah [nama user] sebelumnya. lihat gambar dibawah agar lebih jelas + +Kemudian scrol kebawah, di bagian +``` + + AllowOverride FileInfo AuthConfig Limit Indexes + Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec + Require method GET POST OPTIONS + +``` +Hapus public_html, lihat gambar di bawah + + + +Simpan dan keluar, lalu restart service apache +``` +# systemctl restart httpd +``` + +Kemudian kita akan membuat virtualhost untuk masing-masing website + +#1 Virtualhost untuk prestashop +``` +# Vim /etc/httpd/cong.d/prestashop.conf +``` +Kemudian isikan +``` + + ServerName prestashop.task.my.id + ServerAdmin admin@task.my.id + DocumentRoot /home/prestashop + ErrorLog /home/prestashop/error.log + CustomLog /home/prestashop/requests.log combined + + SetHandler "proxy:fcgi://127.0.0.1:9071" + + + + DirectoryIndex index.php index.html index.htm + + AllowOverride all + Order allow,deny + Allow from all + + +``` +Disini saya menggunakan domain prestashop.task.my.id untuk website prestashop nantinya, silakan ubah dengan +domain kalian dan jangan lupa untuk menambahkan A record + +Kemudian perhatikan SetHandler “proxy:fcgi://127.0.0.1:9071” , disini kita mengarahkan setiap pemrosesan php ke php7.1, +ingat tadi pada konfigurasi php7.1 kita mengubah listen port menjadi 9071 + +#2 Virtualhost untuk wordpress +``` + + ServerName wordpress.task.my.id + ServerAdmin admin@task.my.id + DocumentRoot /home/wordpress + ErrorLog /home/wordpress/error.log + CustomLog /home/wordpress/requests.log combined + + SetHandler "proxy:fcgi://127.0.0.1:9072" + + + + DirectoryIndex index.php index.html index.htm + + AllowOverride all + Order allow,deny + Allow from all + + +``` +Disini kita sesuaikan juga user dan listen portnya menjadi :9072 + +#3 Virtualhost untuk nextcloud +``` + + ServerName nextcloud.task.my.id + ServerAdmin admin@task.my.id + DocumentRoot /home/nextcloud + ErrorLog /home/nextcloud/error.log + CustomLog /home/nextcloud/requests.log combined + + SetHandler "proxy:fcgi://127.0.0.1:9073" + + + + DirectoryIndex index.php index.html index.htm + + AllowOverride all + Order allow,deny + Allow from all + + +``` +Jika sudah semua cek apakah ada konfigurasi yang salah +``` +# httpd -t +``` +Restart apache +``` +# systemctl restart httpd +```