Forum Moderators: phranque
I have, for example, a domain www.domain.com.
I am serving dynamic content through mod_perl application.
Now I need a second domain like newsite.domain.com.
The only difference between the two is the HTML template loading: I have a set of templates for www.domain.com and a different set for newsite.domain.com. The underlying functionality is the same.
When the user comes to www.domain.com I want him all the time to see www.domain.com/some_uri as the address, and when the different user comes to browse newsite.domain.com she must have that address all the time in address bar.
I would like to avoid using VirtualHost directives and I can in my mod_perl application differentiate between the two domains, but what config I must have for apache in order for this to work properly?
Is ServerAlias enough?
Sth like ServerAlias www.domain.com newsite.domain.com?
Now the newsite.domain.com seems to work but we cannot get the desired output.
All we got is: 'File does not exist: /htdocs', although no one is requesting htdocs.