ServerAlias in custom include file not working

jabowery

Registered
Mar 18, 2011
3
0
51
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?