Hello Dan!


>
>Is there a nice way to send a file to the browser that is not in the apache
>htdoc directory tree?  ie I want to send a file test.doc to the browser
from
>/tmp directory the same as it would happen if I had a link to
htmldir/test.doc.


You can make the Alias for directory tmp (in the httpd.conf):
Alias /tmp/ "/tmp"
Then you can describe the directory /tmp with something like
<Directory /tmp>
    # this to allow user to get directory list
    Options Indexes
</Directory>

After this client will gain access to ALL files in the /tmp directory.
Probably, this
is not desired.  You can give access to specified files in the /tmp
directory. For
instance
<Directory "/tmp">
    Order allow,deny
    Deny from all
    <Files test.doc>
        Order allow,deny
        Allow from all
    </Files>
</Directory>
Alias /tmp/ "/tmp/"

I suppose you want to use servlet to output file. It may be quite simple or
rather
complicated depending on your tasks :) If something is still unclear, don't
hesitate
to ask.

- Victor







------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:       [EMAIL PROTECTED]

Reply via email to