[ZendTo] Re: Using zendto behind apache proxy

Gerrit Otten gerrit at nwgservices.com
Thu Feb 2 11:43:58 GMT 2012


Thanks Jörg!

That totally fixed my problem!

Gerrit

Op 01-02-12 17:58, Joerg Streibhardt schreef:
> Hi Gerrit,
>
> I've changed only a few bits to get ZendTo running in a subdirectory
> (see attached patch).
> The change required for logging in is in www/js/main.js (remove the
> action parameter from "var loginForm").
>
> Concerning the problem of not staying logged in, could you please
> confirm that the cookie is really present?
> In Firefox you could go into "Preferences" ->  "Privacy" and select
> "Show cookies".
> If you didn't change the cookieName just type zendto-session in the
> search dialog and check the URL the cookie is set for.
>
> Best regards
> Jörg
>
> On Wed, Feb 1, 2012 at 4:38 PM, Gerrit Otten<gerrit at nwgservices.com>  wrote:
>> Hi Jules,
>>
>> Thanks for your quick reply!
>> In NSSDropbox.php I edited $NSSDROPBOX_URL, wich sets ZendtoURL and
>> hardcoded the external URL to our site. After that, i can use Zendto
>> from external.
>>
>> When i authenticate and revisit http://external.ip/zendto/, im not
>> logged in.
>>
>> I know im authenticated, because when i enter a false password, i get an
>> error.
>>
>> Gerrit
>>
>> Op 01-02-12 15:41, Jules schreef:
>>> Start in /opt/zendto/templates/header.tpl, there is *1* hard-wired URL
>>> that will cause you this problem on line 50.
>>>
>>> Not sure why the login would do that. It should authenticate the login
>>> and then display main_menu.tpl. You're going to have to follow through
>>> the login process from index.php I'm afraid :-(
>>> I never wrote it to be usable from a sub-URL of a server, it always
>>> assumes it's got the whole vhost to itself. Sorry about that. If you
>>> login, end up and http://external.ip/ and then edit the URL to
>>> http://external.ip/zendto/ does the main menu appear properly?
>>>
>>> Jules.
>>>
>>> On 01/02/2012 14:31, Gerrit Otten wrote:
>>>> Guys,
>>>>
>>>> I've been breaking my head about this.
>>>> We use all of our application web-servers via a apache proxy server to
>>>> group web applications for our users. In the proxy server i have a
>>>> virtual host configuration that forwards via /zendto/ proxypass and
>>>> proxypassreverse to http://internal.ip/.
>>>>
>>>> I can send and retrieve files via the external URL, but cannot login.
>>>> After a succesfull logon, i get redirected to http://external.ip/
>>>> instead of http://external.ip/zendto/.
>>>>
>>>> Anyone any ideas?
>>>>
>>>> Thnx!
>>>>
>>>> Gerrit
>>>> _______________________________________________
>>>> ZendTo mailing list
>>>> ZendTo at zend.to
>>>> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
>>>
>>> Jules
>>>
>> _______________________________________________
>> ZendTo mailing list
>> ZendTo at zend.to
>> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
>>
>>
>> _______________________________________________
>> ZendTo mailing list
>> ZendTo at zend.to
>> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto


More information about the ZendTo mailing list