Maybe I should ask this question on Nginx forum, but I will try my chances here. nginx version: nginx/0.8.49
I found something in the wiki: http://projects.unbit.it/uwsgi/wiki/RunOnNginx#Staticfiles I would like to serve static files by default, in the absence - uwsgi_pass. So I wrote this: server { listen 80; server_name www1; location / { root /var/www/1/public; if (!-f $request_filename) { include /etc/nginx/params_uwsgi; uwsgi_pass unix:/var/www/1.sock; } } } Unfortunately, I have: Restarting nginx: [emerg]: "include" directive is not allowed here in line 7. would it not be able to do "include" inside "if" ?! any advice ? -- Łukasz Wróblewski DDarko.org www.hostowisko.pl - profesjonalny i tani hosting www.nri.pl - nowoczesne rozwiązania internetowe www.katalog-polskich-firm.pl - najlepszy darmowy katalog firm _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
