Web Hosting Talk







View Full Version : How To: Ensim Subdomains?


phpjames
06-05-2002, 10:39 AM
I am looking for a how to on how to correctly/easily setup subdomains on an ensim box. Do NOT give me the link to the rackshack thread as that thing is way overused and not clear whatsoever. Again Dont give the rackshack thread on this. Anyone have a step by step to get this working? Thanks.

diederik
06-05-2002, 11:15 AM
Just create a new account like anything.yourdomain.com.
This will be a seperate account, and won't work under the 'main' domain name ( ie different login/pass ).

phpjames
06-05-2002, 11:21 AM
I suppose you can do it that way but I want to do it the right way with wildcards and domain.com/subdomain.domain.com folders.

cyansmoker
06-05-2002, 04:32 PM
James,
You can very well have two types of subdomains cohabitate on the same server.
We have some clients setup so that xxx.domain.com goes to domain.com/xxx and some others so that xxx.domain.com goes to domain.com/~xxx

However, with the latter setup, SSI aren't working by default.

You must create an apache.py file that contains the python procedure that will be used to generate the configuration file.
If you stick this file in some common place -the one described on RS forums I guess- you'll make the change available to all sites; if you place it in /home/virtual/sitenumber/info/custom then only this site will be affected.

Actually I could copy my apache.py files here but you'd see that it looks like RS' thread a lot. That's because there isn't 10 different ways of doing it.

I can explain to you what each line of this script does, though.

-Chris.

Everyday
06-05-2002, 05:22 PM
My question is why is this so difficult for ensim to add to the control panel? All the other panels have it.

phpjames
06-06-2002, 01:16 AM
Ya that is one thing I really dislike about Ensim is the difficulty it takes to create a simple subdomain. Also the lack of professional support or resources on their website. It is hard to find any answer or the answer you are looking for. Does anyone know of a tutorial listed for this? Thanks.

StarGate
06-06-2002, 04:15 AM
Originally posted by Everyday
My question is why is this so difficult for ensim to add to the control panel? All the other panels have it.

Nah, same problem in PLESK too

Chang Lee
06-06-2002, 08:50 AM
Originally posted by cyansmoker
James,

You can very well have two types of subdomains cohabitate on the same server.

We have some clients setup so that xxx.domain.com goes to domain.com/xxx

and some others so that xxx.domain.com goes to domain.com/~xxx

My question is: What is the difference between domain.com/xxx and domain.com/~xxx

phpjames
06-06-2002, 09:07 AM
.com/xxx ---- a folder

.com/~xxx --- a user

TMX
06-06-2002, 11:03 AM
Originally posted by phpjames
Again Dont give the rackshack thread on this. Anyone have a step by step to get this working? Thanks.

I've got your answer, but it came from the rackshack thread (credit to "Hunter"). You can stop reading now if you want... :)


In the directory
/usr/lib/python2.1/site-packages/vh3/custom/
Create a file called apache.py with the contents of the following file:


apache.py (http://tmxnet.com/apache_py.zip)


Save, and then restart the GUI.

Create a wildcard DNS record for each domain you wish to use subdomains on. To apply this to an already existing domain, simply click on the edit icon for the domain, and then click 'save'.

To set up the subdomain "foo.bar.com" for example, you would create the directory var/www/html/foo.bar.com under the bar.com domain filesystem. Domain content for "foo.bar.com" would then go in the "foo.bar.com" directory.


-Bob

Everyday
06-06-2002, 11:16 AM
lots of work for a sub domain. I just click two buttons and its made for me, not on the ensim servers we have though.

TMX
06-06-2002, 11:49 AM
Originally posted by Everyday
lots of work for a sub domain. I just click two buttons and its made for me, not on the ensim servers we have though.

It's really not so bad. Once the apache.py is installed, the only thing you'd have to do to enable subdomains in a newly-created account is create the wildcard dns entry through the control panel.

That said, count me in as another who wonders why Ensim doesn't just integrate the whole process into the CP and get it over with.

-Bob

Everyday
06-06-2002, 12:11 PM
I see where you are coming from but it just adds one more thing into the fray for the host to do. This is especially annoying with ensim when you have customers who just want to try out using subdomains. Then they have to contact you every few minutes to make changes.