subdomain.domain.com >> /home/user/otherdir/test ???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • piku
    Senior Member
    • Mar 2004
    • 153

    #1

    subdomain.domain.com >> /home/user/otherdir/test ???

    goal: subdomain.domain.com, which is actually located in a diff. subdir of /root
    technology: cpanel, .htaccess, whatever works.

    i'm still having problems trying to do this. i currently setup my subdomains in cpanel (i.e. test.domain.com). but it automatically creates the directory location as /home/user/test. just wondering if its possible/feasible to make that subdomain's directory located somewhere else (i.e. /home/user/subdir/test, or /home/user/test_project); and also have the ability to re-configure it in the future (persay via .htaccess).

    what steps do i take in order to achieve this great feat? TIA.
    my signature was deleted. i miss my signature-filled-with-helpful-dathorn-links *sniff*sniff*
  • sdjl
    Senior Member
    • Mar 2004
    • 502

    #2
    Sounds to me like a job for httpd.conf, which i doubt you'll have access to here!
    You'd need to edit the Virtual Hosts configuration for the subdomain. You might be able to request support do it for you.
    Worth a try.

    David
    -----
    Do you fear the obsolescence of the metanarrative apparatus of legitimation?

    Comment

    • piku
      Senior Member
      • Mar 2004
      • 153

      #3
      yes, httpd.conf wouldn't be a solution. prolly by .htaccess... thats why i'm posting here to get users' feedback.


      Originally posted by sdjl
      Sounds to me like a job for httpd.conf, which i doubt you'll have access to here!
      You'd need to edit the Virtual Hosts configuration for the subdomain. You might be able to request support do it for you.
      Worth a try.

      David
      my signature was deleted. i miss my signature-filled-with-helpful-dathorn-links *sniff*sniff*

      Comment

      • sdjl
        Senior Member
        • Mar 2004
        • 502

        #4
        I don't think its possible to add a <virtualhost> contained to a .htaccess file...
        Support should be able to change the subdomains location for you though i would imagine.

        David
        -----
        Do you fear the obsolescence of the metanarrative apparatus of legitimation?

        Comment

        • Pedja
          Senior Member
          • Mar 2004
          • 329

          #5
          Originally posted by piku
          as /home/user/test. just wondering if its possible/feasible to make that subdomain's directory located somewhere else (i.e. /home/user/subdir/test, or /home/user/test_project); and also have the ability to re-configure it in the future (persay via .htaccess).
          Never tried, but you always may set subdommain subdir.yourdomain.com and then create subdomain test under it. It will be then located in /home/user/subdir/test but accessible as http://test.subdir.yourdomain.com.

          Then you park test.yourdomain.com on top of test.subdir.yourdomain.com

          However I do not know why would you go through all that...

          Comment

          Working...