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.

ServerAlias in custom include file not working

Discussion in 'General Discussion' started by jabowery, Oct 5, 2011.

  1. jabowery

    jabowery Registered

    Joined:
    Mar 18, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I've got a subdomain of one user that I want to be a ServerAlias of another user's subdomain. For example,

    sdn.user1.com

    does not have a VirtualHost entry in http.conf

    but:

    sdn.user2.com

    does.

    I have placed the directive:

    ServerAlias sdn.user1.com

    in a file:

    conf/userdata/std/2/user2/sdn.user2.com/sdn.user1.com.conf

    After restarting Apache, when accessing:

    http://sdn.user1.com

    It just redirects me to:

    http://sdn.user1.com/cgi-sys/defaultwebpage.cgi

    which is a cpanel default page for nonexistent domains.

    Why?
     
Loading...

Share This Page