Chapter 5. Symbolic links
Symbolic links
It is demonstrated that the web server does not follow symbolic links unless explicitly
directed to do so.
Options FollowSymLinks
The instruction to make the server follow symbolic links is introduced.
Options
There is general discussion about the Options command.
Options SymLinksIfOwnerMatch
The more restrictive command is also introduced.
We can now see the index.html file as expected but if we create a symbolic link
called main.html to index.html and ask for that we get a failure.
$ cd /var/www/CHALK/
$ ln -s index.html main.html
$ ls -l
total 4
-rw-rw-r-- 1 rjd4 chalk 312 may 7 10:01 index.html
lrwxrwxrwx 1 rjd4 chalk 10 may 7 10:19 main.html -> index.html
Figure 5-1. Creating the symbiolic link main.html
We note that when we try to access the symbolic link we get a 403 “Forbidden” error.
The web server has found the symbolic link but has decided not to follow it.
27
Komentarze do niniejszej Instrukcji