Does cocoon support name based virtual hosting?

2002-11-07 Thread GreatOne
Does cocoon support name based virtual hosting?


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Does cocoon support name based virtual hosting?

2002-11-07 Thread Lajos Moczar
Sure, O Great One. Use the WildcardHostMatcher.

Lajos


GreatOne wrote:

Does cocoon support name based virtual hosting?


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]





--
galatea.com
Cocoon training, consulting  support


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: Does cocoon support name based virtual hosting?

2002-11-07 Thread Arjé Cahn
Dave

Put this in your main sitemap, right under map:components

map:selectors
map:selector name=host logger=sitemap.selector.host 
rc=org.apache.cocoon.selection.HostSelector
host name=somesitename1 value=www.some-site.com/
host name=somesitename2 value=www.sine-site-2.com/
/map:selector
/map:selectors

And put this in the pipeline:

map:select type=host
map:when test=somesitename1
map:mount src=file://somesite1/sitemap.xmap check-reload=yes/
/map:when
map:when test=somesitename2
map:mount src=file://somesite2/sitemap.xmap check-reload=yes/
/map:when
/map:select

Now, create 2 different sitemaps for the 2 domains (somesite1, somesite2).

Good luck!

Regards,

Arjé Cahn


-
Content Management Department
Hippo Webworks
Grasweg 35
1031 HW Amsterdam
The Netherlands
Tel  +31 (0)20 6345173 
Fax +31 (0)20 6345179
arje(at)hippo(dot)nl / www.hippo.nl


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: Does cocoon support name based virtual hosting?

2002-11-07 Thread Geoff Howard
you can also do this with matchers.  

There is 
org.apache.cocoon.matching.WildcardHostMatcher and 
org.apache.cocoon.matching.RegexpHostMatcher

Geoff Howard

--- Arjé_Cahn [EMAIL PROTECTED] wrote:
 Dave
 
 Put this in your main sitemap, right under
 map:components
 
 map:selectors
   map:selector name=host
 logger=sitemap.selector.host
 rc=org.apache.cocoon.selection.HostSelector
   host name=somesitename1
 value=www.some-site.com/
   host name=somesitename2
 value=www.sine-site-2.com/
   /map:selector
 /map:selectors
 
 And put this in the pipeline:
 
 map:select type=host
   map:when test=somesitename1
   map:mount src=file://somesite1/sitemap.xmap
 check-reload=yes/
   /map:when
   map:when test=somesitename2
   map:mount src=file://somesite2/sitemap.xmap
 check-reload=yes/
   /map:when
 /map:select
 
 Now, create 2 different sitemaps for the 2 domains
 (somesite1, somesite2).
 
 Good luck!
 
 Regards,
 
 Arjé Cahn
 
 

-
 Content Management Department
 Hippo Webworks
 Grasweg 35
 1031 HW Amsterdam
 The Netherlands
 Tel  +31 (0)20 6345173 
 Fax +31 (0)20 6345179
 arje(at)hippo(dot)nl / www.hippo.nl
 
 

-
 Please check that your question  has not already
 been answered in the
 FAQ before posting.
 http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:  
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]