Welcome! Log In Create A New Profile

Advanced

Re: WordPress MU rewrite rules

Grzegorz Sienko
October 08, 2009 03:42PM
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
Subject Author Posted

WordPress MU rewrite rules

pepejose September 22, 2009 04:52AM

Re: WordPress MU rewrite rules

pepejose October 08, 2009 10:46AM

Re: WordPress MU rewrite rules

Grzegorz Sienko October 08, 2009 03:42PM

Re: WordPress MU rewrite rules

edogawaconan October 08, 2009 11:04PM

Re: WordPress MU rewrite rules

pepejose October 09, 2009 03:14AM

Re: WordPress MU rewrite rules

edogawaconan October 09, 2009 02:36PM

Re: WordPress MU rewrite rules

Daniele Melosi October 20, 2009 10:10AM

Re: WordPress MU rewrite rules

edogawaconan October 20, 2009 10:54AM

Re: WordPress MU rewrite rules

Daniele Melosi October 21, 2009 04:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 164
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready