Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to make automatic subdomaine

Discussion in 'General Discussion' started by naruto kun, Mar 16, 2008.

  1. naruto kun

    naruto kun Registered

    Joined:
    Mar 15, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    Hello,
    First, sorry for my english (I'm french :p)

    I want to make a automatic redirection with a subdomaines...

    http://???.myweb.com -> http://myweb.com/subdoms/???

    I've try with the httpd.conf file but it doesnt work :(

    I've write that in:

    Code:
    <VirtualHost MY-IP:80>
        ServerName *.myweb.com
        ServerAlias www.*.myweb.com
        DocumentRoot /home/myweb/public_html/subdoms/%1
        ServerAdmin support@myweb.com
    	UseCanonicalName Off
        ## User myweb # Needed for Cpanel::ApacheConf
        <IfModule mod_suphp.c>
            suPHP_UserGroup myweb myweb
        </IfModule>
        <IfModule !mod_disable_suexec.c>
            SuexecUserGroup myweb myweb
        </IfModule>
        CustomLog /usr/local/apache/domlogs/%1.myweb.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
        CustomLog /usr/local/apache/domlogs/%1.myweb.com combined
    </VirtualHost>
    I've try to add manualy a dns in WHM:
    * IN A MY-IP
    www.* IN A MY-IP
    But the server dont work whith that (187 messages of error this Night)

    What I does to do for make correcly that?

    Thanks for all the answer...
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice