On Thu, 16 Jan 2003, Chandran P wrote: > ... I was looking different solutions to serve the documents serving > through file system and NOT through app server. We have PDFs with 12MB > and I do not want to server through app server since it reduce the > performance. On top I could try by encryption and decryption but there > should be some other simple way to do this.
You could put the PDFs into a different directory for each user and then use basic HTTP authentication to allow access to each directory. See http://docs.sun.com/source/816-5682-10/esaccess.htm#1014031 for details on setting that up. Another solution would be to just use a CGI program to prompt for a username and password, and then present a directory index or serve the appropriate file based upon the user who authenticated. Be sure to put your PDF files outside of your document root. Use your CGI to read and serve the file rather than redirecting. You can save your usernames, passwords, and corresponding filenames in a CSV file or database. Perl makes this sort of stuff really easy. You could also use any number of Perl modules to integrate into your existing authentication mechanism (LDAP, NT domain, etc.). - .\\ -- http://cms-list.org/ more signal, less noise.