mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 04:05:57 +03:00
[GH-ISSUE #158] [QUESTION] Nginx Configuration To Proxy Whoogle as A Subdirectory Cannot Find /config. How to handle this? #115
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Saroufim on GitHub (Dec 11, 2020).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/158
Hello,
I'm running Whoogle as a subfolder on my site under /search/. At first, Whoogle wouldn't find its static files but then I explicitly used sub_filter to redirect it to the right path. Now Whoogle won't read its own configs from the same path and reverts back to looking for them on the main site, ignoring the sub_filter rule. What is the proper way to handle this with nginx?
Here's my conf:
@somebody-somewhere-over-the-rainbow commented on GitHub (Jan 23, 2021):
Not running whoogle on a subfolder myself but have you tried to add a rewrite like this to the location block:
rewrite ^/search/(.*)$ /$1 break;@maaAnandsheela commented on GitHub (Jan 30, 2021):
}
This should work.
@somebody-somewhere-over-the-rainbow commented on GitHub (Jan 30, 2021):
it tried this just for fun and it given (at least) me a white, empty page
@maaAnandsheela commented on GitHub (Feb 4, 2021):
maybe there should be some error.
@looi-wh commented on GitHub (Jun 22, 2021):
hi. tho its abit late, but I have solved this issue somehow as i was setting up whoogle for myself
@cs01 commented on GitHub (Sep 1, 2021):
I spent more time than I want to admit trying to solve this. I thought
WHOOGLE_CONFIG_URLmight work but it didn't, but the above worked perfectly.It might be helpful to others to add the above config to the README since it's probably a fairly common setup.
@caio1007 commented on GitHub (Mar 5, 2023):
this code is giving me an error in nginx