Index

Symbolic and file: links

  • Read the part about the design principles of the Web server configuration to learn why symbolic and file: links are not guaranteed to work as expected.
  • As a result of this configuration, try to use relative symbolic links when possible. If you really need/want to use an absolute path (e.g. /cw/wwwserver/extern, which is probably the only such link to consider using), be sure to check it out thoroughly using the web server (i.e. via a http://... URL). And be prepared that, if it doesn't work, it might be because the link is wrong.
  • You can find all symbolic links in a directory tree with the command :
    find . -type l -print
  • You should not use a file:/path/to/file (hyper) link in your web pages either, because most probably the browser cannot access the file in that way, either because the path is not the same on, or because the file is not accessible in that way (i.e. via NFS) from the machine the browser is executed on.
  • Also read this section about why file: links are to be avoided because they are ignored by most browsers nowadays.