summaryrefslogtreecommitdiff
path: root/docs/admin
diff options
context:
space:
mode:
authorRobin Schneider <ypid@riseup.net>2019-12-31 14:37:01 +0100
committerRobin Schneider <ypid@riseup.net>2019-12-31 14:41:27 +0100
commit088337295aaeebf8a37d6b4e859cd59019cd3d27 (patch)
tree76f5d59f7f164c2abb33281e8a3aee05912cc893 /docs/admin
parenta1d9c81915b169272cf26139445f3e08e9b689b9 (diff)
downloadsearxng-088337295aaeebf8a37d6b4e859cd59019cd3d27.tar.gz
searxng-088337295aaeebf8a37d6b4e859cd59019cd3d27.zip
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.
Diffstat (limited to 'docs/admin')
-rw-r--r--docs/admin/installation.rst5
1 files changed, 1 insertions, 4 deletions
diff --git a/docs/admin/installation.rst b/docs/admin/installation.rst
index 28a6b0614..e0b3779fa 100644
--- a/docs/admin/installation.rst
+++ b/docs/admin/installation.rst
@@ -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 {