var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Setting up subdomains to point to a folder through DNS?
Is it possible to point user1.domain.com to www.domain.com/~user1/ through a DNS record?
Kind of like how some hosts do multiple-domain hosting by pointing seconddomain.com to firstdomain.com/seconddomain/
Can someone tell me how to do this?
This is not done through DNS, this is done through the web server configuration. In most cases this is done via the httpd.conf file if you are using apache.
aww, shucks. Would this work though? (for someone who has access to DNS records but not web server config)
user1.domain.com IN CNAME www.domain.com/~user1/
Thanks for the quick reply.
No, it wouldn't work... sorry.
No. Because you are trying to tell DNS to resolve user1.domain.com to domain.com/~user1/ but domain.com/~user1/ does not resolve to an IP address...only domain.com does.
Even so, it would only provide the ip address of domain.com. It is the apache configuration that make domain.com go to directory a and user1.domain.com go to directory b.
Thanks for the replies! Now I know it how it works.