The MU forums have moved to WordPress.org

Sub-blogs die - Plesk? (8 posts)

  1. adaptiman
    Member
    Posted 16 years ago #

    I've had WPMU running correctly on my server for more than 6 months. Sometime in the last week, the sub-blogs have stopped responding. When you hit subblog.mydomain.com the Plesk default page shows up. DNS is setup to respond to * and has been working correctly. The only clue I have is that I recently upgraded my Plesk installation. My current Plesk version is 8.2.0.

    Any ideas on what could be causing this?

  2. theapparatus
    Member
    Posted 16 years ago #

    Check to see if the wildcard in Apache is still there. A recent upgrade may have overriden it.

  3. adaptiman
    Member
    Posted 16 years ago #

    Solved:

    It turns out that the following directive, which was not required with the earlier version of Plesk, is now required:

    <Directory /var/www/vhosts/mydomain.com/httpdocs/>
    AllowOverride FileInfo Options
    </Directory>
    ServerAlias *.mydomain.com

    I added this to a vhost.conf file in the /conf/ subdirectory, and ran the following command:

    /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=mydomain.com

    Now, the subblogs work.

  4. adaptiman
    Member
    Posted 16 years ago #

    The important point of this problem was that the behavior was caused by an upgrade in Plesk.

  5. andrewbillits
    Member
    Posted 16 years ago #

    This bit wasn't required before?:
    ServerAlias *.mydomain.com

    Thanks,
    Andrew

  6. adaptiman
    Member
    Posted 16 years ago #

    No, and it's not required now, except in the A record for the DNS entry.

  7. lunabyte
    Member
    Posted 16 years ago #

    I'll stop this train wreck right there.

    If you don't have a server alias as Andrew lists above, it won't work.

    How else is apache to know that virtual host needs to answer for any subdomain thrown at that server with that particular virtual host?

    Apache is apache, plesk or no plesk.

    While there are other methods for configuring apache, most people here have their site in a virtual host.

    So yeah, overall it is required. IF you got it to work without it, cool, but yes it's still required.

  8. andrea_r
    Moderator
    Posted 16 years ago #

    From the README:

    "3. In the <VirtualHost> section of the config file for your host there will be a line defining the hostname. You need to add the following if you want virtual hosts to work properly:
    "ServerAlias *.domain.tld"
    Replace domain.tld with whatever your one is, and remove the quotes."

About this Topic

  • Started 16 years ago by adaptiman
  • Latest reply from andrea_r