On 07.11.2012 06:33, Roberto De Ioris wrote:
How do I configure nginx and uwsgi when the url is suppose: /a/b/c/ and it needs to map to a file of: /home/app1/public_html/index.php I guess the SCRIPT_NAME that PHP will see must stay the same /a/b/c/ url path, so that the PHP app can generate proper urls in the HTML output.
route = ^/a/b/c/ rewrite:/index.php or (i suppose you want something that) route = ^/a/b/c/(.*) rewrite:/index.php$1
with both of these rewrites the SCRIPT_NAME variable in php becomes "/index.php". That way the php application can't create urls to itself.
The same if I use route = ^/a/b/c/(.*) rewrite:/$1 -- дамјан _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
