mirror of
https://github.com/searxng/searxng.git
synced 2024-08-24 15:10:17 +02:00
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.
This commit is contained in:
parent
a1d9c81915
commit
088337295a
@ -183,11 +183,8 @@ Add this configuration in the server config file
|
|||||||
|
|
||||||
.. code:: nginx
|
.. code:: nginx
|
||||||
|
|
||||||
location = /searx {
|
|
||||||
rewrite ^ /searx/;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /searx/static {
|
location /searx/static {
|
||||||
|
alias /usr/local/searx/searx/static;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /searx {
|
location /searx {
|
||||||
|
Loading…
Reference in New Issue
Block a user