apache - Turning RewriteEngine on creates 403 error--how to turn on FollowSymLinks? -


i working built-in apache2 on osx. moved document root folder on desktop , made sure _www , everyone have read access. works fine , great, php works, works until add .htaccess line only:

rewriteengine on 

as that, in directory file 403 forbidden:

forbidden don't have permission access /dir/file.txt on server.  

apache logs show error:

[error] [client 127.0.0.1] options followsymlinks or symlinksifownermatch off implies rewriterule directive forbidden: /users/uname/desktop/localhost/dir/filename.txt

i've gone through httpd.conf , made sure i've enabled followsymlinks no avail:

documentroot "/users/uname/desktop/localhost" <directory />     options followsymlinks     options symlinksifownermatch      allowoverride     order allow,deny     allow </directory>  <directory "/users/uname/desktop/localhost">     options followsymlinks     options symlinksifownermatch      options indexes multiviews     allowoverride     order allow,deny     allow </directory> 

if comment out rewriteengine on in .htaccess file, works fine, except rewrite rules, obviously. on osx 10.8.5, httpd.conf located in /etc/apache2 has folder users containing individual files uses, e.g. uname.conf, i've added symlinks in here same in other. noticed there's folder extra files httpd-userdir.conf, don't seem disable anything.

where else can followsymlinks turned on (or off)?

you have either put options on 1 line, or add + sign in front of options apache understands want merge them. @ moment last options directive ('options indexes multiviews') being applied since overwriting prior options.

try (which overwrite '/' options):

<directory "/users/uname/desktop/localhost">    options indexes multiviews followsymlinks symlinksifownermatch    allowoverride    order allow,deny    allow </directory> 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -