404 error on WPMU

dika andika at agrakom.com
Fri Feb 22 09:29:46 MSK 2008


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 <andika at agrakom.com 
> <mailto:andika at agrakom.com>> 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
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080222/eae97371/attachment.html>


More information about the nginx mailing list