Apache2 / Tomcat:重定向根URL

时间:2018-02-20 23:56:29

标签: apache tomcat

我刚把我的apache2 / Tomcat9服务器从windows移到了ubuntu。 ProxyPass和ProxyPassReverse工作正常。已知的tomcat webapp网址都在通过。

然而,当我进入www.myservername.com时,它会进入默认的var / www目录。

我尝试使用000-default.conf进行重定向。以下适用于http://www.myservername.com,但不适用于https://www.myservername.com

ServerName www.myservername.com

ServerName www.myservername.com
<VirtualHost *:*>

    ServerName www.myservername.com
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    Redirect permanent / https://www.myservername.com/ddd-college-website/entry
</VirtualHost>

因此,简而言之,在浏览器中输入https://www.myservername.com/,应该将用户带到https://www.myservername.com/ddd-college-website/entry。但它没有发生

任何建议都将不胜感激

0 个答案:

没有答案
相关问题