PDA

View Full Version : Hosting with subdomain and domain



Avenueduweb
06-08-2004, 04:41 PM
Hello,

I have the apostle's problem (http://www.directadmin.com/forum/showthread.php?s=&threadid=3418) , but it is more complicated.

I want to host my users with my subdomain user.mydomain.com but i want to host my users with their domains.

Ex : user : test
URL of user is : http://test.mydomain.com
and : http://www.testdomain.com

It is possibly to do that automatically with DA ? Thanks. Bye.

Avenue Du Web

DirectAdmin Support
06-15-2004, 10:16 AM
Hello,

Yes, it's possible to setup, if you are comfortable with a bit of bash scripting and apache VirtualHosts.

You'd want to take a look at /usr/local/directadmin/scripts/custom/README to see the list of script you can create. You'd want to use the user_create_post.sh script (then user_delete_post.sh for user deletion)

In that script, you'd want to create an httpd.conf file somewhere.. let's say /etc/httpd/conf/users/username.httpd.conf, and in that file you'd create the VirtualHost for user.mydomain.com with any path you want.

When the user is removed, just delete the file. You'll need to add something like "Include /etc/httpd/conf/users/*" to the main /etc/httpd/conf/httpd.conf so that all user files would be loaded.

John

Avenueduweb
06-25-2004, 03:14 PM
Hello,

I was watching that and it's very complicated for me... But i'm not understand why you don't propose that in DA because i've got users programming their sites like that :

<img src="../images/test.jpg" />

And when i propose a test for new user, their links and images are broken.

Why don't you propose that in options in DA ? It will be very good. Bye.