NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
GTaff
Mar 01, 2012Aspirant
Duo V2 HTTP redirect on share
Hey guys, I have a readynas duo v2, and am trying but failing to set up a share for web development. I can't see anywhere within the front view where I can control HTTP redirect? The tutorials on t...
mdgm-ntgr
Mar 11, 2012NETGEAR Employee Retired
EDIT: PLEASE REMOVE THIS ADD-ON BEFORE UPDATING TO 5.3.5 (CURRENTLY IN PUBLIC BETA). THIS ADD-ON IS NO LONGER NEEDED AS YOU CAN DO WHAT THIS ADD-ON DOES VIA THE WEB UI. On the Dashboard Click Configure. Under System > Services click HTTP then redirect default web access to the webserver (or whatever you've named it) share.
Sorry for not get back onto this sooner.
I've written an add-on to do this: http://rnasguide.com/wp-content/addons/arm/bins/WEBSERVER_0.1-T1-arm.bin
To install on the Dashboard, click Configure, go to the Add-ons tab, click the + button at the far right, browse for the location where you downloaded the add-on, upload the add-on etc.
This add-on requires that you have created a share called "webserver" (no quotes). Also note that the Dashboard will say that the installation failed when it does not. You can ignore this error.
What follows is how to do it manually:
Using the default Dashboard apache configs do the following:
Create a share e.g. "webserver". The following example assumes you have chosen this name. If you haven't replace all references to "webserver" with the name you chose.
Edit /etc/frontview/apache/Shares.conf (e.g. using "vi" - google for MAN page) to look like this:
Then in /etc/frontview/apache/Virtual.conf add the line
This should be above the other RewriteRule lines.
After that you need to restart apache.
The config you would set may be a little different using the improved apache config found here: http://gitorious.org/readynas/apache-configs (note this improved config is not used by the add-on I linked to above).
Sorry for not get back onto this sooner.
I've written an add-on to do this: http://rnasguide.com/wp-content/addons/arm/bins/WEBSERVER_0.1-T1-arm.bin
To install on the Dashboard, click Configure, go to the Add-ons tab, click the + button at the far right, browse for the location where you downloaded the add-on, upload the add-on etc.
This add-on requires that you have created a share called "webserver" (no quotes). Also note that the Dashboard will say that the installation failed when it does not. You can ignore this error.
What follows is how to do it manually:
Using the default Dashboard apache configs do the following:
Create a share e.g. "webserver". The following example assumes you have chosen this name. If you haven't replace all references to "webserver" with the name you chose.
Edit /etc/frontview/apache/Shares.conf (e.g. using "vi" - google for MAN page) to look like this:
Alias "/webserver" "/c/webserver"
<Location "/webserver">
Options Indexes
Order allow,deny
Allow from all
</Location>
RewriteEngine on
RewriteRule ^/$ /webserver [R,L]
Then in /etc/frontview/apache/Virtual.conf add the line
RewriteRule ^/$ /webserver [R,L]
This should be above the other RewriteRule lines.
After that you need to restart apache.
# /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf -t && /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf -k graceful
The config you would set may be a little different using the improved apache config found here: http://gitorious.org/readynas/apache-configs (note this improved config is not used by the add-on I linked to above).
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!