how can I point a subdoman to a subdir - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: how can I point a subdoman to a subdir (/thread-7561.html) |
how can I point a subdoman to a subdir - stapow - 08-20-2009 10:46 PM In Default Configure that xxx.aaa.com maybe point to /aaa_com_root/xxx/htdocs. aaa.com point to /aaa_com_root/htdocs Can I point xxx.aaa.com to /aaa_com_root/htdocs/xxx where is no /htdocs in subdomain's docs. I just want subdomain point to main domains subdirs. Can I? RE: how can I point a subdoman to a subdir - joximu - 08-21-2009 08:53 AM maybe you can set another documentroot in the right file in /etc/apache2/ispcp/sub.domain.tld.conf ... Does this work? /J RE: how can I point a subdoman to a subdir - kilburn - 08-21-2009 04:01 PM You can't. The easiest solution is to point it to another folder, and after it's directory structure is created, just login though ssh, remove the subdomain's htdocs folder and create a symlink pointing to the main domain's htdocs folder. Done RE: how can I point a subdoman to a subdir - joximu - 08-21-2009 06:43 PM My version works for me, you also have to copy the Directory-Block...: I put this into the apache2/ispcp/sub1.domain2.tld.conf Code: DocumentRoot /var/www/virtual/domain2.tld/htdocs/sub1 This works.. /J |