Sub Domains

OptimusIRC

Verified User
Joined
Jun 16, 2004
Messages
10
Is there a way to make like a subdomain like support.mydomain.com go to like /home/admin/public_html/cgi-bin/somthen.cgi


Or even like Support.mydomain.com to go http://domain.com/cgi-bin/somthen.cgi...

of if it cant be done with this control panel can someone tell me how to do it manually?

Thanks,
Optimus
 
Hello,

Create the sub-domain "support.mydomain.com"

Login to SSH, run these commands:

Code:
rm -fr ~/domains/mydomain.com/public_html/support
Code:
cd ~/domains/mydomain.com/public_html
Code:
ln -s support /home/admin/public_html/cgi-bin
Code:
echo 'DocumentIndex somthen.cgi' > /home/admin/public_html/cgi-bin/.htaccess
That should do it :)

Phi1.
 
Hmm

Is there a place to talk to you ? Aim , Yahoo, Irc, msn, icq? I have a couple questions
 
Not working

That doesnt work.. Is there a way to do it out of the httpd.conf thats for the admin user?
 
Hmm

Does anyone know how to do this and can pm me and maybe login to my server and help me with one of the subdomains deals so I can do the rest.

Optimus
 
Can't you just do this simply by using a redirection script. Or Redirect from the User Panel?
 
maybe

maybe but id rather do it the hard and more complicated way :P
its more pro looking
 
Back
Top