maclonghorn
New Pleskian
I'm trying to create a subdomain that points to the primary domain so that the subdomain is essentially an alias for www. So then these two are the same:
www.mydomain.com
test.mydomain.com
I think I would create a vhost file in the conf dir of my primary domain dir but I'm not sure. I tried this already and it worked for awhile, but then I started getting errors when Apache would try to restart, and thus would not start at all.
What is the format/requirements for a vhost file? I basically copied the httpd.include file to vhost file and changed the ServerAlias directive.
1. Can I setup the domains in this way?
2. How would I do this? (I don't want to create a subdomain in Plesk b/c that would be different code)
Thanks.
www.mydomain.com
test.mydomain.com
I think I would create a vhost file in the conf dir of my primary domain dir but I'm not sure. I tried this already and it worked for awhile, but then I started getting errors when Apache would try to restart, and thus would not start at all.
What is the format/requirements for a vhost file? I basically copied the httpd.include file to vhost file and changed the ServerAlias directive.
1. Can I setup the domains in this way?
2. How would I do this? (I don't want to create a subdomain in Plesk b/c that would be different code)
Thanks.