WordPress.org

Forums

Nginx
[resolved] Problem with Domain Mapping and this plugin (18 posts)

  1. magenbrot
    Member
    Posted 2 years ago #

    Hi,

    I'm trying to migrate on a nginx host.

    I use "MU Domain Mapping" plugin for my site where I've mapped many domains to one WPMU installation.

    In the nginx map and the file I get the following output (note the missing blanks):

    http://www.blutraben.netblutraben.netwww.blutraben.net 2;
    http://www.stockfotografien.destockfotografien.dewww.stockfotografien.de 3;
    ...

    is this a problem within my setup?

    http://wordpress.org/extend/plugins/nginx-helper/

  2. rahul286
    Member
    Plugin Author

    Posted 2 years ago #

    Can u please paste map.conf using pastbin/github?

    bbPress is adding http:// automatically I guess here.

  3. magenbrot
    Member
    Posted 2 years ago #

    here's the paste:
    http://pastebin.com/CF1mRHB3

  4. rahul286
    Member
    Plugin Author

    Posted 2 years ago #

    For line:

    www.blutraben.netblutraben.netwww.blutraben.net 2;

    are there 2 domains:

    www.blutraben.netblutraben.net
    www.blutraben.net

    May be:
    http://www.blutraben.net is a mapped domain for subdomain http://www.blutraben.netblutraben.net ?

    Please provide more details.

    Its not only a space issue. map.conf should have every domain/subdomain on different line.

    If you are using what I guess above, output should have been:

    www.blutraben.netblutraben.net 2;
    www.blutraben.net 2;

    By any chance you are NOT using Donncha's domain-mapping plugin - http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/ ?

  5. magenbrot
    Member
    Posted 2 years ago #

    this is the domain-mapping page of MU Domain Mapping:

    http://up.11einself.de/files/eefc7bfe8fd6e2c8c01a616462.png

    there is always one primary domain www.* with the domain itself mapped on the same id.

  6. Saurabh Shukla
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hi magenbrot,

    Thanks for bringing this to my attention. This use case wasn't considered that well in the code. Fixed and updated to version 1.6. Kindly update your plugin.

    Thanks and regards.

  7. Saurabh Shukla
    Member
    Plugin Contributor

    Posted 2 years ago #

    Also, do let me know, if things are good, at the earliest.

    Cheers!

  8. rahul286
    Member
    Plugin Author

    Posted 2 years ago #

    Marking this issue as resolved.

    If you face any problem, feel free to let us know. :-)

  9. magenbrot
    Member
    Posted 2 years ago #

    Hi!

    thanks for your efforts! I just updated to 1.6, now I have this in map.conf:

    w w;
    2 2;

  10. Saurabh Shukla
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hi,

    My apologies. I do detect the hint of sarcasm. We've just fixed this bug.

    Kindly update to 1.6.1, asap.

    Regards.

  11. magenbrot
    Member
    Posted 2 years ago #

    sorry, sarcasm was not intended :)

    with 1.6.1 it look like this:
    http://pastebin.com/MUsj43PJ

  12. Saurabh Shukla
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hi,

    Thanks for the help in testing this quickly because I don't have that quick access to a multi domain mapped site, right now!

    I've just updated the code to 1.6.2. Kindly update.

    Regards.

  13. Saurabh Shukla
    Member
    Plugin Contributor

    Posted 2 years ago #

    Ok, got to test it on a multi-domain install, similar to yours. Everything works fine. Could you confirm, so I could mark this as resolved!

    Regards.

  14. magenbrot
    Member
    Posted 2 years ago #

    looks better now. but somehow there are double entries for domains:
    http://pastebin.com/6BiCQ9yq

    ie. http://www.blutraben.net or pix.magenbrot.net

    I've checked with wp_domain_mapping table, everything ok there.

    kind regards
    Oliver

  15. Saurabh Shukla
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hi Oliver,

    Double entries won't be a problem. It won't affect the functionality, at all. Nginx will use either of them and redundancy is no problem. However, I agree that its aesthetically alarming and I personally don't like to repeat anything, unless required.

    However, since this is not a functional issue and won't interfere with the functioning, I'll mark this as resolved. I'll look into this, asap and remove the duplicate entries.

    Thanks again for the support!

    Cheers.

  16. magenbrot
    Member
    Posted 2 years ago #

    nginx cares about the double entries :)

    nginx: [emerg] conflicting parameter "www.firepics.eu" in /var/www/clients/client1/web38/web/wp-content/plugins/nginx-helper/map.conf:15

  17. Saurabh Shukla
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hi,

    That's one more of my theories, out the window. Hadn't experienced this earlier. In the changelog, you might notice that prior to 1.3.4, there were duplicate entries, but it never affected our network at http://rtcamp.com.

    Anyways, I've applied a quick fix. Kindly update the plugin.

    Thanks again.

  18. magenbrot
    Member
    Posted 2 years ago #

    thank you for the quick response :) everything is fine now!

    kind regards
    Oliver

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic