Created
May 26, 2021 16:21
-
-
Save vincejv/08e6d899296365bbf0cdf60c190349a2 to your computer and use it in GitHub Desktop.
Pihole Lighttpd - Reverse Proxy to nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Access Pihole UI on http[s]://web.tld/pihole | |
# Add ^~ to disable php execution, since lighttpd has already executed the | |
# php scripts, no need to execute the output of php files from lighttpd | |
location ^~ /pihole/ { | |
proxy_pass http://localhost:6775/admin/; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_read_timeout 90; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment