2016-12-16 18 views
0

私のAlfrescoインスタンスがサブURI(www.example.com/prefix/alfresco、www.example.com/prefix/alfresco/share)になるように設定しています。私が共有することができないことを除いて、罰金。 Catalina.outは、このエラーをログに記録:Alfrescoリバースプロキシの背後にあるログインエラーを共有します

ERROR [alfresco.web.site] [http-apr-28080-exec-10] javax.servlet.ServletException: Possible CSRF attack noted when asserting referer header ' http://www.example.com/prefix/alfresco/share/page/ '. Request: POST /prefix/alfresco/share/page/dologin, FAILED TEST: Assert referer POST /prefix/alfresco/share/page/dologin :: referer: ' http://www.example.com/prefix/alfresco/share/page/ ' vs server & context: http://10.140.8.144/ (string) or (regexp)

次にブラウザが私にこのページ(www.example.com/prefix/alfresco/share/dologin)を示しています

Something's wrong with this page...

We may have hit an error or something might have been removed or deleted, so check that the URL is correct.

Alternatively you might not have permission to view the page (it could be on a private site) or there could have been an internal error. Try checking with your Alfresco administrator.

If you're trying to get to your home page and it's no longer available you should change it by clicking your name on the Alfresco toolbar.

私は無効にしてみましたCSRFシェア-CONFIG-custom.xmlでフィルタが、その後、私はログインできませんし、私がログに任意のメッセージを持っていない、ログインページショー:

Your authentication details have not been recognized or Alfresco may not be available at this time.

私のapacheのconf:

ProxyPass /prefix/alfresco
http://10.140.8.144:28080/prefix/alfresco ProxyPassReverse
/prefix/alfresco http://10.140.8.144:28080/prefix/alfresco

ProxyPass /prefix/alfresco/share
http://10.140.8.144:28080/prefix/share ProxyPassReverse
/prefix/alfresco/share http://10.140.8.144:28080/prefix/share

リバースプロキシで動作するようにAlfrescoを設定する前にログオンできました。

答えて

1

CSRFフィルタを非アクティブにする必要はありません。 documentationに記載されているようにコンテキストパスを変更した場合は、tomcatコネクタが外部コンテキスト(ホスト名、ポート、コンテキスト)を「認識」していることを確認する必要があります。

いずれ

  • セットproxyNameとproxyPortの
  • のTomcatのserver.xmlとセット必要なプロキシヘッダーのセットRemoteIpValveアパッチで 変数(X-転送-ため、xは、転送ごとに、 X- )代わりproxy_httpの
  • 使用proxy_ajp-プロト転送及び のTomcatでAJPコネクタを定義
関連する問題