[ZendTo] Re: Using zendto behind apache proxy

Joerg Streibhardt eljoest+lists at googlemail.com
Thu Feb 2 13:49:15 GMT 2012


Hi Jules,

you're correct, it is not exactly standards compliant. However, every
browser I've tried it with assumed the current URL to be the
replacement for the mission action which works as expected.
The compliant way would be to set action="." which would mean the
current directory (instead of "/" for top level directory) and
therefore index.php. This is what I used for the home link.

Cheers
Jörg

On Thu, Feb 2, 2012 at 2:31 PM, Jules <Jules at zend.to> wrote:
> Having a form with no "action" sounds rather dodgy to me...
>
> Does it work in all browsers?
>
> Jules.
>
> On 02/02/2012 11:43, Gerrit Otten wrote:
>> 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
>> _______________________________________________
>> ZendTo mailing list
>> ZendTo at zend.to
>> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
>
> Jules
>
> --
> Julian Field MEng CITP CEng
> www.Zend.To
>
> Follow me at twitter.com/JulesFM
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>
> 'It's okay to live without all the answers' - Charlie Eppes, 2011
> 'All programs have a desire to be useful' - Tron, 1982
> 'That is the land of lost content,
>  I see it shining plain,
>  The happy highways where I went,
>  And cannot come again.' - A.E. Houseman
>
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto



More information about the ZendTo mailing list