SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: htdocs

  1. #1
    SitePoint Addict
    Join Date
    Sep 2001
    Location
    UK
    Posts
    303
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    htdocs

    I am running apache 1.3 on my home machine. Is it possible to have more than one /htdocs/ ?

    I want to be able to share a folder thats on a different drive than /htdocs/, it is not possible for me to move the folder due to lack of space.

    Thanks

    Azaar

  2. #2
    ko pročita magarac :) boccio's Avatar
    Join Date
    Oct 2003
    Location
    belgrade
    Posts
    354
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why don't you make junction point from /htdocs/ to another drive...then folder on another drive (or entire drive) can be a sub folder on /htdocs.
    Is your apache running on windows or linux?
    Vivvo CMS - Web publishing at your fingertips
    Mile voli disko, a ja belo kolumbijsko

  3. #3
    SitePoint Addict
    Join Date
    Sep 2001
    Location
    UK
    Posts
    303
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im running win 2k, i dont know what a junction point is..

  4. #4
    ko pročita magarac :) boccio's Avatar
    Join Date
    Oct 2003
    Location
    belgrade
    Posts
    354
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well, it's a concept derived from linux(unix), where you can, for example, mount physical or logical drives an see them as folders (inside other folders). you can have, let's say, folder c:\test . inside 'test' you can have mounted folder /subtest, which is actually some drive/folder physically located on other drive, but you see it as 'ordinary' folder inside /test/.

    If you lack of free space, junction points are the easiest way to 'expand' your disk space...

    since you have win2k, try Link Magic 1.0, www.rekenwonder.com (it's freeware)

    not sure, but I think junction points can work only on ntfs volumes...
    Vivvo CMS - Web publishing at your fingertips
    Mile voli disko, a ja belo kolumbijsko

  5. #5
    SitePoint Addict
    Join Date
    Sep 2001
    Location
    UK
    Posts
    303
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cool, thats a great help, thanks

    system is on ntfs anyway so no worries there

  6. #6
    FreeBSD The Power to Serve silver trophy pippo's Avatar
    Join Date
    Jul 2001
    Location
    Italy
    Posts
    4,514
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use the Alias directive within your httpd.conf:

    Alias /folder/ d:/path/to/another/drive/

    so asking for www.example.net/folder/file.php
    apache will serve files from d:/path/to/another/drive/file.php
    and not from your current document root

    remember to set ``allow permissions'' for d:/path/to/another/drive/


    Mr Andrea
    Former Hosting Team Advisor
    Former Advisor of '03


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •