>> What is the reason why Jmol cannot read >> the /tmp/test.pdb file (started with the >> command "jmolApplet(500, "load /tmp/test.pdb") ")? > > I don't know anything about Tomcat, but for me it looks like the > problem is only related to the Apache server.
Correct. > Generally the Apache server provides access through the WWW only > starting at a directory called 'DocumentRoot', which is set in the > Apache configuration. This is done to prevent that the whole file > system of the server is exposed to the whole world. > > It looks as if your 'tmp' directory is not below the 'DocumentRoot' > directory. Correct > In any case the file can only be obtained by the client from the server > through an URL, because the client computer is not attached directly to > the server computer. So if you just specify '/tmp/test.pdb' this > actually is 'http:://server_name/tmp/test.pdb'. Internally at the > server this is 'DocumentRoot/tmp/test.pdb'. Correct > Using Apache rewrite rules is only one possibility to make it a valid URL. > > The easiest solution would be just to move the 'tmp' directory into the > 'DocumentRoot' directory. Correct > Another solution would be to create a symbolic link to the 'tmp' > directory inside the 'DocumentRoot' directory. But then you would also > have to allow symbolic links in the Apache server configuration. This > usually is avoided because symbolic links are a security risk. I think that the sym link is the easiest solution in this case. OR one can essentially define another document area and make it available through a different basename. > Another solution would be to provide the file indirectly through a CGI > script. Too complicated in this case ... in my opinion. Miguel ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

