How to change root url

25 views
Skip to first unread message

sajuptpm

unread,
Mar 26, 2013, 9:26:33 AM3/26/13
to turbo...@googlegroups.com

Craig Small

unread,
Mar 26, 2013, 7:34:27 PM3/26/13
to turbo...@googlegroups.com
I would of thought fiddling with the wsgi configuration would do it.
Doesn't WSGIScriptAlias set where root is?

WSGIScriptAlias /private /home/virtualenv/myproj/My_Project


- Craig

--
Craig Small VK2XLZ http://enc.com.au/ csmall at : enc.com.au
Debian GNU/Linux http://www.debian.org/ csmall at : debian.org
GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5

Alessandro Molina

unread,
Mar 26, 2013, 8:57:55 PM3/26/13
to TurboGears .
If you are using some kind of proxy or mod_wsgi or similar tools it's usually their business to mount the application somewhere.

If you want to do it directly in paste#http probably the most simple way is using PrefixMiddleware, it will make your app available under the specified path.
Keep in mind that if you didn't use tg.url to generate your urls all your links will be broken. Also the application will still be available at both / and /subpath.
You can enable it inside development.ini with:

[filter:proxy-prefix]
use = egg:PasteDeploy#prefix
prefix = /subpath

[app:main]
filter-with = proxy-prefix





--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+...@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at http://groups.google.com/group/turbogears?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages