Using MU Wordpress with the folder install as opposed to the subdomain install I initially couldn&#39;t get the admin section php files or the statics working.<br><br>MU Wordpress folder install creates blogs like so:<br><br>
<a href="http://domain.com/blog/">domain.com/blog/</a><br><a href="http://domain.com/secondblog/">domain.com/secondblog/</a><br><a href="http://domain.com/thirdblog/">domain.com/thirdblog/</a><br><br>The admin section is handled by the folders in the root physical location:
<br><br>/home/site/public_html/wp-admin<br><br>The admin sections on the blogs are mapped to:<br><br><a href="http://domain.com/wp-admin/">domain.com/wp-admin/</a> (this is for the main blog which worked with no changes)<br>
<a href="http://domain.com/secondblog/wp-admin/">domain.com/secondblog/wp-admin/</a><br><a href="http://domain.com/thirdblog/wp-admin/">domain.com/thirdblog/wp-admin/</a> <br><br>The admin sections on the blogs also has virtual static files like this:
<br><br><a href="http://domain.com/secondblog/wp-admin/wp-admin.css">domain.com/secondblog/wp-admin/wp-admin.css</a><br><br>I got all this working with the adding the following to the conf.&nbsp; I&#39;m just wondering, is there a better way to do it?
<br><br>...<br><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 /home/THEBLOG/public_html;<br>rewrite ^/.*(/wp-.*/.*\.(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))$ $1;
<br>expires 10d;<br>break;<br>}<br><br>...<br><br>location ~ \.php$ {<br>rewrite ^/.*(/wp-admin/.*.php)$ $1;<br>fastcgi_pass&nbsp;&nbsp; 127.0.0.1:xxxx;<br><br>....<br><br>So the entire conf file is this on Nginx 0.6.4 :<br><br>server {
<br>listen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 80;<br>server_name&nbsp; THEBLOG.com;<br><br>access_log&nbsp; logs/THEBLOG.access.log;<br><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 /home/THEBLOG/public_html;<br>rewrite ^/.*(/wp-.*/.*\.(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))$ $1;<br>expires 10d;<br>break;<br>}<br><br>location / {
<br>root&nbsp;&nbsp; /home/THEBLOG/public_html;<br>index&nbsp; index.php;<br><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>rewrite ^(.+)$ /index.php?q=$1 last;<br>}<br><br>}<br>error_page&nbsp;&nbsp; 500 502 503 504&nbsp; /50x.html;<br>location = /50x.html {<br>root&nbsp;&nbsp; /var/www/nginx-default;<br>}<br><br>location ~ \.php$ {<br>rewrite ^/.*(/wp-admin/.*.php)$ $1;
<br>fastcgi_pass&nbsp;&nbsp; 127.0.0.1:xxxx;<br>fastcgi_index&nbsp; index.php;<br>fastcgi_param&nbsp; SCRIPT_FILENAME /home/THEBLOG/public_html$fastcgi_script_name;<br>include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/local/nginx/conf/fastcgi_params;<br>}<br>}<br><br>server {
<br>server_name <a href="http://www.THEBLOG.com">www.THEBLOG.com</a>;<br>rewrite ^/(.*) <a href="http://THEBLOG.com/$1">http://THEBLOG.com/$1</a> permanent;<br>}<br><br><br><br><br><br><br><br>