zyronix / auto-sub

Automatically exported from code.google.com/p/auto-sub
0 stars 0 forks source link

Add webroot variable for all paths #43

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If users run multiple webservices on one machine and use somekind of proxy. A 
webroot variable is needed, or else all the path will revert to 127.0.0.1"/" 
But they might want to use a different root then "/" for example autosub. 

This requires some work, every template, every module which is connected to the 
webinterface need to change and include the webroot variable.

Original issue reported on code.google.com by romke.va...@gmail.com on 15 Feb 2012 at 7:09

GoogleCodeExporter commented 8 years ago
Finnaly had a little time to look at this issue.

Because everyone else uses apache for proxy redicting, I couldn't reproduce 
this enviroment. But now I have. Using this config:

proxy.server = ( "/autosub" => ( ("host" => "127.0.0.1", "port" => 8083)))

Now, first off all there needs to be a new variable called webroot which the 
user can set using the webui. After that we have to tell cherrypy that we are 
using this webroot url.

http://docs.cherrypy.org/dev/refman/tree.html

Check that page for more information.

After that all the URLs need to be rewritten using cheetah templating engine.

Original comment by romke.va...@gmail.com on 21 May 2012 at 1:50

GoogleCodeExporter commented 8 years ago

Original comment by romke.va...@gmail.com on 21 May 2012 at 1:52

GoogleCodeExporter commented 8 years ago
I have fixed this issue in my autosub clone: 
http://code.google.com/r/peteroostewechel-auto-sub/source/browse

There are maybe some forgotten paths but those minor issues can be smoothed out.

Original comment by Peter.Oo...@gmail.com on 19 Oct 2012 at 9:35

GoogleCodeExporter commented 8 years ago
Woah! Didn't see this one coming, thanks man!
I already looked at your code, looks great. Need some minor tuning, but it 
won't be a lot of work.

Thanks again!

Original comment by romke.va...@gmail.com on 20 Oct 2012 at 8:02

GoogleCodeExporter commented 8 years ago
Fixed in latest release, many thanks!

Original comment by romke.va...@gmail.com on 20 Oct 2012 at 8:55

GoogleCodeExporter commented 8 years ago
No problem man, we have improved auto-sub and I learned something about Python 
;)

Original comment by Peter.Oo...@gmail.com on 20 Oct 2012 at 10:16