Welcome! Log In Create A New Profile

Advanced

Re: WordPress MU rewrite rules

October 09, 2009 03:14AM
>>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.

Yes, but this way I have to load the mod_rewrite apache and I want to load only the necessary modules on apache.

>> - rewrite ^.*/files/(.*) /wp-content/blogs.php?file=$1;
>> - if (!-e $request_filename) {
>> - rewrite ^.+?(/wp-.*) $1 last;
>> - rewrite ^.+?(/.*\.php)$ $1 last;
>> - rewrite ^ /index.php last;
>> - }
>> + try_files $uri $uri/ @apach;
>> + location @apach {
>> + 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;
>> + }


sorry but I do not understand your solution.


many thanks to the two
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: 48
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