<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
wow..<br>
works like a charms..!<br>
thank you so much.<br>
<br>
<br>
--<br>
anDika_<br>
<br>
HonDev Developer wrote:
<blockquote
 cite="mid:be23c6a90802282252x3ba31d44w592bf0d553213462@mail.gmail.com"
 type="cite">After this line:<br>
  <pre>rewrite ^.*/files/(.*) /wp-content/blogs.php?file=$1;

try adding this:

rewrite ^/wp-admin/ /wp-admin/index.php last;
  </pre>
  <br>
  <br>
  <div class="gmail_quote">On Fri, Feb 22, 2008 at 5:29 PM, dika &lt;<a
 moz-do-not-send="true" href="mailto:andika@agrakom.com">andika@agrakom.com</a>&gt;
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">
Thanks for your suggestion sir, but unfortunately it doesn't work..<br>
I still get 404 error alert.<br>
    <br>
any advice ?<br>
    <font color="#888888"><br>
    <br>
--<br>
anDika</font>
    <div>
    <div class="Wj3C7c"><br>
    <br>
Kiril Angov wrote:
    <blockquote type="cite">&nbsp;&nbsp;&nbsp; # Look for existence of PHP index file.<br>
&nbsp;&nbsp;&nbsp; # Don't break here...just rewrite it.<br>
&nbsp;&nbsp;&nbsp; if (-f $request_filename/index.php) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rewrite (.*) $1/index.php;<br>
&nbsp;&nbsp;&nbsp; }<br>
      <br>
      <div class="gmail_quote">On Thu, Feb 21, 2008 at 11:19 PM, dika
&lt;<a moz-do-not-send="true" href="mailto:andika@agrakom.com"
 target="_blank">andika@agrakom.com</a>&gt;
wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
        <div bgcolor="#ffffff" text="#000000"><small>Hai Teams,<br>
        <br>
I've installed NginX to host my Wordpress MU.<br>
Everything running well, but one thing didn't works properly.<br>
        <br>
When I use this : <a moz-do-not-send="true"
 href="http://202.158.66.216/wp-admin/" target="_blank">http://202.158.66.216/wp-admin/</a><br>
I got <b>Error 404 - Not Found.<br>
        <br>
        </b>But if I use : <a moz-do-not-send="true"
 href="http://202.158.66.216/wp-admin/index.php" target="_blank">http://202.158.66.216/wp-admin/index.php</a><br>
everything's running well.<br>
        <br>
What should I do to make this run without adding /index.php ?<br>
        <br>
here are my nginx.conf :<br>
        <br>
-------<br>
server {<br>
listen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 80;<br>
server_name&nbsp; <a moz-do-not-send="true" href="http://202.158.66.216"
 target="_blank">202.158.66.216</a> ;<br>
error_log /var/log/nginx/error.lo;<br>
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)$<br>
{<br>
root /data/blog/wp;<br>
expires 30d;<br>
break;<br>
}<br>
        <br>
location / {<br>
root&nbsp;&nbsp; /data/blog/wp;<br>
index&nbsp; index.html index.htm index.php;<br>
rewrite ^.*/files/(.*) /wp-content/blogs.php?file=$1;<br>
        <br>
if (!-e $request_filename) {<br>
rewrite ^.+?(/wp-.*) $1 last;<br>
rewrite ^.+?(/.*\.php)$ $1 last;<br>
}<br>
        <br>
if ($query_string !~ ".*s=.*") {<br>
rewrite ^(.*) /wp-content/cache/supercache/$http_host/$1index.html;<br>
}<br>
        <br>
if ($http_cookie !~ "^.*comment_author_.*$" ) {<br>
rewrite ^(.*) /wp-content/cache/supercache/$http_host/$1index.html;<br>
}<br>
        <br>
if ($http_cookie !~ "^.*wordpressuser.*$" ) {<br>
rewrite ^(.*) /wp-content/cache/supercache/$http_host/$1index.html;<br>
}<br>
        <br>
if ($http_cookie !~ "^.*wp-postpass_.*$" ) {<br>
rewrite ^(.*) /wp-content/cache/supercache/$http_host/$1index.html<br>
break;<br>
}<br>
        <br>
error_page&nbsp;&nbsp;&nbsp; 404&nbsp; =&nbsp; @tricky;<br>
}<br>
error_page&nbsp;&nbsp; 500 502 503 504&nbsp; /50x.html;<br>
location = /50x.html {<br>
root&nbsp;&nbsp; html;<br>
}<br>
        <br>
location @tricky {<br>
rewrite ^ /index.php last;<br>
fastcgi_pass&nbsp;&nbsp; <a moz-do-not-send="true" href="http://127.0.0.1:9000"
 target="_blank">127.0.0.1:9000</a>;<br>
fastcgi_index&nbsp; index.php;<br>
fastcgi_param&nbsp; SCRIPT_FILENAME /data/blog/wp$fastcgi_script_name;<br>
include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /opt/nginx/conf/fastcgi_params;<br>
}<br>
        <br>
location ~ \.php$ {<br>
fastcgi_pass&nbsp;&nbsp; <a moz-do-not-send="true" href="http://127.0.0.1:9000"
 target="_blank">127.0.0.1:9000</a>;<br>
fastcgi_index&nbsp; index.php;<br>
fastcgi_param&nbsp; SCRIPT_FILENAME /data/blog/wp$fastcgi_script_name;<br>
include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /opt/nginx/conf/fastcgi_params;<br>
}<br>
}<br>
        <br>
--<br>
        <br>
Thanks for advice.<br>
        <br>
        <b>Andika</b><br>
Indonesian<br>
        </small> </div>
      </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
    </div>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
</blockquote>
<br>
</body>
</html>