WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Subdomain's Not Working - Using 1&1 & Plesk (15 posts)

  1. rward
    Member
    Posted 3 years ago #

    Hi, I will try to be brief - not sure I can...

    I just saw this dedicated Multisite sub-forum so I apologize for the repost, but assumed it would be more appropriate here.

    I have WP 3.0.4. I'm working on a MAC using Transmit as FTP.
    FTP'd the folders & files to http://www.atlantainfocus.com, got WP up and running
    I then used this tutorial:
    http://codex.wordpress.org/Configuring_Wildcard_Subdomains_for_multi_site_under_Plesk_Control_Panel
    to create a wildcard subdomain by creating a file, vhosts.conf in the /conf folder and adding:
    'ServerAlias *.atlantainfocus.com' to the file.
    I then restarted Apache
    Next, I went to the domain page in Plesk and added a DNS wildcard as follows:
    Domain name: *.atlantainfocus.com
    Canononical name: atlantainfocus.com.

    Went into WP administration and created the superadmin and network, changed the HTACCESS file to what it gave me, updated permalinks added the generated code to my wp-config file and got the warning:

    "Warning! Wildcard DNS may not be configured correctly!

    The installer attempted to contact a random hostname (13cc09.example.com) on your domain.

    To use a subdomain configuration, you must have a wildcard entry in your DNS. This usually means adding a * hostname record pointing at your web server in your DNS configuration tool.

    You can still use your site but any subdomain you create may not be accessible. If you know your DNS is correct, ignore this message."

    htaccess code is:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]

    and code generated for wp-config is:

    define('WP_ALLOW_MULTISITE', true);
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'atlantainfocus.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    So.....hopefully I have given enough information here to help someone help me. I'm quite stuck....

    Any help would be very much appreciated...

    Thank you,

    Ryan

  2. "Warning! Wildcard DNS may not be configured correctly!

    The installer attempted to contact a random hostname (13cc09.example.com) on your domain.

    To use a subdomain configuration, you must have a wildcard entry in your DNS. This usually means adding a * hostname record pointing at your web server in your DNS configuration tool.

    You can still use your site but any subdomain you create may not be accessible. If you know your DNS is correct, ignore this message."

    This is your problem.

    Ask 1&1 how to do that, cause it's on their end :) Note: They MAY NOT allow this. I don't know.

  3. rward
    Member
    Posted 3 years ago #

    Hmm...not sure I understand what you are saying I should ask them to do. It allows me to create a DNS entry.

    Are you saying it won't let me create the correct type?

  4. No, we're saying it also needs to be added server side.

  5. rward
    Member
    Posted 3 years ago #

    Ok - well....I talked with them and they seemed to think that doing what I did should have worked and I needed to refer back to the WordPress documentation.

    Currently, I'm starting over with a clean install in a new DB. Ugg.

    Once FTP is finished, I will post my steps here. Maybe I did do something wrong.

    If all I need to do is to tell them they need to do something server side, could you please tell me specifically how to instruct them? They seemed to not think anything further would be necessary on their end.

  6. Is atlantainfocus.com the main domain on that account or an add on?

    Usually wildcard subdomains are set for the first, main, primary domain on a web account and the subsequent ones do not have it.

  7. rward
    Member
    Posted 3 years ago #

    It's a VPS. I have 30 domains on the site...does that make a difference?

  8. rward
    Member
    Posted 3 years ago #

    Server, not site. Sorry.

  9. rward
    Member
    Posted 3 years ago #

    Ok so I did a full reinstall of WP with a new database. I left the vhosts.conf file as it is outlined to do in the codex page.

    I left the wildcard subdomain DNS the way that I had it - *.atlantainfocus.com and canononical as atlantainfocus.com

    Then I added the

    'define('WP_ALLOW_MULTISITE', true);'

    Then I updated my permalinks, etc...straight down in order on the tutorial. The only thing I did not do was the part with preserving wildcard subdomains.

    I just don't know what else I can do...

    Any suggestions?

    To recap:

    I have a 1and1 VPS running Plesk. I use a MAC and Transmit for http://FTP...

    I do appreciate any help.

    Thank you,

    Ryan

  10. I left the vhosts.conf file as it is outlined to do in the codex page.

    I left the wildcard subdomain DNS the way that I had it - *.atlantainfocus.com and canononical as atlantainfocus.com

    There's two things needed for wildcard subdomains to work. DNS is only one of them

    Look in the httpd.conf files and the vhosts.conf files for the domain you're trying to use.

    Does it have a line like this?

    ServerAlias *.atlantainfocus.com

    If not, add it. then it will work.

  11. rward
    Member
    Posted 3 years ago #

    Ok - I actually got it working about 2 hours ago and had to run out and get my kids to school. I was going to post...

    Following the instructions here, http://codex.wordpress.org/Configuring_Wildcard_Subdomains_for_multi_site_under_Plesk_Control_Panel, did not get me everything I needed to know. For some people, I'm sure it was fine, but for someone like myself with limited knowledge, but willing to learn and able to follow instructions, I did not have enough information.

    So, if anyone else comes across this, here is a more detailed instruction for the part about creating a vhosts.conf file in the /conf folder.

    I did not create that file. Instead, I used the file that was already in the folder, httpd.include. Within that folder, the instructions say:

    Add a single line - ServerAlias *.yourdomain.com - to the start of the file.
    Do not add the <ServerName> or <VirtualHost> headers - just add the server alias command and wildcard domain name on a single line as shown above.

    That wasn't enough information. I needed to know where on a single line I needed to put it so here it is:
    Put that line of code inside of the code. For me, that was here:

    <VirtualHost 74.208.43.231:80>
    	ServerName   atlantainfocus.com:80
            ServerAlias *.atlantainfocus.com

    Now it's working perfectly!

    Thank you all for your help...

  12. FWIW, the PLESK directions are ... well, they're a good start, but because every host is a little different, there's always going to be a lot of individual work that you need to do. Which is why I said to talk to 1&1 who SHOULD be able to help you. If they don't, then they're not a good host, end of story. Basically, the directions are to get you started, not to do the whole job, because there's no way humanly possible we CAN give you the full directions. :/

  13. rward
    Member
    Posted 3 years ago #

    I hear you - and I tried. They were of no help...

    Fortunately, what I lack in information, I try to make up for with sheer luck and effort. Sometimes it gets me through like it did this time :)

  14. @rward - if you have a minute, it woudl be very handy fr the person after you, if you could go back to that codex page, login with the username & password you have for this forum, and update that page with more info so it's super clear. :)

    And that way you help the next person. :)

  15. rward
    Member
    Posted 3 years ago #

    I will do so tonight. It might actually help me make it a bit more clear for myself too...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.