Hi, I tried to run it wpmu domain mapping using nginx.
– wpmudomain.com is the main setup for wpmu
– I have another blog running at wpmudomain.com/anotherblogusingwpmu
– domain.com is a second domain and I’d like having a blog on it using wpmu

Problem:
When entering domain.com, it gets redirected to wpmudomain.com.
Any idea of what can be wrong?

domain.com.conf contains the following:
server {
listen 80;
server_name domain.com *.domain.com;

access_log /var/log/domain.com ;
error_log /var/log/domain.com_error;
location / {
root /var/www/wpmudomain.com;
index index.php;
if (!-e $request_filename) {
rewrite ^.+/?(/wp-.*) $1 last;
rewrite ^.+/?(/.*\.php)$ $1 last;
rewrite ^(.+)$ /index.php?q=$1 last;
}

}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/local/www/nginx-dist;
}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/wpmudomain.com$fastcgi_script_name;
include fastcgi_params;
}

location ~ /\.ht {
deny all;
}
}

Thanks!