ZenphotoCMS Forum
reverse proxy and login form - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: reverse proxy and login form (/thread-10649.html)



reverse proxy and login form - jerep6 - 2012-12-11

Hello, I am trying to use zenphoto with reverse proxy (proxypass directive).

Apache reverse proxy on the web frontend server :
ProxyPass /zp http://192.168.1.72/~jerep6/zenphoto
ProxyPassReverse /zp http://192.168.1.72/~jerep6/zenphoto

On 192.168.1.72 Zenphoto's installation folder is /home/jerep6/public_html/zenphoto and the web path is http://192.168.1.72/~jerep6/zenphoto
Throught the proxy, I access to zenphoto with the given url : http://url_to_frontend/zp/

However, the paths of css, js, images ... are /~jerep6/zenphoto/
Exemple :
I can't read the file because I haven't access to it through the web frontend server.

So I uncomment the two « define » in zp-data/zenphoto.cfg
define('WEBPATH', '/zp');
define('SERVERPATH', '/home/jerep6/public_html/zenphoto');

Now the scripts and images load successfuly but the action of login form (printLoginForm) is not good : /~jerep6/zenphoto/ .
For exemple :




reverse proxy and login form - sbillard - 2012-12-12

Zenphoto can work (using mod_rewrite) with only one URL. So you need to choose what you want and install using that link. If you have done this and it still does not work then your reverse proxy is not behaving consistently.




reverse proxy and login form - jerep6 - 2012-12-12

I think all is OK but it doesn't work.
I drop the reverse proxy.

Thanks for your response.