I have some odd situation. I wan to make different DirectoryRoot for one domain.
example.com -> /dir1 www.example.com -> /dir1
*.example.com -> /dir2
I'm trying settings with NameVirtualHost and ServerAlias. Could you help?
|
I have some odd situation. I wan to make different DirectoryRoot for one domain. example.com -> /dir1 www.example.com -> /dir1 *.example.com -> /dir2 I'm trying settings with NameVirtualHost and ServerAlias. Could you help? | |||
|
feedback
|
The order is important - the 'www' vHost must precede the wildcard. See: http://stackoverflow.com/questions/758351/virtualhost-for-wildcard-subdomain-and-static-subdomain | |||||
feedback
|