Search code examples
apachesymlinkcentos6ln

Cannot make symbolic links


I run a webpage on CentOS 6.6 by using Apache 2.4.10. My documentroot is /var/www/htdocs. Last month, because my disk became full, I added another disk in /disk1. I want to place large movie files in this directory and want visitors of my website to watch the videos. However, when I tried to make symbolic links from /var/www/htdocs/movies to /disk1/movies, I failed. How can I make symbolic links on Apache? Is there another good way to realize what I want to do?


Solution

  • Make sure you have you set the 'FollowSymLinks' Option in httpd.conf and your apache user has rx permission for the symlink target dir path.