Welcome! Log In Create A New Profile

Advanced

Re: wordpress mu + nginx + apache

Igor Sysoev
December 01, 2009 02:44PM
On Tue, Dec 01, 2009 at 11:33:25AM -0500, pepejose wrote:

> I have read many forums and tried many settings and I can not get it to work, I need help
>
> I swear I've tried many rules combination and settings
>
> these are the rules for apache for wordpress 2.8.6, but I need to do the rewrite in nginx (proxy reverse, in front of apache)
>
>
> RewriteEngine On
> RewriteBase /
>
> #uploaded files
> RewriteRule ^(.*/)?files/$ index.php
> RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
> RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2
>
> # add a trailing slash to /wp-admin
> RewriteCond %{REQUEST_URI} ^.*/wp-admin$
> RewriteRule ^(.+)$ $1/
>
> RewriteCond %{REQUEST_FILENAME} -f
> RewriteCond %{REQUEST_FILENAME} -d
> RewriteRule . -
> RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2
> RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2
> RewriteRule . index.php
>
>
> which is the translation of these rules for nginx? help PLEASE!! :(

Begin from simple

location / {
try_files $uri /index.php;
}


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
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: 113
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