<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=ISO-8859-15" http-equiv=content-type>
<META name=GENERATOR content="MSHTML 8.00.6001.19019">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff text=#000000>
<DIV>hello Simone</DIV>
<DIV> </DIV>
<DIV><FONT size=2>you can only access files which are served by your web
server.</FONT></DIV>
<DIV><FONT size=2>you can not use local path, as you are trying at the
moment.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>your webserver must be configured to allow web access to the
folder where you have your files.</FONT></DIV>
<DIV><FONT size=2>though you need to be careful as this may be a serious
security problem as all the files will be open to public
access!!!!</FONT></DIV>
<DIV><FONT size=2>it may be a good idea to disalow the directory listing in that
folder.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>if you are using apache, you need to add a new alias in your
httpd.conf (or if you have your cartoweb apache config in another file, then in
that other file)</FONT></DIV>
<DIV><FONT size=2>to disallow directory listing, do NOT put "Indexes" in the
Options line in the "<Directory ..." definition</FONT></DIV>
<DIV><FONT size=2></FONT><FONT size=2><SPAN
style="FONT-WEIGHT: bold"></SPAN></FONT> </DIV>
<DIV><FONT size=2>see apache documentation for details <A
href="http://httpd.apache.org/docs/current/mod/mod_alias.html#alias">http://httpd.apache.org/docs/current/mod/mod_alias.html#alias</A></FONT></DIV>
<DIV><FONT size=2>also this page for a very quick overview <A
href="http://www.thewebhostinghero.com/tutorials/apache-alias.html">http://www.thewebhostinghero.com/tutorials/apache-alias.html</A></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=simone.frigerio@univie.ac.at
href="mailto:simone.frigerio@univie.ac.at">simone.frigerio@univie.ac.at</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, March 24, 2011 4:46
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] link setup and
URL</DIV>
<DIV><BR></DIV><FONT size=-1>Hi !<BR>I need to fix a link URL in layer.ini
with a special directory. By default a file can be fixed in this
way:<BR></FONT><BR><FONT size=-1>layers.exp_matrix.link =
exposure_matrix.txt</FONT><BR><FONT size=-1>The file "</FONT><FONT
size=-1>exposure_matrix.txt" has to stay by default in the folder:
C:\ms4w\apps\cartoweb3\htdocs</FONT><BR><FONT size=-1>On web the link is
correctly visualized as:<BR><A class=moz-txt-link-freetext
href="http://localhost/cartoweb3/htdocs/exposure_matrix.txt">http://localhost/cartoweb3/htdocs/exposure_matrix.txt</A><BR><BR>If
I need to change directory from default folder (e.g. the output of a model
yhat are fixed are exactly in a folder), how can I write the correct
expression of the link?<BR>Example:<BR></FONT><FONT size=-1>"</FONT><FONT
size=-1>exposure_matrix.txt" is in C:/temp<BR>The link in a browser is <A
class=moz-txt-link-rfc2396E
href="file:///C:/temp/exposure_matrix.txt">"file:///C:/temp/exposure_matrix.txt"</A><BR>The
expression in layer.ini should be </FONT><FONT size=-1>layers.exp_matrix.link
=</FONT><FONT size=-1> <A class=moz-txt-link-freetext
href="file:///C:/MultiRisk/rev_vis/exposure_matrix.txt">file:///C:/MultiRisk/rev_vis/exposure_matrix.txt</A><BR><BR>The
result is a not visible link.<BR>Is it a wrong syntax? Is it a question of
default folder as I suppose? How can I manage different default
folder?<BR><BR>The second question is on same issue regarding setup of link.
Is it possible create a popup window for the link, instead another tab on the
browser?<BR><BR>Thanks.<BR>Simone<BR></FONT>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>