creating records on the fly issue

Using a single web hosting account to host multiple sites

creating records on the fly issue

Postby fris » Tue Mar 10, 2009 10:01 pm

im currently using this

so if i have domain1.com directory in /home/chris/web

ex /home/chris/web/domain1.com
/home/chris/web/domain2.com

www.domain1.com and domain1.com will work

etc

but if i have say demo.domain1.com

it wont, im trying to get sub domains working as well.


<VirtualHost ipaddress>
UseCanonicalName Off
ServerAlias www.*
DocumentRoot /home/chris/web/
VirtualDocumentRoot /home/chris/web/%2+

<Directory "">
Options ALL -Indexes
AllowOverride ALL
</Directory>

</VirtualHost>

<VirtualHost ipaddress>
UseCanonicalName Off
ServerAlias *
DocumentRoot /home/chris/web/
VirtualDocumentRoot /home/chris/web/%0

<Directory "">
Options ALL -Indexes
AllowOverride ALL
</Directory>

</VirtualHost>
fris
 
Posts: 52
Joined: Thu Feb 23, 2006 12:05 pm

Postby richardk » Wed Mar 11, 2009 10:33 am

Where is demo.example.com supposed to go?
Does demo.example.com have the appropriate DNS records?
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 3 guests

cron