我有一个名为 roundcube 的文件夹,还有一个名为 webmail.domain.org 的子域。我在 .htaccess 中添加此代码以阻止访问 domain.org/roundcube 并仅允许在 webmail.domain.org 上访问。
RewriteEngine on
RewriteCond %{HTTP_HOST} !^webmail\.domain\.org$ [NC]
RewriteRule ^roundcube/$ http://webmail.domain.org [L,NC,R=301]`
访问domain.org/roundcube仍然有效,并且webmail.domain.org给了我这个错误:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
我做错了什么?
尝试通过
webmail.domain.org/installer
访问它
并使用以下指南完成安装https://www.digitalocean.com/community/tutorials/how-to-install-your-own-webmail-client-with-roundcube-on-ubuntu-16-04完成安装