The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Subdomain doesn't work

Discussion in 'General Discussion' started by Spyros, Dec 5, 2014.

  1. Spyros

    Spyros Member

    Joined:
    Jul 1, 2014
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Athens, Greece, Greece
    cPanel Access Level:
    Root Administrator
    Hi,


    I have problem with one subdomain on our server. the subdomain is support.domain.gr. and give back cgi error.

    if i use www.support.domain.gr us url its working....( no idea why)

    my dig is:

    Code:
    ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6 <<>> support.domain.gr
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32277
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;support.domain.gr.	IN	A
    
    ;; ANSWER SECTION:
    support.domain.gr. 14400	IN	A	148.251.121.75
    
    ;; AUTHORITY SECTION:
    domain.gr.	18100	IN	NS	ns1.domain.info.
    domain.gr.	18100	IN	NS	ns2.domain.info.
    
    ;; Query time: 61 msec
    ;; SERVER: 213.133.xx.xx#53(213.133.xx.x)
    ;; WHEN: Fri Dec  5 13:08:33 2014
    ;; MSG SIZE  rcvd: 108
    
    
    
    Any ideas?

    Regards,
    Savvanis Spyros
     
    #1 Spyros, Dec 5, 2014
    Last edited: Dec 5, 2014
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you elaborate on the specific error message you are encountering? Do you notice any output to /usr/local/apache/logs/error_log when this happens?

    Thank you.
     
  3. Spyros

    Spyros Member

    Joined:
    Jul 1, 2014
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Athens, Greece, Greece
    cPanel Access Level:
    Root Administrator
    Hi Michael,


    In my log file for this subdomain its say:

    [Mon Dec 08 12:03:13 2014] [error] [client 62.38.110.63] File does not exist: /home/wideserv/public_html/support/support
    [Mon Dec 08 12:03:13 2014] [error] [client 62.38.110.63] File does not exist: /home/wideserv/public_html/support/404.shtml

    But the problem is that the documents root for this subdomain is /home/wideserv/public_html/support/ i checked it after i shaw the error.

    Regards,
    Savvanis Spyros
    spyros@wideservices.gr
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Do you have any .htaccess files in the public_html directory that could be redirecting the subdomain to an alternate location/URL?

    Thank you.
     
  5. 24x7ss

    24x7ss Well-Known Member

    Joined:
    Sep 30, 2014
    Messages:
    271
    Likes Received:
    16
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Check the DNS of the domain. I have checked the DNS of the domain is having error first of all I will suggest you to resolve the main domain DNS issue. Currently your maine domain is not pointing anywhere because of that your subdomain is also not working.

    Check your NS as your NS are not responding.
    ====================
    ERROR: One or more of your nameservers did not respond:
    The ones that did not respond are:

    ==================
    WWW A Record ERROR: I could not get any A records for www.domain.gr!

    (I only do a cache request, if you recently added a WWW A record, it might not show up here.)
    =================
     
  6. Spyros

    Spyros Member

    Joined:
    Jul 1, 2014
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Athens, Greece, Greece
    cPanel Access Level:
    Root Administrator
    Hi,

    Michael, a bad .htaccess destroy my sub.


    Thx A lot!
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page