I use httpd only, no Apache or other web server is loaded.

I have a folder structure like this:
Root (/home/userName) this is where the Executable is
    - app_root this is where my configuration xml files are
    -doc_root this is where my resources are
        -resources
        -media

Now, I have a resource file (*.js, *.png...) and I have it in an HTML
file that I connect via an iframe, if I use a run command like this:
./WittyWizard.wt --docroot "./doc_root;/media" --approot="./app_root"
--deploy-path="/ww" --http-address="0.0.0.0" --http-port="8060"
and in my HTML I do this:
<img
src="/media/lw/light-wizzard-in-the-flesh/00-00-G-IAM/image/credits.png" ...
it works fine
but if I do this
<img
src="http://wittywizard.org/media/lw/light-wizzard-in-the-flesh/00-00-G-IAM/image/credits.png";
 ...
it does not work
My problem is that I want to share files between various apps, so the
url may not be the same, and currently this does not work, I have to
host all the data per account and use relative paths, is there a way
around this behavior?

Also on the --deploy-path regarding ?_= vs /ww 
./WittyWizard.wt --docroot "./doc_root;/media" --approot="./app_root"
--deploy-path="/" --http-address="0.0.0.0" --http-port="8060"
Why doesn't this work? I get ?_=
whereas 
./WittyWizard.wt --docroot "./doc_root;/media" --approot="./app_root"
--deploy-path="/ww" --http-address="0.0.0.0" --http-port="8060"
works

My biggest issues is how do I turn http:wittywizard.org into
http:wittywizard.org/w
I have been looking for an haproxy way but do not know how to get this
to work
   acl has_ww_uri path_beg -i /ww  
   redirect location /ww code 301 if !has_ww_uri
   or
   reqirep ^([^\ :]*)\ /(.*) \1\ /ww\2 if !has_ww_uri
Any idea's, how do you do it?

Thanks
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to