Need Apache to ignore options in .htaccess

187 views Asked by At

I run a hosting service for student at my our faculty. We run PHP with suPHP and for security we need symlinks to be set to "SymLinksIfOwnerMatch".

This has the very unfortunate error that if people have htaccess "Options FollowSymLinks" or "Options None" they will receive an internal server error.

This is a huge problem since most dristributions of OSS-software for PHP has this included in their htaccess by default (Wordpress, Drupal, Joomla and many others), and most guides in htaccess-rules always recommend "FollowSymLinks" since it's needed for mod_rewrite - it does work just as well with SymLinksIfOwnerMatch.

Does anyone have this same issue, and do anyone know how to conquer it? I was hoping to make Apache ignore Options completely. Our default ones are completely sufficient.

1

There are 1 answers

1
ObscureRobot On

You want to set AllowOverride in your main config file.

If you want to turn off all use of .htaccess set

AllowOverride None

If you just want to prevent students from using Options then this should do it:

AllowOVerride AuthConfig FileInfo Indexes Limit