Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: spoooky on June 28, 2007, 09:36:10 PM
-
I have searched on this forum, but still don't know how to do what I want.
at this moment i have several websites hosted on my windows box.
They are hosted by the same server, but have different hostnames.
currently:
mail.domain1.nl currently in the /mail folder
blog.domain1.nl currently in the /blog folder
www.domain2.com in the /domain2 folder
i want to create these virtual hosts in SME 7, but still don't know how....
-
Next time don't skip the wiki. Read it.
Try with this http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter13#Domains and this http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter14
-
I understand the part about creating virtual domains...
And I also understand the part about the i-bays, but the you create this url:
www.tofu-dog.com/mgabriel , and i want this:
mgabriel.tofu-dog.com/ , how do I do that?
-
Next time don't skip the wiki. Read it.
http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter13#Hostnames_and_addresses
-
contrary to what you think, I have not skipped the wiki...
I have read the sections you mention (before i came on the forum).
But when i combine the things I still have a question:
define the domains
make i-bays
define hostnames
but i can't find where i can define which hostname is on which i-bay
-
spoooky
> i can't find where i can define which hostname is on which i-bay
Change the order
1) make i-bays
2) define the domains & point each domain at a different ibay, select Resolve locally
3) define hostnames, add to existing domain
Depending how many hostnames you want to have for each domain, you may need this tweak as well
http://forums.contribs.org/index.php?topic=37583.0
To add a cname record I do this
Create a Customer template folder
mkdir -p /etc/e-smith/templates-custom/var/service/tinydns/root/data/
then edit the file
/etc/e-smith/templates-custom/var/service/tinydns/root/data/62Cnames
Add my cname data e.g.
# CName Records for domains
# Note these are maintained in the custom templates
Cservername.domain.tld:otherserver.otherdomain.tld
# End CNames
signal-event host-modify
svc -t /service/dnscache
-
then edit the file
/etc/e-smith/templates-custom/var/service/tinydns/root/data/62Cnames
this file does not exist... No problem to create one... but don't know the format of the fil (what text has to be in it)
can someone post an example?
-
-custom means it is a site specific file, it won't exist
I guess the format would be as ray wrote
-
If i understand correctly, if i want my hosts to be somehost.somedomain.nl an anotherhost.somedomain.nl and the sites are in: /somehost and /anotherhost is should be like this:
# CName Records for domains
# Note these are maintained in the custom templates
somehost.somedomain.nl:www.somedomain.nl/somehost
anotherhost.somedomain.nl:www.somedomain.nl/anotherhost
# End CNames