1. SSH login as ‘root’
2. Modify both files as follow
/etc/apache2/sites-available/rest-api-lan-only.conf
<Directory "/var/www/htdocs/api/rest">
Require all granted
#<RequireAny>
# ${LOCAL_NET}
# Require local
#</RequireAny>
</Directory>
/etc/apache2/sites-available/wdnas-ui.conf
<IfModule mod_rewrite.c>
<Directory "${DOCUMENT_ROOT}/UI">
# ${LOCAL_NET}
RewriteEngine On
RewriteBase /UI/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /UI/ [R]
</Directory>
</IfModule>
3. Restart the web server by issuing the command
service apache2 restart