Welcome! Log In Create A New Profile

Advanced

Nginx + wordpress MU --> Ok! Now how to use domainmapping plugin

Posted by antoinet 
Nginx + wordpress MU --> Ok! Now how to use domainmapping plugin
December 03, 2009 01:14PM
Hello,

I've installed wordpress MU with nginx, and it works great.
Now I'm trying to make the domain mapping plugin work and it does not.
- Let's call the domain where wordpress mu runs wpmudomain.com
- Let's call a blog I created wpmudomain.com/newblog
- Lets call domaintomap.com the domain I want to map to wpmudomain.com/newblog
- Let's say my server Ip is 10.10.10.10

So I installed the domainmapping plugin.
1- I set the server IP address in domain mapping settings
2- I set DNS settings for domaintomap.com: A pointing to 10.10.10.10
3- I wait for a couple of hours for the dns settings to be transferred
4- I enter domaintomap.com in my browser and I get redirected to wpmudomain.com/newblog

Here's my domaintomap.com.conf:
server {
listen 80;
server_name domaintomap.com *.domaintomap.com; # underdash means for all hosts
access_log logs/domaintomap.com.access.log main;

location / { root /var/www/vhosts/wpmudomain.com/htdocs;
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 /var/www/nginx-default;
}

location ~ \.php$ {
# rewrite ^/.*(/wp-.*/.*.php)$ $1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/vhosts/wpmudomain.com/htdocs$fastcgi_script_name;
include fastcgi_params;
}
}

Any idea of what can be wrong?

Thanks for your help,
Antoinet.
-- I hope I'll never lose my head with such a nickname --



Edited 1 time(s). Last edit at 12/03/2009 01:14PM by antoinet.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 89
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready