Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: Paulsnet on April 19, 2007, 11:07:27 PM
-
I own paulsnet.org and i have "forum.paulsnet.org" and several other virtual domains going to different ibays.
My question is can i have "paulsnet.org" going to the "Primary site" and "www.paulsnet.org" going to a different ibay. i have tried this but both seem to go to the primary site.
Any help greatly appreciated,
Thanks,
Paul Sinclair.
-
I own paulsnet.org and i have "forum.paulsnet.org" and several other virtual domains going to different ibays.
My question is can i have "paulsnet.org" going to the "Primary site" and "www.paulsnet.org" going to a different ibay. i have tried this but both seem to go to the primary site.
Any help greatly appreciated,
Thanks,
Paul Sinclair.
I don't think so. I mean the Cname record typically includes something like *.Paulsnet.org or something and the IP address so that if you type anything.paulsnet.org it will go to your SME box, which then the SME directs you to the proper ibay. and if you have a virtual domain as paulsnet, then it will take you to whatever ibay you are pointing it to.
So basically SME domains are not www.??? but just paulsnet etc. and SME sorts it to your ibay so I'm not sure there is a way around that. Basically it is the same thing www.paulsnet.org and paulsnet.org are the same thing.
-
Here's a discussion about how to customize the content of "webmail.domain.com" - the principles should work the same for "www.domain.com":
http://forums.contribs.org/index.php?topic=31130.0
-
Here's a discussion about how to customize the content of "webmail.domain.com" - the principles should work the same for "www.domain.com":
http://forums.contribs.org/index.php?topic=31130.0
I think that is much different then just trying to make www.paulnet.org point to a different site then paulnet.org
If you noticed the mention of the poster above referncing forum.paulnet.org, but if read the post they want to make www.paulnet.org go to a different place or ibay then just paulnet.org. If I'm reading the post correctly.
I believe in the case you linked to, perhaps a simple forwarding address could solve the problem of the virtual domain going to a different website.Since basically the domain.com is essentially different when adding the webmail. in front.However with www.paulnet.org and paulnet.org essentially the domain is the same and not sure how you make the same exact domain go to a different locations. I mean it's like www.domain.com or http://www.domain.com basically the same thing or at least I think this is correct.
But I know very little so perhaps it's possible but I can't find anything about doing this on the web.
Well, happy hacking.
-
You MAY be able to use your domain registration to point www.mydomain.com to a diferent address that mydomain.com
I know on my own registrar ( easydns.com ) , I am able to do it.
However, on the LOCAL network, I don't think that will help
-
You can eventually get this to work just a matter of how much time/money your willing to spend.
SME has some names already reserved to make everything easier for everyone. You can see these in the "Hostnames and addresses" panel. They include:
-ftp
-<servername>
-mail
-proxy
-wpad
-www
As a result, all of these will automatically go to the PRIMARY ibay. This is what you are experiencing.
To get any of these to point to a different ibay, you'll have to make 2 changes.
First, you'll have to add the name to the server via custom-template since this is a customized change to only this server.
vi /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/80subdomain
<VirtualHost 0.0.0.0:80>
ServerName www.paulsnet.org
DocumentRoot /home/e-smith/files/ibays/ibayname/html
Alias /ibayname /home/e-smith/files/ibays/ibayname/html
</VirtualHost>
Secondly, you have to delete the original WWW name from the following file:
etc/httpd/conf/httpd.conf
which gets its info from the HOSTS db. You can set an improper value to get the result you want:
db hosts setprop www.paulsnet.org HostType ibayname
Then signal the event:
signal-event host-modify
To get it back to PRIMARY, you'll have to set the db key value back to Self:
db hosts setprop www.paulsnet.org HostType Self
and signal the event