Pi-hole: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
sudo apt install nginx | sudo apt install nginx | ||
pihole -a -p | pihole -a -p | ||
==Load Balancing== | |||
frontend chorke-http | |||
bind *:80 | |||
mode http | |||
default_backend chorke-nginx | |||
acl path-prefix-is-pihole path_beg /admin/ | |||
use_backend chorke-pihole if path-prefix-is-pihole | |||
backend chorke-nginx | |||
server nginx1 127.0.0.1:2013 | |||
mode http | |||
backend chorke-pihole | |||
server pihole1 127.0.0.1:2015 | |||
mode http | |||
==Knowledge== | ==Knowledge== | ||
{| | {| | ||
|valign='top'| | |valign='top'| | ||
systemctl status lighttpd | |||
systemctl status haproxy | |||
systemctl status nginx | |||
|valign='top'| | |valign='top'| | ||
vim /etc/nginx/sites-enabled/default | |||
vim /etc/lighttpd/lighttpd.conf | |||
vim /etc/haproxy/haproxy.cfg | |||
|valign='top'| | |valign='top'| | ||
pihole -c -j | |||
|- | |- | ||
Line 20: | Line 41: | ||
|valign='top'| | |valign='top'| | ||
sudo ss -tulwn | grep LISTEN | sudo ss -tulwn | grep LISTEN | ||
sudo ss -tulpn | grep LISTEN | grep nginx | |||
sudo ss -tulpn | grep LISTEN | grep haproxy | |||
sudo ss -tulpn | grep LISTEN | grep lighttpd | sudo ss -tulpn | grep LISTEN | grep lighttpd | ||
|valign='top'| | |valign='top'| | ||
Line 34: | Line 55: | ||
| valign="top" | | | valign="top" | | ||
* [https://github.com/pi-hole/pi-hole/ Pi-hole » Automated Install] | * [https://github.com/pi-hole/pi-hole/ Pi-hole » Automated Install] | ||
* [https://docs.pi-hole.net/main/prerequisites/ Pi-hole » Prerequisites] | |||
* [https://docs.pi-hole.net/main/uninstall/ Pi-hole » Uninstall] | * [https://docs.pi-hole.net/main/uninstall/ Pi-hole » Uninstall] | ||
* [https://discourse.pi-hole.net/t/reset-pi-hole-ip-after-moving-to-a-new-network/11910 Pi-hole » Reset IP] | * [https://discourse.pi-hole.net/t/reset-pi-hole-ip-after-moving-to-a-new-network/11910 Pi-hole » Reset IP] |
Latest revision as of 23:26, 18 April 2023
curl -sSL https://install.pi-hole.net | bash sudo apt install haproxy sudo apt install nginx pihole -a -p
Load Balancing
frontend chorke-http bind *:80 mode http default_backend chorke-nginx acl path-prefix-is-pihole path_beg /admin/ use_backend chorke-pihole if path-prefix-is-pihole backend chorke-nginx server nginx1 127.0.0.1:2013 mode http backend chorke-pihole server pihole1 127.0.0.1:2015 mode http
Knowledge
systemctl status lighttpd systemctl status haproxy systemctl status nginx |
vim /etc/nginx/sites-enabled/default vim /etc/lighttpd/lighttpd.conf vim /etc/haproxy/haproxy.cfg |
pihole -c -j |
| ||
sudo ss -tulwn | grep LISTEN sudo ss -tulpn | grep LISTEN | grep nginx sudo ss -tulpn | grep LISTEN | grep haproxy sudo ss -tulpn | grep LISTEN | grep lighttpd |
References
| ||