First..
2009/10/8 pepejose <nginx-forum@nginx.us>
> server{
> listen *:80;
> #mod rewrite wordpress
>
> rewrite ^.*/files/(.*) /wp-content/blogs.php?file=$1;
> if (!-e $request_filename) {
> rewrite ^.+?(/wp-.*) $1 last;
> rewrite ^.+?(/.*\.php)$ $1 last;
> rewrite ^ /index.php last;
> }
you don't need that
> #Proxy the PHP scripts to Apache listening on 127.0.0.1:8080
> location ~ \.php$ {
> proxy_set_header Host $host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_pass http://127.0.0.1:8080;
> }
> }
>
If you are proxy to apache, you don't need rewrite in nginx but only
rules in .htaccess for apache. set up nginx for static content only.
--
Best Regards
Grzegorz Sieńko