December 01, 2009 04:32PM
ok

[quote=apache]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
[/quote]

[quote=nginx]

if (!-e $request_filename) {
rewrite ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 last;
rewrite ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 last;
rewrite ^. index.php last;
}

}

[/quote]

is this equivalent?

I created a blog named test with the above rules, with http://blogs.domain.com/test/ I get a Bad Request response (Your browser sent a request that this server could not understand.) from apache
([Tue Dec 01 22:22:11 2009] [error] [client 127.0.0.1] Invalid URI in request GET index.php HTTP/1.0
apache error_log)

http://blogs.domain.com/test/ only match with "rewrite ^. index.php last;" not? then... I do not understand how it works in nginx apache and not with those rules

thanks!
Subject Author Posted

wordpress mu + nginx + apache

pepejose December 01, 2009 11:33AM

Re: wordpress mu + nginx + apache

pepejose December 01, 2009 11:38AM

Re: wordpress mu + nginx + apache

Ozkan Erden December 01, 2009 01:56PM

Re: wordpress mu + nginx + apache

pepejose December 01, 2009 02:06PM

Re: wordpress mu + nginx + apache

Ozkan Erden December 01, 2009 02:16PM

Re: wordpress mu + nginx + apache

pepejose December 01, 2009 02:40PM

Re: wordpress mu + nginx + apache

pepejose December 01, 2009 04:32PM

Re: wordpress mu + nginx + apache

Igor Sysoev December 01, 2009 02:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready