Simply Nginx example by using alias directive for subdirectory URL
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.
commit088337295aaeebf8a37d6b4e859cd59019cd3d27
authorRobin Schneider <ypid@riseup.net>
dateTue 31 Dec 2019, 14:37 (7 years ago)
parenta1d9c81
docs/admin/installation.rst+1−4
@@ -183,11 +183,8 @@ Add this configuration in the server config file
183183
184184.. code:: nginx
185185
186− location = /searx {
187− rewrite ^ /searx/;
188− }
189−
190186 location /searx/static {
187+ alias /usr/local/searx/searx/static;
191188 }
192189
193190 location /searx {