Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    2

    Default Virtual Subdomains and Wildcards

    People,

    I am searching and searching for over 7 hours now to get my website working on cPanel.

    I have a website which was running on Plesk 7.5 for several years. Now I sold the website and the buyer wants me to install it on his hosting server running:

    WHM 11.2.0 cPanel 11.10.0-S16448 + CENTOS Enterprise 5 i686 - WHM X v3.1.0

    What I did was:
    1. Uploaded all files using FTP
    2. Imported the complete database and the front page is working.

    To get the virtual subdomains working I did:
    3. Add a A record called * linked to the IP of the server/website
    4. opened /usr/local/apache/conf/httpd.conf and searched for:

    Code:
    <VirtualHost 85.17.177.209>
    ServerAlias www.geilestart.com
    ServerAdmin webmaster@geilestart.com
    DocumentRoot /home/geilesta/public_html
    ServerName geilestart.com
    
    User geilesta
    Group geilesta
    BytesLog /usr/local/apache/domlogs/geilestart.com-bytes_log
    CustomLog /usr/local/apache/domlogs/geilestart.com combined
    ScriptAlias /cgi-bin/ /home/geilesta/public_html/cgi-bin/
    </VirtualHost>
    I've changed this to:
    Code:
    <VirtualHost 85.17.177.209>
    ServerAlias www.geilestart.com *.geilestart.com
    ServerAdmin webmaster@geilestart.com
    DocumentRoot /home/geilesta/public_html
    ServerName geilestart.com
    
    User geilesta
    Group geilesta
    BytesLog /usr/local/apache/domlogs/geilestart.com-bytes_log
    CustomLog /usr/local/apache/domlogs/geilestart.com combined
    ScriptAlias /cgi-bin/ /home/geilesta/public_html/cgi-bin/
    </VirtualHost>
    After this action:
    5. service httpd restart

    I can see the website's frontpage on www.geilestart.com but when I click a subdomain like http://uw.geilestart.com/ I see:

    Great Success !
    Apache is working on your cPanel® and WHM™ Server


    Anyone any idea what is wrong?

    Any help will be much appreciated!

    Best regards,

    w3Media

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Should be:


    Code:
    <VirtualHost 85.17.177.209>
    ServerAlias www.geilestart.com
    ServerAdmin webmaster@geilestart.com
    DocumentRoot /home/geilesta/public_html
    ServerName geilestart.com
    
    User geilesta
    Group geilesta
    BytesLog /usr/local/apache/domlogs/geilestart.com-bytes_log
    CustomLog /usr/local/apache/domlogs/geilestart.com combined
    ScriptAlias /cgi-bin/ /home/geilesta/public_html/cgi-bin/
    </VirtualHost>
    
    
    <VirtualHost 85.17.177.209>
    ServerAlias www.uw.geilestart.com
    ServerAdmin webmaster@geilestart.com
    DocumentRoot /home/geilesta/public_html/uw
    ServerName geilestart.com
    
    User geilesta
    Group geilesta
    BytesLog /usr/local/apache/domlogs/uw.geilestart.com-bytes_log
    CustomLog /usr/local/apache/domlogs/geilestart.com combined
    ScriptAlias /cgi-bin/ /home/geilesta/public_html/uw/cgi-bin/
    </VirtualHost>
    Creating a subdomain via the accounts cPanel should have added these correctly.
    Any reason you choose to go the manual route? Just curious.

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    2

    Default

    Because the website is a so called 'Startpage script' where users can create their own subdomain pages realtime

  4. #4
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Post

    Looks like porn to me.

  5. #5
    Member Danny_T's Avatar
    Join Date
    Jul 2005
    Location
    Netherlands
    Posts
    181

    Default

    You have also to put a * record in your DNS zone to have this working.
    Net Tuning (Dutch)
    Official cPGS GameServer Mirror
    *New* Virtual Private Server hosting

Similar Threads & Tags
Similar threads

  1. virtual subdomains
    By bakhanbeigi in forum New User Questions
    Replies: 6
    Last Post: 06-28-2007, 04:06 PM
  2. Replies: 2
    Last Post: 04-05-2006, 10:14 AM
  3. Boxtrapper Wildcards
    By annualhost in forum cPanel Developers
    Replies: 3
    Last Post: 11-30-2004, 11:11 AM
  4. wildcards problem
    By sa18 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-20-2004, 10:31 PM
  5. no wildcards in DNS
    By baidarkabob in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 04-22-2003, 06:17 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube