The MU forums have moved to WordPress.org

How setup Wildcard subdomains (14 posts)

  1. lindawww
    Member
    Posted 18 years ago #

    Do you can hep me to setup wildcarded subdomains?(From the host cpanel)

    The Registerfly user cpanel, display me a screen with a grill:
    Host Name -Pref- Record Type -Adress

    I type:
    -Host name: *.my domain.net

    -Pref: (I dont know, I typed 10 or IN. but I dont know what I must type here)

    -Record type: I typed Cname or Adress)

    -Adress: I typed my Ip, 00.00.00.000
    The system display me, ever, some like:
    *.mydomain.net is not a valid host

    PLease, the question is
    What I must type on each field to wildcard my subdomains?

  2. andrea_r
    Moderator
    Posted 18 years ago #

    AFAIK, you can't do it from Cpanel. I had to ask my host to do it for me.

  3. lindawww
    Member
    Posted 18 years ago #

    Thanks!

    But I do it in the past from mydomain.com for a redirection service (same subdomains question).

    I think, the host enable the "apache" part of work, but several host providers allow you to enable the dns settings.

  4. trickmandan
    Member
    Posted 18 years ago #

    I am having the same issue. I can install and run the directory method, but not sub domain method.
    I just get a not found for my new sub domain blogs??
    My vhost file looks like this:

    ServerAlias *.mysite.com
    <Directory /path/to/my/home/directory>
    AllowOverride FileInfo
    </Directory>

    My DNS looks like this:
    *.mysite.com. A ipnum.ipnum.ipnum.ipnum

    I have been all over the web for the last several days.
    Do you have any suggestions?
    Do you have any stepped tests?

    trickmandan
    http://BizBlogPro.com/blog

    I am using build 2006-03-29 in the Plesk Environment for Apache Linix

  5. trickmandan
    Member
    Posted 18 years ago #

    #fixed
    Configuration for Plesk in Apache Server on a Linix Box
    I have been working on this for days and found a solution that worked.
    *tear of joy*

    add DNS entry: *.mysite.com. CNAME mysite.com.
    (you should have access to DNS entries in your Plesk interface)
    If you don't have access, contact your server administrator.

    log into box with Putty
    PuTTY: A Free Telnet/SSH Client
    Find Putty Telnet/SSH Client

    enter: su
    + password again

    change directory to /
    change directory to /home/httpd/vhosts/mysite.com/conf

    Find How to use VI Editor

    --- enter: vi httpd.include
    1. find the <VirtualHost tag. (the area where you see "ServerName"
    1a. add this line in the tag: ServerAlias *.mysite.com

    2. find the <Directory tag that points to your document root
    2a. add this line just before the tag end: AllowOverride FileInfo

    Finish by restarting your server. You can do this in the Plesk from the System/Server menu or Host Manager

    Note: Plesk documents state that you can use vhost.conf, but I had no luck with this.
    How to configure MU in Plesk

    Thanks for all the help here,
    trickmandan
    BizBlogPro
    http://BizBlogPro.com/blog

  6. neurone
    Member
    Posted 18 years ago #

    No way to configure it in Cpannel, except if your admin leave you on cpanel a shell.
    In this case, do as trickmandan propose you, if not ask your admin to do it for you.

  7. lindawww
    Member
    Posted 18 years ago #

    Well, great help, thanks.

    Allthoug, in this case, I can do just an easy (well... now, after some days working on it!!) way.

    I reach the goal adding 2 entries to my dns setting from my DOMAIN service cpanel (and no from my HOST cpanel,sorry)

    >>First entry:
    -Host name: mysite.net
    (Without www)

    -Pref: 10

    -Record type: Adress

    -Adress: I typed my Ip, 00.00.00.000

    _______________________________________

    >>Second entry (to wildcard the subdomains):

    -Host name: *
    (I typed just a "*" on the field)

    -Pref: 10

    -Record type: Adress

    -Adress: I typed my Ip, 00.00.00.000

    And Done! subdomains wildcarded (after helf week!)

    (domain provider: registerfly)

  8. trickmandan
    Member
    Posted 18 years ago #

    bambam4479 had this to add:

    You should not make any changes to httpd.include because they won't stick when upgrading Plesk. Your best bet is to just create a vhost.conf and vhost.ssl.conf and enter the information here.
    http://mu.wordpress.org/forums/topic.php?id=539&replies=4#post-2848

    Then reconfigure the domain in Plesk by calling "$PRODUCT_ROOT_D/admin/bin/websrvmng -a -v" where $PRODUCT_ROOT_D is where Plesk is located on the server, in my case its /usr/local/psa so complete path is "/usr/local/psa/admin/bin/websrvmng -a -v". I'd then restart Apache just to make sure it gets restarted.

    Also, remember, if you just added the wildcard to your DNS, it might take up to 48 hours to propogate around the 'net so just be patient

    ===============================

    trickmandan
    BizBlogPro
    http://BizBlogPro.com

  9. dbasulto
    Member
    Posted 18 years ago #

    this will ONLY work by having a unique ip address? most hosts dont give you a unique ip address, so this wont work unless you pay for the privilege of a unique ip?

  10. naftilos
    Member
    Posted 17 years ago #

    The problem is that i looked in the directory home/vhosts/may domain/conf and there is no vhost.conf !
    There is only a httpd.include

    Any ideas?

  11. drmike
    Member
    Posted 17 years ago #

    'find vhost.conf' from a command prompt would probably work.

  12. naftilos
    Member
    Posted 17 years ago #

    i tried that and i realised that there are no vhost.conf files any where , i use a vps system with plesk. I found some DNS info in other files but not vhost.conf files

  13. bakoo
    Member
    Posted 17 years ago #

    Is there anyway do to this with Cpanel/WHM rather than Plesk as WHM has the option for DNS and MX? Thanks

  14. drmike
    Member
    Posted 17 years ago #

    Not sure why you feel the need to double post but I answered you in the other thread.

About this Topic