Serving files from another partition.

Discussion in 'Server Operation' started by dlwiggers, Apr 23, 2009.

  1. dlwiggers

    dlwiggers New Member

    I have to serve files from somewhere besides /var or move /var to a larger space. I started with a simple
    <a href="/blackpublic/AEISServing">ServeTest</a> in the index
    and got "404 Error - File not found!"

    Can I change the document root in the .conf?

    Lee
     
  2. rdv25772

    rdv25772 New Member

    This <a href> will link to "http://your-server/blackpublic/AEISServing" and not as you hoped to do. It is a HTML-code and has nothing to do with linking to another partition.

    You might create a symbolic link in the root directory of your web site to the directory you want to share. This can create a security issue.

    I hope anybody else can help too.
     
  3. dlwiggers

    dlwiggers New Member

    Why not just serve from another directory?

    Can I change the document root in the .conf?

    TIA

    Lee
     
  4. tebokkel

    tebokkel New Member

    Of course. As long as you also move/copy the existing files to the new location. Watch it if you use a program like ISPConfig to manage your Apache-settings; it should be handled there, not directly in the Apache-config..

    Paul
     

Share This Page