I have installed nginx on Ubuntu 12.04. However, nginx does not seem to follow symlinks. I understand that there is a config change required for this but I am not able to find where to make the change. Any help appreciated.
Remove a Symbolic Link using the rm command You can also use the -i flag with the rm command to prompt for confirmation. After that, you can use the ls -l command to confirm if the symlink has been removed. That is all there is to it!
Yes, a symbolic link is a pointer to another location. This means that any changes you make are in fact updating at the target location.
rm -rf won't follow symbolic links - it will simply remove them.
The -L option tells du to process symbolic links by using the file or directory which the symbolic link references, rather than the link itself.
Have a look at the following config option from nginx docs:
Syntax:
disable_symlinks off; disable_symlinks on | if_not_owner [from=part];
Default: disable_symlinks off;
Context: http, server, location
This directive appeared in version 1.1.15.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With