Google Groups Home
Help | Sign in
virtualhostfilter examples?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Tim Williams  
View profile
 More options Oct 11 2005, 6:49 am
From: "Tim Williams" <listser...@tdw.net>
Date: Tue, 11 Oct 2005 11:49:17 +0100
Local: Tues, Oct 11 2005 6:49 am
Subject: virtualhostfilter examples?
I'm considering TurboGears for an upcoming project and am putting together
some test code.   For various reasons I need several domains to point to
different parts of a single website structure as well as to their own
"homepage"   EG

http://www.mydom1.com  ->  root
http://www.mydom2.com  ->  root/mydom2/
http://www.mydom3.com  ->  root/mydom3/
http://www.mydom4.com  ->  under construction page

but also to have  http://www.mydom1.com/mydom2/  etc to be vaild pages in
their own right

I gather I would use virtualhostfilter but are there any examples or
snippets out there that would quickstart my tests (I didn't find its use
obvious from the docs) ?     Or do you have any suggestions for its use?

I will be using CP as the front-end server and not placing it behind Apache
etc

TIA

Tim


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Remi Delon  
View profile
 More options Oct 11 2005, 3:17 pm
From: "Remi Delon" <r...@cherrypy.org>
Date: Tue, 11 Oct 2005 20:17:49 +0100
Local: Tues, Oct 11 2005 3:17 pm
Subject: Re: [cherrypy-users] virtualhostfilter examples?
Hi Tim,

virtualHostFilter is not well-documented yet but here is how you use it:

cherrypy.config.update({
   'http://mydom2.com': {
       'virtualHostFilter.on': True,
       'virtualHostFilter.prefix': '/mydom2'},
   'http://mydom3.com': {
       'virtualHostFilter.on': True,
       'virtualHostFilter.prefix': '/mydom3'},

})

However,this won't work with the current 2.1-rc2 release because specifying
canonical paths for config keys is broken in this version ...
I'll try to fix it tomorow.

Remi.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Remi Delon  
View profile
 More options Oct 11 2005, 3:18 pm
From: "Remi Delon" <r...@cherrypy.org>
Date: Tue, 11 Oct 2005 20:18:09 +0100
Local: Tues, Oct 11 2005 3:18 pm
Subject: Re: [cherrypy-users] virtualhostfilter examples?
Hi Tim,

virtualHostFilter is not well-documented yet but here is how you use it:

cherrypy.config.update({
   'http://mydom2.com': {
       'virtualHostFilter.on': True,
       'virtualHostFilter.prefix': '/mydom2'},
   'http://mydom3.com': {
       'virtualHostFilter.on': True,
       'virtualHostFilter.prefix': '/mydom3'},

})

However,this won't work with the current 2.1-rc2 release because specifying
canonical paths for config keys is broken in this version ...
I'll try to fix it tomorow.

Remi.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Williams (gmail)  
View profile
 More options Oct 14 2005, 12:10 pm
From: "Tim Williams (gmail)" <tdwdot...@gmail.com>
Date: Fri, 14 Oct 2005 17:10:19 +0100
Local: Fri, Oct 14 2005 12:10 pm
Subject: Re: [cherrypy-users] Re: virtualhostfilter examples?
On 11/10/05, Remi Delon <r...@cherrypy.org> wrote:

> virtualHostFilter is not well-documented yet but here is how you use it:

> cherrypy.config.update({
>    'http://mydom2.com': {
>        'virtualHostFilter.on': True,
>        'virtualHostFilter.prefix': '/mydom2'},
>    'http://mydom3.com': {
>        'virtualHostFilter.on': True,
>        'virtualHostFilter.prefix': '/mydom3'},
> })

> However,this won't work with the current 2.1-rc2 release because specifying
> canonical paths for config keys is broken in this version ...
> I'll try to fix it tomorow.

Hi Remi,  thanks for the information. Please can you let me know when
Ticket #344  is resolved, and the new usage details

Tim


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google