We explicitly specific the static directory here using alias to allow to host from a other subdirectory than "searx" which just so happens to match the source code directory.
@@ -183,11 +183,8 @@ Add this configuration in the server config file
.. code:: nginx
- location = /searx {
- rewrite ^ /searx/;
- }
-
location /searx/static {
+ alias /usr/local/searx/searx/static;
}
location /searx {