ok,that worked. the last step is to get an exception worked into the config file for domains that use wordpress with multisite enabled where wildcard subdomains are used.
the errors look like:
Quote:
|
2010/11/03 19:17:28 [error] 32439#0: *3 open() "/var/www/adi.zice.ro/web/wp-includes/images/adminbar.png" failed (2: No such file or directory), client: 196.210.184.232, server: _, request: "GET /wp-includes/images/adminbar.png HTTP/1.1", host: "adi.zice.ro:82", referrer: "http://adi.zice.ro:82/"
|
the problem is nginx is looking for /var/www/adi.zice.ro/web/ which does nto exist. adi.zice.ro is a virtual subdomain handled by wordpress.
so basically I need to extend this:
Quote:
|
set $site_dir $host; if ($host ~ ^www\.(.*)) { set $site_dir $1; } root /var/www/$site_dir/web;
|
so that if $host is stripped of www and any subdomains and the resulting $host is
zice.ro these rewrite rules are executed as zice.ro is multisite enabled with virtual subdomains:
Quote:
rewrite ^.*/files/(.*) /wp-content/blogs.php?file=$1;
if (!-e $request_filename) {
rewrite ^.+?(/wp-.*) $1 last;
rewrite ^.+?(/.*\.php)$ $1 last;
rewrite ^ /index.php last;
}
|
any help out there?