i used Apache
from apache2/sites-enabled/default
ProxyPass /myapp http://10.2.32.19:8080/myapp


here is from my wt_config.xml

          the server location is not read from the "Host" header,
           but from the X-Forwarded-For header, if present.
          -->
        <behind-reverse-proxy>true</behind-reverse-proxy>

10.2.32.19/myapp
Fatal error: failed loading /js/tracker.js

from firebug

"NetworkError: 404 Not Found - http://.
10.2.32.19/resources//themes/polished/wt.css"
wt.css
"NetworkError: 404 Not Found - http://.
10.2.32.19/resources/moz-transitions.css"
moz-tr...ons.css
"NetworkError: 404 Not Found - http://.10.2.32.19/apps.css";
vrgeo.css
"NetworkError: 404 Not Found - http://.
10.2.32.19/ext/resources/css/ext-all.css"
ext-all.css
"NetworkError: 404 Not Found - http://.10.2.32.19/styles.css";
styles.css
"NetworkError: 404 Not Found - http://.10.2.32.19/js/tracker.js";
tracker.js
"NetworkError: 404 Not Found - http://.10.2.32.19/js/tracker.js";

what I am doing wrong?

On Fri, Apr 20, 2012 at 10:26 PM, Mohammed Rashad <
[email protected]> wrote:

> Thanks Koen. But I still have some doubts
>
> On Fri, Apr 20, 2012 at 6:12 PM, Koen Deforche <[email protected]> wrote:
>
>> Hey,
>>
>> Op 19 april 2012 19:42 heeft Mohammed Rashad
>> <[email protected]> het volgende geschreven:
>>
>> > My doubts.
>> > 1.
>> > How haproxy  does load balancing for wt apps
>> >
>> > because in wt wiki i found this
>> >
>> > $ app.wt --session-id-prefix=wt1 --http-port 9090 ...
>> > $ app.wt --session-id-prefix=wt2 --http-port 9091 ...
>> >
>> > here what i understood is we are running two instances of app.wt. How
>> the
>> > load balancing works here. There may be something with
>> --session-id-prefix
>> >  but I dont know
>> > also the two instances are on two ports but a user will access from
>> browser
>> > as mydomain.com:9090/app.wt or mydomain.com:9091/app.wt
>>
>> This is only part of the configuration. Haproxy is the server (running
>> on port 80) which will be accessed by the user, e.g.
>> http://mydomain.com/
>
>
> So the user wil be accesing the app.wt on http://mydomain.com if haproxy
> is running on port 80
> and haproxy will send requests to different servers on a roundrobin
> algorithm to sessions like wt1,wt2 etc..
>
> Am I in the right direction
>
>
>
>>
>>
>> Behind that you may deploy multiple wthttpd servers, each running on
>> potentially a different server and/or different port number.
>>
>> > 2. Can we use apache hadoop with Wt because we are moving our
>> application to
>> >  a cloud. so I also need to know can we use hadoop and haproxy in
>> > conjunction with Wt
>>
>> Yes you can use apache hadoop -- as far as I understand there are no
>> particular issues there ?
>>
>
> Which one is better hadoop or haproxy. I googled but cant find any
> differences even though there may be many
>
>
>>
>> > 3. How to use proxypass in haproxy for wt. so that i dont need to
>> depend on
>> > apache
>>
>> The basic configuration in
>>
>> http://redmine.webtoolkit.eu/projects/1/wiki/Using_HAProxy_as_a_reverse_proxy
>> really shows exactly that.
>>
>> > 4. I am using monit for wthttpd applications. sometimes in firefox the
>> > browser will keep on flashing/refershing and sometimes not
>> >
>> > here is my monitrc
>> >
>> > check process myapp.wt  with pidfile /home/projects/myapp.wt.pid
>> >  start program  = "/home/projects/wthttpd.sh start
>> /home/projects/myapp.wt /
>> > 8080" with timeout 3 seconds
>> >  stop program  = "/home/projects/wthttpd.sh stop
>>  /home/projects/myapp.wt"
>> >  if failed host 10.2.32.19 port 8080 protocol http request /monittoken
>> then
>> > restart
>> >
>> > Is there any problem with my monitrc
>>
>> I'm not sure, does monit.log suggest that it is restarting your process ?
>> Sometimes monit goes a bit wonky, for example because it misses the
>> actual pid.
>>
>> Regards,
>> koen
>>
>>
>> ------------------------------------------------------------------------------
>> For Developers, A Lot Can Happen In A Second.
>> Boundary is the first to Know...and Tell You.
>> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
>> http://p.sf.net/sfu/Boundary-d2dvs2
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>
>
>
>
> --
> Regards,
>    Rashad
>
>


-- 
Regards,
   Rashad
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to