NOTICE: The following modification May Void Your Warranty
I needed to access the MyCloud UI over a VPN.
Since the VPN subnet is different than the LAN I was getting the following 403 Error in my browser
You don’t have permission to access /UI on this server
I don’t access this MyCloud from public networks so I just wanted to turn off the security that was limiting access to LAN only.
Here’s how to do it.
Once logged into the SSH shell, you need to edit the /etc/apache2/sites-available/wdnas-ui.conf file
nano /etc/apache2/sites-available/wdnas-ui.conf
Next comment out this line
$ {LOCAL_NET}
When done, the config file will be as follows
<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>
Save the file and exit the nano editor.
Restart the Apache server
/etc/init.d/apache2 restart
And you’re all done.