NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Vaclav
Nov 13, 2013Aspirant
OS 6.1.4 apache2 mod_rewrite .htaccess problem
Hi, I'm trying configure apache2 to enable mod_rewrite in my HTTP enabled share folder. I use that folder as my personal webserver for PHP development. I have root access via SSH to my ReadyNAS, I...
Vaclav
Nov 13, 2013Aspirant
OK, so i sorted it a little bit. Back to the points:
- ReadyNAS frontview, that means web administration and addons, are in
/etc/frontview/
Files in this folder are (or was) persistent through restart/upgrade, so it is (or was) used as hack for keep settings.
The main apache configuration files are in/etc/apache2/
and while experimenting with settings, there is no need to go to /etc/frontview. - Still the same result (403 Forbidden) when edit
/etc/apache2/sites_enabled/000-fv-http
Changed<Directory />
--Options FollowSymLinks
++Options All
--AllowOverride None
++AllowOverride All
</Directory>
Incriminated .htaccess# Apache configuration file (see httpd.apache.org/docs/current/mod/quickreference.html)
# disable directory listing
Options -Indexes
# enable cool URL
<IfModule mod_rewrite.c>
RewriteEngine On
# RewriteBase /
# prevents files starting with dot to be viewed by browser
RewriteRule /\.|^\. - [F]
# front controller
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(pdf|js|ico|gif|jpg|png|css|rar|zip|tar\.gz)$ index.php [L]
</IfModule>
# enable gzip compression
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/javascript application/javascript application/json
</IfModule> - Tutorials related with VirtualHosts are mostly about clean domain names → redirect/translate from www.example.com to www.readynas.com/webshare/... so if I need put mod_rewrite into operation, there is no need fiddle with VirtualHosts, right?
- Paths in configuration files are regular system paths, I got it now :oops:
- Still confused here, dont know if it's even related with my problem.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!