@@ -114,6 +114,9 @@ content:
114 # Module to import
114 # Module to import
115 module = searx.webapp
115 module = searx.webapp
117+ # Support running the module from a webserver subdirectory.
118+ route-run = fixpathinfo:
117 # Virtualenv and python path
120 # Virtualenv and python path
118 virtualenv = /usr/local/searx/searx-ve/
121 virtualenv = /usr/local/searx/searx-ve/
119 pythonpath = /usr/local/searx/
122 pythonpath = /usr/local/searx/
@@ -151,7 +154,10 @@ content:
152 listen 80;
155 listen 80;
153 server_name searx.example.com;
156 server_name searx.example.com;
154− root /usr/local/searx;
157+ root /usr/local/searx/searx;
156 location / {
162 location / {
157 include uwsgi_params;
163 include uwsgi_params;
@@ -180,14 +186,13 @@ Add this configuration in the server config file
181.. code:: nginx
187.. code:: nginx
183− location = /searx { rewrite ^ /searx/; }
189+ location /searx/static {
184− location /searx {
190+ alias /usr/local/searx/searx/static;
185− try_files $uri @searx;
187− location @searx {
193+ location /searx {
188 uwsgi_param SCRIPT_NAME /searx;
194 uwsgi_param SCRIPT_NAME /searx;
189 include uwsgi_params;
195 include uwsgi_params;
191 uwsgi_pass unix:/run/uwsgi/app/searx/socket;
196 uwsgi_pass unix:/run/uwsgi/app/searx/socket;
@@ -197,6 +202,10 @@ in case of single-user or low-traffic instances.)
198.. code:: nginx
203.. code:: nginx
205+ location /searx/static {
206+ alias /usr/local/searx/searx/static;
200 location /searx {
209 location /searx {
201 proxy_pass http://127.0.0.1:8888;
210 proxy_pass http://127.0.0.1:8888;
202 proxy_set_header Host $host;
211 proxy_set_header Host $host;
@@ -338,4 +347,3 @@ References
339* How to: `Setup searx in a couple of hours with a free SSL certificate
348* How to: `Setup searx in a couple of hours with a free SSL certificate
340 <https://www.reddit.com/r/privacytoolsIO/comments/366kvn/how_to_setup_your_own_privacy_respecting_search/>`__
349 <https://www.reddit.com/r/privacytoolsIO/comments/366kvn/how_to_setup_your_own_privacy_respecting_search/>`__