on master help sign in
Let Nginx deliver static files directory in all examples
3e5a3eeRobin Schneider
docs/admin/installation.rst+8−1
@@ -154,7 +154,10 @@ content:
154 server {
154 server {
155 listen 80;
155 listen 80;
156 server_name searx.example.com;
156 server_name searx.example.com;
157− root /usr/local/searx;
157+ root /usr/local/searx/searx;
158+
159+ location /static {
160+ }
158
161
159 location / {
162 location / {
160 include uwsgi_params;
163 include uwsgi_params;
@@ -199,6 +202,10 @@ in case of single-user or low-traffic instances.)
199
202
200.. code:: nginx
203.. code:: nginx
201
204
205+ location /searx/static {
206+ alias /usr/local/searx/searx/static;
207+ }
208+
202 location /searx {
209 location /searx {
203 proxy_pass http://127.0.0.1:8888;
210 proxy_pass http://127.0.0.1:8888;
204 proxy_set_header Host $host;
211 proxy_set_header Host $host;