httpd.conf customization for SUB=www

Sygmoral

Verified User
Joined
Aug 15, 2012
Messages
63
example.com has a www subdomain, which I did in fact create in DirectAdmin. So it's got a www subfolder, and that works fine.

Now I want to point www.example.net to that same subdomain. So I add this to example.com's "httpd.conf customization":

Code:
|*if !SUB|
ServerAlias example.net
|*endif|
|*if SUB=www|
ServerAlias www.example.net
|*endif|

That doesn't work because both end up in the section for example.com, while nothing changes in the section for www.example.com. Is this a bug? How else am I supposed to target that subdomain?
 
Back
Top