Skip to content

Instantly share code, notes, and snippets.

@vincejv
Created May 26, 2021 16:21
Show Gist options
  • Save vincejv/08e6d899296365bbf0cdf60c190349a2 to your computer and use it in GitHub Desktop.
Save vincejv/08e6d899296365bbf0cdf60c190349a2 to your computer and use it in GitHub Desktop.
Pihole Lighttpd - Reverse Proxy to nginx
# 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