
This is little notice for solving problem about clustering server.
geo $allow { default 0; 192.168.168.0/24 1; } server { real_ip_header X-Forwarded-For; set_real_ip_from 10.1.2.3; if ($allow = 0) { return 403; } }
– 192.168.x : range ip for allow access
– 10.1.x : reverse proxy server
After this, ip address from public will delivering to the cluster.
Popular Posts
Related Posts
How to fix: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed Centos 7
On centos 7, there are instances where you get the error Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)
This usually happens when trying to restart a systemd service.
The workaround is as follows:
groupadd… Continue reading…
9 November 2021Nginx Error 13: Permission denied
I look into /usr/local/apache/domlogs Saw the error [crit] 4548#0: *1289399 open() “/var/lib/nginx/tmp/client_body/0000000359” failed (13: Permission denied) Found this solution: https://github.com/CampbellSoftwareSolutions/docker-osticket/issues/34 Updated the nginx.conf http by including the line client_body_temp_path /tmp 1 2; Then restarted nginx. Thanks! Solved it: You need to add this to the nginx.conf http { # …… Continue reading…
7 August 2021Install Visual Studio Code di MX Linux atau Debian 10
Banyak pilihan aplikasi untuk ngoding, dulu sempet pakai netbean + plugin php, sublime, geany, bahkan ada yg pake vim full di console sebagai jalan ninjanya, ini lagi coba pakai visual studio, cek fiturnya sih mudah2an bikin nyaman, sebagai catatan saja supaya ngga browsing2 sana sini lagi kalo mau instalasinya.
10 October 2020[Part 4] Konfigurasi VirtualHost Apache di Debian 10
Seri lanjutan dari part 3.
F. Konfigurasi VirtualHost (tkj.net, siswa.tkj.net, cinta.bersemi.di.tkj.net dan smk.net) — buat folder masing-masing vhost dahulu — 1. #mkdir /var/www/tkj.net 2. #mkdir /var/www/siswa.tkj.net 3. #mkdir /var/www/cinta.bersemi.di.tkj.net 4. #mkdir /var/www/smk.net —- buat isi halaman web nya —- 5. #echo “<h1>tkj.net</h1>” > /var/www/tkj.net/index.html 6. #echo “<h1>siswa.tkj.net</h1>” > /var/www/siswa.tkj.net/index.html 7…. Continue reading…
17 September 2020