Details
-
Bug
-
Resolution: Fixed
-
Medium
-
2014.07, 5.3.3, 5.4-dev
-
None
-
Nginx
Description
Installing ezpublish-community in nginx and following exactly the instructions given in https://github.com/ezsystems/ezpublish-community/blob/master/doc/nginx/nginx.rst makes render_hinclude calls throw a error 500.
If fact, a AccessDeniedHttpException is thrown from the symfony FragmentListener.
Doing some debug i found that there seems to be a problem with the way the urls was given to the urlSigner in order to know if request are valid of not.
Basically, while in apache uris from the hinclude call are in this way
http://[host]/_fragment?_path=...
with nginx urls seems to add another _fragment. like this
http://[host]/_fragment?/_fragment&_path=...
Because of that, signer seems to doesn't trust the url and throws the Exception.