Hello.
In https://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#static-files we
have nginx configuration example:
location /media {
> alias /var/lib/python-support/python2.6/django/contrib/admin/media;
> }
>
>
According to http://nginx.org/en/docs/http/ngx_http_core_module.html#alias
When location matches the last part of the directive’s value:
>
> location /images/ {
> alias /data/w3/images/;
> }
>
> it is better to use the root
> <http://nginx.org/en/docs/http/ngx_http_core_module.html#root> directive
> instead:
>
> location /images/ {
> root /data/w3;
> }
>
> It would be great to improve nginx configuration examples for the
following links:
01. https://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#static-files
('location /media')
02.
https://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html#configure-nginx-for-your-site
('location /media' + 'location /static')
Thanks.
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi