My Cloud 的 UI 后台默认是不支持远程访问的,只能在本地局域网访问。直接在外网访问UI后台会出现:
Forbidden
You don’t have permission to access /UI on this server.
折腾又开始了
1、先准备好 putty、WinSCP,登录 ssh
2、用 WinSCP 或者 putty 编辑 /etc/apache2/sites-available/wdnas-ui.conf,熟悉 vi 的通过 putty 用 vi
<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>
近期评论