Hi Alex,

Quoting Alex Dekker (2021-02-28 12:09:55)
> It appears that Searx is adding an extra /searx/ to its own URLs.
> My setup is:
> - Apache hosting my domain example.org and proxying Searx to 
> example.org/searx/
> - uwsgi hosting Searx.
> 
> Accessing example.org/searx, I see logs of 404s in the UWSGI log file:
> 
> [pid: 1844588|app: 0|req: 59/139] ::1 () {50 vars in 1319 bytes} [Sun Feb 28 
> 10:45:14 2021] GET /searx/ => generated 11037 bytes in 5 msecs (HTTP/1.1 200) 
> 3 headers in 114 bytes (1 switches on core 0)
> [pid: 1844588|app: 0|req: 60/140] ::1 () {48 vars in 1357 bytes} [Sun Feb 28 
> 10:45:14 2021] GET /searx/searx/static/js/jquery-1.11.1.min.js => generated 
> 3673 bytes in 7 msecs (HTTP/1.1 404) 3 headers in 120 bytes (1 switches on 
> core 0)
> [pid: 1844590|app: 0|req: 23/141] ::1 () {48 vars in 1356 bytes} [Sun Feb 28 
> 10:45:14 2021] GET /searx/searx/static/css/leaflet.min.css => generated 3673 
> bytes in 7 msecs (HTTP/1.1 404) 3 headers in 120 bytes (1 switches on core 0)
> [pid: 1844589|app: 0|req: 37/142] ::1 () {48 vars in 1341 bytes} [Sun Feb 28 
> 10:45:14 2021] GET /searx/searx/static/js/bootstrap.min.js => generated 3673 
> bytes in 4 msecs (HTTP/1.1 404) 3 headers in 120 bytes (2 switches on core 0)
> [pid: 1844591|app: 0|req: 23/143] ::1 () {48 vars in 1416 bytes} [Sun Feb 28 
> 10:45:14 2021] GET /searx/searx/static/themes/oscar/css/logicodev.min.css => 
> generated 3673 bytes in 4 msecs (HTTP/1.1 404) 3 headers in 120 bytes (2 
> switches on core 0)
> [pid: 1844589|app: 0|req: 38/144] ::1 () {48 vars in 1364 bytes} [Sun Feb 28 
> 10:45:14 2021] GET /searx/searx/static/css/bootstrap.min.css => generated 
> 3673 bytes in 8 msecs (HTTP/1.1 404) 3 headers in 120 bytes (1 switches on 
> core 0)
> 
> Obviously this leads to a rather odd looking results page as all the extra 
> elements cannot be loaded.
> I have found a workaround: change 
> 
>     base_url : "https://example.org/searx";
> to
>     base_url : "https://example.org/";
> 
> This seems intuitively wrong to me but it works!
> 
> I think this issue began after upgrading to 0.18. I am not 100% certain here 
> as I have not used Searx for a while because it has been choking on Google 
> results. I try it every now and then to see if it's started working again.

I only tested searx with nginx:

https://sources.debian.org/src/searx/0.18.0+dfsg1-1/debian/tests/general/

If you can show me how you set up your apache, then I can add a second test
that might be able to reproduce your problem.

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to