简体   繁体   English

Openshift Tomcat,无法找到server.xml和context.xml?

[英]Openshift tomcat, unable to find server.xml and context.xml?

I have installed my app on openshift tomcat. 我已经在openshift Tomcat上安装了我的应用程序。

I wanted to setup auto redirect from http to https. 我想设置从http自动重定向到https。 However i am unable to find server.xml and context.xml at place where it is supposed to be. 但是我无法在应该放置的地方找到server.xml和context.xml。

https://developers.openshift.com/en/troubleshooting-faq.html#_how_do_i_redirect_traffic_to_https https://developers.openshift.com/en/troubleshooting-faq.html#_how_do_i_redirect_traffic_to_https

I ssh to box also, but could not find context/server xml there as well. 我也将ssh装箱,但在那里也找不到上下文/服务器xml。

I am confused on how to proceed? 我对如何进行感到困惑? Should i define my own xml files in my git repo? 我应该在git repo中定义自己的xml文件吗? or define manually on box by sshing to it? 或通过手动定义在框上?

Figured out. 想通了。

Once app is created, i need to use .openshift in the default git repo created. 创建应用后,我需要在创建的默认git repo中使用.openshift。

So i have to merge my project with openshift git repo. 所以我必须将我的项目与openshift git repo合并。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM