Skip to content

Commit

Permalink
htaccess: include a SymLinksIfOwnerMatch comment
Browse files Browse the repository at this point in the history
Some web hosts disallows the use of the FollowSymLinks option in
.htaccess files, and suggest the use of SymLinksIfOwnerMatch.

Close h5bp/html5-boilerplate#1147
  • Loading branch information
necolas committed Aug 15, 2012
1 parent 6f0809c commit be378d5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions apache/.htaccess
Expand Up @@ -332,13 +332,19 @@ FileETag None

# Turning on the rewrite engine is necessary for the following rules and
# features. FollowSymLinks must be enabled for this to work.
#
# Some cloud hosting services require RewriteBase to be set: goo.gl/HOcPN If
# using the h5bp in a subdirectory, use `RewriteBase /foo` instead where 'foo'
# is your directory.

# Some cloud hosting services require RewriteBase to be set: goo.gl/HOcPN
# If using the h5bp in a subdirectory, use `RewriteBase /foo` instead where
# 'foo' is your directory.

# If your web host doesn't allow the FollowSymlinks option, you may need to
# comment it out and use `Options +SymLinksOfOwnerMatch`, but be aware of the
# performance impact: http://goo.gl/Mluzd

<IfModule mod_rewrite.c>
Options +FollowSymlinks
# Options +SymLinksIfOwnerMatch
Options +FollowSymlinks
RewriteEngine On
# RewriteBase /
</IfModule>
Expand Down

0 comments on commit be378d5

Please sign in to comment.