[ZendTo] Re: Probably a stupid questionŠ .

John Thurston john.thurston at alaska.gov
Fri Jul 12 22:54:14 BST 2013


On 7/12/2013 11:32 AM, Gray McCord wrote:
> I'm trying to run Zendto behind a reverse proxy.  Mostly seems to work with
> one exception: The home button and home "icon" in the header always return
> the absolute URL of the system Zendto is running on rather than the proxy-ed
> address. Everything else seems to act as expected.
>
> Doing a little digging, I found the variable "$zendTOURL" used to set the
> home URL in header.tpl.  As a "hack-test", I replaced the reference to the
> home page's home button  tieh "/", and it worked.
>
> Unfortunately, I have been unable to find where the $zendTOURL variable is
> actually set to see if I can fix this on my installation.  Can anyone tell
> me where this variable is set when ZendTo loads? Has anyone else had any
> experience running ZendTo behind an Apache 2.2 reverse proxy?

I run mine behind such a proxy. It has significantly lower throughput 
than hitting it directly, but I like the flexibility.

As I recall, I ran into your problem as well as difficulty trying to 
publish ZendTo on a path other than /. I wanted my application to be 
published at foo.bar.com/drop/, so on the proxy (foo.bar.com), I have:
   proxypass  /drop   https://zar.bar.com/drop

on my ZendTo instance of apache running on zar.bar.com, I have:
   alias  /drop  /opt/zendto/www
but I _also_ have told apache that its name is foo.bar.com with:
   servername  foo.bar.com

Yes, it is a bit of a hack, but it got the job done.

-- 
    Do things because you should, not just because you can.

John Thurston    907-465-8591
John.Thurston at alaska.gov
Enterprise Technology Services
Department of Administration
State of Alaska


More information about the ZendTo mailing list