如何在Apache Server中部署Play应用程序

时间:2014-10-29 07:42:41

标签: apache playframework-2.0

我想将apache用作Play Framework 2.2创建的应用程序的前端代理服务器。我在httpd.conf文件中做了以下事情

LoadModule proxy_module modules/mod_proxy.so

<VirtualHost *:80>
  ProxyPreserveHost On
  ServerName test.app
  ProxyPass / http://127.0.0.1:9000/
  ProxyPassReverse / http://127.0.0.1:9000/
</VirtualHost>

并在主机文件中添加以下行

127.0.0.1       test.app

然后对于网址http://test.app/,它会出现500错误

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@domain.in 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.

对于URL http://test.app:9000/login,它会呈现我的应用程序主页。 但我不知道遗失了什么。

请帮我解决这个问题。

...谢谢

0 个答案:

没有答案