It works for me (Apache/2.2.21) with following configuration without any patch or did I miss something?
Code:
<Directory "/">
Options +ExecCGI +FollowSymLinks -Includes +IncludesNOEXEC +Indexes -MultiViews +SymLinksIfOwnerMatch
AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,FollowSymLinks
</Directory>
- allows FollowSymLinks in .htaccess and doesn't break joomla etc
- disallow SymLinksIfOwnerMatch in .htaccess
Code:
[~/public_html]# ls -lsa
0 lrwxrwxrwx 1 super super 5 Feb 7 15:32 slink -> test2*
4 -rwxrwxrwx 1 root root 9 Feb 7 15:29 test2*
Testcase 1
Code:
# cat .htaccess
Options +FollowSymLinks
Result 1:Symbolic link not allowed or link target not accessible: /home/super/public_html/slink
Testcase 2
Code:
# cat .htaccess
Options +FollowSymLinks -SymLinksIfOwnerMatch
Result 2: /home/super/public_html/.htaccess: Option SymLinksIfOwnerMatch not allowed here
Testcase 3
Code:
# cat .htaccess
#empty
Result 3: Symbolic link not allowed or link target not accessible: /home/super/public_html/slink