• I am installing a networked version of 3.0, which will use subdomains rather than subfolders.

    I created the wildcard dns correctly (I think) and changed the .htaccess file and made the changes to wp-config.php as well.

    Anyone have an idea why this is happening? It seems as though I am close, but there may be one or two things missing.

    Any assistance would be greatly appreciated.

Viewing 15 replies - 1 through 15 (of 19 total)
  • Yes. you need to set a wildcard subdomain records in your DNS.

    in A *.yourdomain.com.

    Also check with your host to see if wildcard subdomains are enabled on your account on the server side.

    Thread Starter kcgleaton

    (@kcgleaton)

    Thanks for your reply.

    I have a dedicated server, so wildcard subdomains SHOULD not be an issue. It appears that the wildcard subdomain is set properly, but I am still getting the same result.

    Could there be any additional causes?

    Let me know…

    Can I get a link so I can ping it?

    Like I said above, wildcard subdomains are a two-step process. One for the DNS side, one for the server side.

    Look in the vhost entry for your domain. Does it say:

    Serveralias yourdomain.com *.yourdomain.com ?

    Apache doesn’t do this unless you tell it to.

    Thread Starter kcgleaton

    (@kcgleaton)

    the link…

    Are you looking for the domain? https://www.1ultima1.com

    Next question: How do I find the vhost entry for my domain?

    Final question: Do I need to make any changes to apache?

    Getting closer, I hope…

    Thanks!

    Thread Starter kcgleaton

    (@kcgleaton)

    I have added the following to the apache file:

    ServerName 1ultima1.com
    ServerAlias 1ultima1.com *.1ultima1.com
    DocumentRoot /your/doc/root/
    ServerAdmin [email protected]

    I found this on your blog, at: https://wpmututorials.com/how-to/enabling-wildcard-subdomains/

    is this correct?

    Yes.

    DocumentRoot /your/doc/root/

    Is this just a sample or do you really have it pointed to your doc root on the server? ??

    Thread Starter kcgleaton

    (@kcgleaton)

    No, this is the exact code I have in the apache file. Is that the right thing to do? If not, how should it be changed?

    I was not sure of the syntax.

    Also, how do I find the vhost entry for my domain? I still need to make that change as well.

    Let me know…

    Well, the part with your server name & alias should be in the apache vhost directive area.

    The document root should state the actual full path on the server of where your install is.

    That would certainly be the issue. ??

    Further reading:
    https://httpd.apache.org/docs/2.2/vhosts/name-based.html

    Thread Starter kcgleaton

    (@kcgleaton)

    I have made the change to the path. It is now /var/www/vhosts/1ultima1.com/httpdocs/ . However, it is STILL not working. I am still getting the default page.

    Very frustrating!

    I thought it was supposed to be easier!

    Oh well…

    Thoughts?

    Well there is a certain level of technical competence you need to run a network, so installing it is the easy part. ??

    If you’re mucking around in the server files, there’s an assumption you know what you’re doing or you’re willing to learn it. ??

    Did you restart the webserver?
    And you added a wildcard subomain in your DNS records?

    Thread Starter kcgleaton

    (@kcgleaton)

    Don’t know everything, but I am willing to learn.

    yes, I added the wildcard subdomain in the dns record.

    I did not restart the webserver, because I do not know how.

    Can you talk me down?

    If you have a cPanel installation with WHM, then you can restart Apache from within that, if you have some other type of control panel, there’s still possibly an option to restart Apache.

    If you are doing this from shell, then something like /etc/init.d/apache2 restart, but I’d recommend getting a lot more familiar with shell before tackling that.

    Try actually creating the sub-domain in your server admin panel (cpanel, plesk, etc.)

    Ignore what TheWiz said – listen to Andrea’s early post –

    Like I said above, wildcard subdomains are a two-step process. One for the DNS side, one for the server side.
    Look in the vhost entry for your domain. Does it say:
    Serveralias yourdomain.com *.yourdomain.com ?
    Apache doesn’t do this unless you tell it to.

    /var/www/vhosts/1ultima1.com/httpdocs/ takes you to the ROOT of your hosting space – in cPanel the equivalent would be /home/public_html/

    You need the path pointing at the folder where this domain is installed
    – it might be – /var/www/vhosts/1ultima1.com/httpdocs/1ultima1/

    Note – bad idea to put any site build directly into the root of your hosting space = hacker magnet and you’ll be fighting them off forever.

    Forgot – if your path is using /httpdocs/ in it, are you using Plesk?

    Plesk has particular problems with WPMU and WP3.0 subdomain installs – if you get the WP subdomains working, it knocks out your fixed-name subdomains such as pop3, smtp, mail, webmail, ftp and so on – you’ll need to do some heavy digging to fix those issues after you get WP subdomains working.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘3.0 network installation creates subdomain but resolves to server default page’ is closed to new replies.