atom feed5 messages in ru.sysoev.nginxRe: 404 error on WPMU
FromSent OnAttachments
dikaFeb 21, 2008 8:19 pm 
Kiril AngovFeb 21, 2008 9:20 pm 
dikaFeb 21, 2008 10:29 pm 
HonDev DeveloperFeb 28, 2008 10:51 pm 
dikaFeb 28, 2008 11:40 pm 
Subject:Re: 404 error on WPMU
From:dika (andi@public.gmane.org)
Date:Feb 28, 2008 11:40:37 pm
List:ru.sysoev.nginx

wow.. works like a charms..! thank you so much.

HonDev Developer wrote:

After this line: rewrite ^.*/files/(.*) /wp-content/blogs.php?file=$1;

try adding this:

rewrite ^/wp-admin/ /wp-admin/index.php last;

On Fri, Feb 22, 2008 at 5:29 PM, dika
<andi@public.gmane.org <mailto:andi@public.gmane.org>> wrote:

Thanks for your suggestion sir, but unfortunately it doesn't work.. I still get 404 error alert.

any advice ?

-- anDika

Kiril Angov wrote:

# Look for existence of PHP index file. # Don't break here...just rewrite it. if (-f $request_filename/index.php) { rewrite (.*) $1/index.php; }

On Thu, Feb 21, 2008 at 11:19 PM, dika
<andi@public.gmane.org <mailto:andi@public.gmane.org>> wrote:

Hai Teams,

I've installed NginX to host my Wordpress MU. Everything running well, but one thing didn't works properly.

When I use this : http://202.158.66.216/wp-admin/ I got *Error 404 - Not Found.

*But if I use : http://202.158.66.216/wp-admin/index.php everything's running well.

What should I do to make this run without adding /index.php ?

here are my nginx.conf :

------- server { listen 80; server_name 202.158.66.216 <http://202.158.66.216> ; error_log /var/log/nginx/error.lo; location ~* ^.+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ { root /data/blog/wp; expires 30d; break; }

location / { root /data/blog/wp; index index.html index.htm index.php; rewrite ^.*/files/(.*) /wp-content/blogs.php?file=$1;

if (!-e $request_filename) { rewrite ^.+?(/wp-.*) $1 last; rewrite ^.+?(/.*\.php)$ $1 last; }

if ($query_string !~ ".*s=.*") { rewrite ^(.*) /wp-content/cache/supercache/$http_host/$1index.html; }

if ($http_cookie !~ "^.*comment_author_.*$" ) { rewrite ^(.*) /wp-content/cache/supercache/$http_host/$1index.html; }

if ($http_cookie !~ "^.*wordpressuser.*$" ) { rewrite ^(.*) /wp-content/cache/supercache/$http_host/$1index.html; }

if ($http_cookie !~ "^.*wp-postpass_.*$" ) { rewrite ^(.*) /wp-content/cache/supercache/$http_host/$1index.html break; }

error_page 404 = @tricky; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; }

location @tricky { rewrite ^ /index.php last; fastcgi_pass 127.0.0.1:9000 <http://127.0.0.1:9000>; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /data/blog/wp$fastcgi_script_name; include /opt/nginx/conf/fastcgi_params; }

location ~ \.php$ { fastcgi_pass 127.0.0.1:9000 <http://127.0.0.1:9000>; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /data/blog/wp$fastcgi_script_name; include /opt/nginx/conf/fastcgi_params; } }

--

Thanks for advice.

*Andika* Indonesian