问题原文
原帖链接 · IceCold · CC BY-SA 3.0
What is SymLinksIfOwnerMatch in .htaccess, in layman's terms?
I have this option active. Do I need it? I have a plain HTML web site (though might go for Joomla one day).
Some sites specify that it replaces the FollowSymLinks that was disabled by some hosts such as BlueHost (yes, I am hosted there).
已采纳解答
原帖链接 · MrWhite · CC BY-SA 3.0
From the Apache docs
SymLinksIfOwnerMatch
The server will only follow symbolic links for which the target file or directory is owned by the same user id as the link.
So, enabling this option (as opposed to FollowSymLinks) prevents symbolic links being followed that might point to some critical parts of the system (where the owner of the link does not match the target file).
Do I need it? I have a plain HTML web site (though might go for Joomla one day).
If you have a plain HTML site and no fancy URLs then probably not.
However, it is required by mod_rewrite, which is required for URL rewriting. (And is required by Joomla if you enable "pretty" URLs - ie. URL rewriting.)
Some sites specify that it replaces the
FollowSymLinks
SymLinksIfOwnerMatch is a more restriction option. The two are mutually exclusive.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
