+- Indonesian Back|Track Team (https://www.indonesianbacktrack.or.id/forum)
+-- Forum: General Zone (https://www.indonesianbacktrack.or.id/forum/forum-172.html)
+--- Forum: Operating System Discuss (https://www.indonesianbacktrack.or.id/forum/forum-174.html)
+---- Forum: Free BSD (https://www.indonesianbacktrack.or.id/forum/forum-60.html)
+---- Thread: Share Nginx as a Reverse Proxy for Apache on FreeBSD 10.1 (/thread-6292.html)
Nginx as a Reverse Proxy for Apache on FreeBSD 10.1 - ino_ot - 06-13-2015
hehehe, lumayan yang kena trap dari thread ini, Maaf ya soalnya koneksi internet dirumah lagi kacau, Makanya ane kasih coming soon dulu.
Baik di postingan kali ini ane membagi sebuah teknik or trik dari 2 buah web server yang tidak aneh lagi di telinga temen - temen IBTeam. Udah berkeliaran banyak sih di google, tapi alangkah baiknya jika ane ringkas disini, hehehe semoga tidak repost yang mas momod.
Baik Sesuai dengan judul ane pengen ngasih sedikit trik agar dua webserver ini bisa berjalan dalam 1 server dengan memakai fungsi dan keunggulan dari masing - masing webserver tersebut.
Nginx As a Reverse Proxy For Apache on FreeBSD 10.1
Baik Sebagai pembukaan silakan cek Thread ini, Untuk kelebihan Masing - masing webser
Nah setelah baca itu, silakan simak baik - baik cara konfigurasinya hehehe
Satu lagi, ada beberapa yang bilang agar tidak bisa di attack dengan slowrolis
Spoiler! :
Update Portsnap
Code:
# portsnap extract
# portsnap fetch update
Spoiler! :
Install Apache
Code:
# pkg install apache24
Enable apache sebagai service tambahkan "apache24_enable=YES" di /etc/rc.conf, tapi kita menggunakan sysrc seperti dibawah ini.
Code:
# sysrc apache24_enable=YES
Jalankan Apache24
Code:
# service apache start
Spoiler! :
Install Mysql Versi Terbaru -. Mysql 5.6
Code:
# pkg install mysql56-server
Enable Mysql Service
Code:
# sysrc mysql_enable=YES
Jalankan Mysql Server
Code:
# service mysql-server start
Berikan Password untuk login user mysql
Code:
# mysql_secure_installation
Silakan baca baik2 yang ada di dialog mysql nantinya =)
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/local/www/nginx-dist;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
location ~ \.php$ {
proxy_pass http://127.0.0.1:8989;
include /usr/local/etc/nginx/proxy.conf;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
RE: Nginx as a Reverse Proxy for Apache on FreeBSD 10.1 - abdilahrf - 06-13-2015
Coming sooooon...........
RE: Nginx as a Reverse Proxy for Apache on FreeBSD 10.1 - Kresna - 06-13-2015
Kamprettt ane udh nungguin padahal -_____- -5 buat ente :v
RE: Nginx as a Reverse Proxy for Apache on FreeBSD 10.1 - jufianto - 06-13-2015
spoilernya buat ane jantungan -_____-
RE: Nginx as a Reverse Proxy for Apache on FreeBSD 10.1 - Axozie - 06-13-2015
wihhhh keren nih
RE: Nginx as a Reverse Proxy for Apache on FreeBSD 10.1 - go_block - 06-14-2015
Jhahahahaaa ,om ino'ot bisa ajaaa ,
RE: Nginx as a Reverse Proxy for Apache on FreeBSD 10.1 - agoes riyanto - 06-14-2015
kaya gaktau tingkah inot aja..
RE: Nginx as a Reverse Proxy for Apache on FreeBSD 10.1 - Creed - 06-14-2015
Yeayy coming soon ane kena trap spoiler
RE: Nginx as a Reverse Proxy for Apache on FreeBSD 10.1 - go_block - 06-15-2015
(06-13-2015, 08:43 PM)ino_ot Wrote: hehehe, lumayan yang kena trap dari thread ini, Maaf ya soalnya koneksi internet dirumah lagi kacau, Makanya ane kasih coming soon dulu.
Baik di postingan kali ini ane membagi sebuah teknik or trik dari 2 buah web server yang tidak aneh lagi di telinga temen - temen IBTeam. Udah berkeliaran banyak sih di google, tapi alangkah baiknya jika ane ringkas disini, hehehe semoga tidak repost yang mas momod.
Baik Sesuai dengan judul ane pengen ngasih sedikit trik agar dua webserver ini bisa berjalan dalam 1 server dengan memakai fungsi dan keunggulan dari masing - masing webserver tersebut.
Nginx As a Reverse Proxy For Apache on FreeBSD 10.1
Baik Sebagai pembukaan silakan cek Thread ini, Untuk kelebihan Masing - masing webser
Nah setelah baca itu, silakan simak baik - baik cara konfigurasinya hehehe
Satu lagi, ada beberapa yang bilang agar tidak bisa di attack dengan slowrolis
Spoiler! :
Update Portsnap
Code:
# portsnap extract
# portsnap fetch update
Spoiler! :
Install Apache
Code:
# pkg install apache24
Enable apache sebagai service tambahkan "apache24_enable=YES" di /etc/rc.conf, tapi kita menggunakan sysrc seperti dibawah ini.
Code:
# sysrc apache24_enable=YES
Jalankan Apache24
Code:
# service apache start
Spoiler! :
Install Mysql Versi Terbaru -. Mysql 5.6
Code:
# pkg install mysql56-server
Enable Mysql Service
Code:
# sysrc mysql_enable=YES
Jalankan Mysql Server
Code:
# service mysql-server start
Berikan Password untuk login user mysql
Code:
# mysql_secure_installation
Silakan baca baik2 yang ada di dialog mysql nantinya =)
Cari Line Directory Index, dan tambahan index.php di line tersebut, contoh :
[code]
DirectoryIndex index.php index.html index.htm
[code]
Tambahkan ini di baris terakhir file, agar apache bisa membaca file php dari php processor
[code]<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
[/code]
[/code][/code]
Coba dulu om ino'ot,
Test"
Jhehehehe
RE: Nginx as a Reverse Proxy for Apache on FreeBSD 10.1 - itnewbie19 - 06-15-2015