The MU forums have moved to WordPress.org

Problems with subdomains (13 posts)

  1. alex986best
    Member
    Posted 17 years ago #

    Hi all,

    I'm new to WordPress but I think this is a very powerfull software.

    My problem is that I installed the platform in blogs.mydomain.com

    It works fine but when I create a new blog the url is newblog.blogs.mydomain.com but apache is not configured to accept those kink of urls...

    Is there a way instead to leave the home page in blogs.mydomain.com and then host the other blogs in newblog.mydomain.com?

    Thanks!

  2. kahless
    Member
    Posted 17 years ago #

    Check

    http://trac.mu.wordpress.org/wiki/DebuggingWpmu
    http://trac.mu.wordpress.org/wiki/UpgradingWpmu

    and make sure to read the README.txt in MU install folder. It talks about how DNS and Apache need to be configured.

  3. alex986best
    Member
    Posted 17 years ago #

    Apache is configured properly....

  4. donncha
    Key Master
    Posted 17 years ago #

    No, You need two Apache virtual hosts, on on "blogs" running a normal version of Apache, and the other running WPMU on "newblog"

  5. alex986best
    Member
    Posted 17 years ago #

    I don't understand...

    I configured just one virtual host which is blogs.mydomain.com

    this host handles all the requests for *.mydomain.com

    I think the problem is in the configuration of wordpress because it automatically creates all the new blogs in newblog.blog.mydomain.com

    Maybe I have to make changes to the database entries

  6. alex986best
    Member
    Posted 17 years ago #

    Please help me...

  7. donncha
    Key Master
    Posted 17 years ago #

    Please read my post above again.. You need two virtual hosts in Apache, each pointing at different directories on your box and at the two hostnames that you mentioned above.

  8. kahless
    Member
    Posted 17 years ago #

    Here is how I have mine set up.

    Domain blogs.domain.com with wild card DNS for *.blogs.domain.com
    One VHOST in Apache for blogs.domain.com with alias for *.blogs.domain.com
    All blogs get username.blogs.domain.com (as yours) which is normal.

    What donncha is saying it that you can't have the home blog be blog.domain.com and have the user blogs be at username.domain.com with WPMU. He is suggesting you have two installs and two domains. Home blog would be regular WordPress on domain.com. User blogs would be on blogs.domain.com with a WPMU install. I don't think you can have blogs.domain.com for your home and username.domain.com for the user blogs because of the way DNS will be configured with the wildcard for *.domain.com. This would resolve blogs.domain.com to the WPMU install and not the regular WordPress install.

    Is this kind of what you were getting at donncha?

  9. khmerboy
    Member
    Posted 17 years ago #

    I have problem with subdomain too. It's working if I add DNS *.myblog.com but then when I have demo.myblog.com it will not working. If I remove *. infront of myblog.com in DNS demo.myblog.com will work but after few hours(expect that DNS is updated) myblog.com is not working.
    I wonder why it is happening like this. Anybody knows what is the problem?

    Thanks

  10. alex986best
    Member
    Posted 17 years ago #

    ok thanks a lot!!

  11. chradil
    Member
    Posted 17 years ago #

    the readme.txt file doesn't mention anything about the DNS setup, (my most current DL of MU is a couple of weeks old), is this some info that had been added recently ?

  12. artyeo
    Member
    Posted 17 years ago #

    Why my blogs is down....
    Cant up load ???....
    Cant access blogs...:(

  13. kahless
    Member
    Posted 17 years ago #

    From revision 674 on July 13 (and earlier by some number of revisions)

    DNS
    ===
    If you want to host blogs of the form http://blog.domain.tld/ where
    domain.tld is the domain name of your machine then you must add a
    wildcard record to your DNS records.
    This usually means adding a "*" hostname record pointing at your
    webserver in your DNS configuration tool.
    Matt has a more detailed explanation:
    http://photomatt.net/2003/10/10/wildcard-dns-and-sub-domains/

    I only work from svn and haven't looked at a nightly in months, so I don't know if and when this showed up in the nightly.

About this Topic

  • Started 17 years ago by alex986best
  • Latest reply from kahless