WordPress MU rewrite rules
pepejose
nginx-forum at nginx.us
Fri Oct 9 11:14:18 MSD 2009
>>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
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,8334,12295#msg-12295
More information about the nginx
mailing list