Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


installing_pi_hole_linux_ubuntu_version_24_04

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
installing_pi_hole_linux_ubuntu_version_24_04 [2026/08/17 20:52] wikiadmininstalling_pi_hole_linux_ubuntu_version_24_04 [2026/08/17 21:05] (current) wikiadmin
Line 155: Line 155:
 Force Pi-hole v6 to immediately use port 8080 via the official Command Line Interface (CLI) tool: Force Pi-hole v6 to immediately use port 8080 via the official Command Line Interface (CLI) tool:
  
-Run this terminal command on your 192.168.2.152 server:+Run this terminal command on your 192.168.1.152 server:
  
 <code> <code>
Line 176: Line 176:
 </code> </code>
  
 +Here is exactly how to configure Pi-hole and Apache to make this work.
  
 +Step 1: Add Local DNS Records in Pi-hole.
 +
 +
 +You must tell Pi-hole to intercept the public domains and resolve them to your internal server IPs instead of the public WAN IP.
 +
 +
 +Log into your Pi-hole admin dashboard (http://192.168.1.152:8080/admin).
 +
 +
 +Navigate to Local DNS > DNS Records on the sidebar.
 +
 +
 +Add the following three records:
 +
 +
 +Domain IP Address Description
 +
 +<code>
 +sunsky.cloud 192.168.1.152  Points Nextcloud to the Apache server
 +onlyoffice.sunsky.cloud 192.168.1.152 Points 1st OnlyOffice to the Apache server
 +officepkg.com 192.168.1.152 Crucial: Points to Apache first, not .156 
 +</code>
 +
 +
 +Note on officepkg.com: Because Apache handles your Let's Encrypt SSL certificates on 192.168.1.152, local traffic must hit Apache first so it can terminate the SSL connection before proxying the traffic to the second server (192.168.1.156).
installing_pi_hole_linux_ubuntu_version_24_04.1786999945.txt.gz · Last modified: 2026/08/17 20:52 by wikiadmin