* Roberto De Ioris <[email protected]> [2013-02-28 13:35]: > >> * Roberto De Ioris >> <[email protected]> [2013-02-28 >> 11:23]: >>> Just fixed a stupid bug with 1.9 --static-index :P >>> >>> This is a more readable example: >>> >>> [uwsgi] >>> plugins = 0:notfound,cgi,php >>> http-socket = :8080 >>> >>> docroot = /root/uwsgi/testcgi >>> >>> check-static = %(docroot) >>> cgi = %(docroot) >>> >>> for = cgi pl py php php4 php5 inc >>> static-index = index.%(_) >>> static-skip-ext = .%(_) >>> endfor = >>> >>> for = cgi pl py >>> route = \.%(_)$ uwsgi:,9,0 >>> cgi-index = index.%(_) >>> endfor = >>> >>> for = php php4 php5 inc >>> php-index = index.%(_) >>> php-allowed-ext = .%(_) >>> route = \.%(_)$ uwsgi:,14,0 >>> endfor = >> >> Thanks, that makes the index.html and index.pl cases work (after >> adding static-index = index.html), but PHP now doesn't work any >> more, both http://127.0.0.1:8080/bar/ and >> http://127.0.0.1:8080/bar/index.php now return a 404. >> > > if you strace it you should see a wrong document_root (http-socket does > not set it). > > You can force it with --php-docroot = <path> > > If you plan to put a full webserver on front remember you can honour the > DOCUMENT_ROOT fir cgi and static automagically with: > > chech-static-docroot = true > cgi-from-docroot = true
Works now as intended, thanks a lot! -- Guido Berhoerster _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
