You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
I have setup searx as uwsgi service at http = 127.0.0.1:8888 and a apache mod_proxy with ProxyPath to a filtron service listening on 127.0.0.1:4004 (target is searx at port :8888).
The setup works fine when I use the root URL as public URL http://myhost.xx/:
Why would you want to do that? I mean nowadays SSL/TLS certificates are free even for subdomains. There is no real reason to serve another service in a subpath.
I forgot to set request header X-Script-Name here is my final apache site
Updated: Jan, 31 2020 ...
ProxyPreserveHost On
<Location /searx >
Require all granted
Order deny,allow
Deny from all
#Allow from fd00::/8 192.168.0.0/16 fe80::/10 127.0.0.0/8 ::1Allow from all
ProxyPass http://127.0.0.1:4004
RequestHeader set X-Script-Name /searx
# In Apache it seems, that setting HTTP_HOST header direct here does have no# effect. I needed to set 'ProxyPreserveHost On' (see above). HTTP_HOST is# needed by searx to render correct *Search URL* in the *Link* box and# *saved preference*.# RequestHeader set Host myhost.xx
</Location>
I have setup searx as uwsgi service at
http = 127.0.0.1:8888
and a apache mod_proxy withProxyPath
to a filtron service listening on127.0.0.1:4004
(target is searx at port:8888
).The setup works fine when I use the root URL as public URL
http://myhost.xx/
:Now I want to move my searx instance to a subpath in the public URL, e.g.
http://myhost.xx/searx
:With I got a pure "HTML page" which tries to load resource relative from root URL
/
instead from/searx/
I read this article https://blog.macuyiko.com/post/2016/fixing-flask-url_for-when-behind-mod_proxy.html and I found similar in our sources 6ef7c32 so I tried also:
But this does not change anything, the HTML page from searx always try to load resources from the root URL. .. where is my mistake?
The text was updated successfully, but these errors were encountered: