Miguel wrote:
Miguel & Tim wrote:
I also suspect that there may be a cleaner way to do this using
straightforward configuration in the apache web server, but this
need further investigation.
ditto above.
Tim,
It apache one can have 'rewrite rules' that take a virtual directory and
move it to someplace else.
For example, on my web server I would like to have a directory called:
http://www.jmol.org/pdb/<pdbID>.pdb
http://www.jmol.org/pdb/<pdbID>.cif
I would like to map:
http://www.jmol.org/pdb/1CRN.pdb
into
http://www.rcsb.org/pdb/cgi/export.cgi/1CRN.pdb.gz? \
format=PDB&pdbId=1CRN&compression=gz
I am quite sure that one can use Apache rewrite rules to do this.
Something like should work (not tested) :
RedirectMatch /pdb/(.*)\.pdb$
http://www.rcsb.org/pdb/cgi/export.cgi/$1.pdb.gz?format=PDB&pdbId=$1&compression=gz
http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirectmatch
Hope this helps
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers