将apache tomcat主机管理器URL重定向到默认应用程序URL

时间:2018-09-06 10:51:25

标签: tomcat httpd.conf

我如何将某些上下文(例如/ manager / host-manager URL)作为tomcat hostmanager重定向到默认应用程序URL。我正在使用Apache httpd 2.4和tomcat版本7。我尝试了以下操作,但没有重定向

Redirect permanent / https://www.example.com
Redirect /host-manager/* https://www.example.com
RedirectMatch permanent ^/(.*)$ https://www.example.com
Redirect permanent "/" "https://www.example.com/"
RedirectMatch /host-manager/(.*)$ https://www.example.com/
RedirectMatch 403 "https://www.example.com"
RewriteEngine on
RewriteRule ^(.*)$ https://www.example.com/loginpage

0 个答案:

没有答案