具有 Apache 代理的 TeamCity WebServer 出现“方法 GET 未实现(尝试 POST)”

发布于 2024-10-04 03:48:41 字数 693 浏览 0 评论 0原文

我正在尝试在运行 Apache Proxy 的服务器上设置 TeamCity Web 服务器。

我添加了将此添加到我的 Apache conf 文件

ProxyPass /TeamCity http://localhost/TeamCity ProxyPassReverse /TeamCity http://localhost/TeamCity

并且 将上下文添加到我的 TeamCity conf server.xml 文件的 Host 部分

        unpackWARs="true" autoDeploy="true"

        xmlValidation="false" xmlNamespaceAware="false">

 docBase="C:\TeamCity\webapps\ROOT"

 debug="1"

 reloadable="true" > </Context>

有人知道为什么我仍然收到“方法 GET 未实现(尝试 POST)”吗?

这实际上是什么意思?

I am trying setup TeamCity webserver on a server run Apache Proxy.

I added Add this to my Apache conf file

ProxyPass /TeamCity http://localhost/TeamCity
ProxyPassReverse /TeamCity http://localhost/TeamCity

And
added the Context to my TeamCity conf server.xml file in the Host section

        unpackWARs="true" autoDeploy="true"

        xmlValidation="false" xmlNamespaceAware="false">

 docBase="C:\TeamCity\webapps\ROOT"

 debug="1"

 reloadable="true" > </Context>

Anyone know why I still get ""Method GET not implemented (try POST)"?

What is that actually mean?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迷乱花海 2024-10-11 03:48:41

我不确定这将如何工作..看起来您正在尝试代理 http://your-server /TeamCityhttp://localhost/TeamCity,除非你的 apache 位于不同的端口..?

我刚刚为我的 TeamCity 安装实现了 ProxyPass。我的 看起来像:

<Host ...>
    <Context path="/build" docBase="../webapps/ROOT"></Context>
</Host>

..为 TeamCity 提供 http://localhost: 的根 URL: 8111/build - 请参阅此处了解 apache标签上有 doco。如果没有这个,TC 的 Tomcat 会将您重定向到 http://your-server/login.html 而不是 / build/login.html(结果为 404)。

我的 httpd.conf 包含(在 mod-proxy 部分):

ProxyPass           /build    http://localhost:8111/build
ProxyPassReverse    /build    http://localhost:8111/build

它将通过 /build 将请求和响应代理到新的 TeamCity URL。对我有用!

I'm not sure how this is going to work.. It looks like you're trying to proxy http://your-server/TeamCity to http://localhost/TeamCity, unless your apache is on a different port..?

I've just implemented the a ProxyPass for my TeamCity install. My <Context> looks like:

<Host ...>
    <Context path="/build" docBase="../webapps/ROOT"></Context>
</Host>

..Giving TeamCity the root URL of http://localhost:8111/build - See here for the apache doco on the tag. Without this, TC's Tomcat would redirect you to http://your-server/login.html instead of /build/login.html (results in a 404).

My httpd.conf contains (in the mod-proxy section):

ProxyPass           /build    http://localhost:8111/build
ProxyPassReverse    /build    http://localhost:8111/build

Which will proxy the requests and responses through /build to the new TeamCity URL. Works for me!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文