Ralf,
I already have 3 separate websites (site1, site2, site3 directories in
webapps) working nicely with one author.
The only problem is that if I activate a page from the subtree site1 and
then Proceed to publishing I receive this error:
"Can't activate: : 2 errors detected: Message received from subscriber:
Activation failed | /site1 on site2 Message received from subscriber:
Activation failed | /site1 on site3"
Somehow the activation request is sent also to localhost:8080/site2 and
localhost:8080/site3.
Is it any other setting necessary for that?
Adrian
Ralf Hirning schreef:
Adrian,
if you have a public instance per site you can use this mechanism in
dead.
- configure subscribers for each site
- define the websitesubscription(example site1):
-- fromURI: /site1
--repository: website
-- toURI: /
This will activate only pages in the /site1 tree to the root. Example:
/site1/products -> /products
Have a try
Ralf
Adrian Butnaru schrieb:
OK thanks Ralf I will give a try. Actually I would like to try to
have and author instance and 2 or 3 public instances: site1, site2,
site3. I think I know how to limit the rights of the editors of each
site (by using the ACL). I just want that public instances show
different content.
Is it possible only by hardcoding?
What is actually the use of the variables from
exampleSubSteSubscription and websiteSubscription:
From URI, ToURI ...
in subscriber section in magnoliaAuthor?
A.
Ralf Hirning schreef:
Adrian,
Do you know that you can define virtual URI mappings in Magnolia?
This is implemented as a Filter, but it only works with the URI. So
it cannot be used but you can learn from that filter.
You should create a new filter. This is what to do:
1. Create a filter class extending OncePerRequestAbstractMgnlFilter
2. Implement the doFilter method:
- have a look at info.magnolia.cms.filters.VirtualUriFilter to see
how this can be done
- execute this filter only if URI == "/"
- use request.getServerName() to determine the redirectURL
- redirect with response.sendRedirect(request.getContextPath() +
redirectUrl)
3. Deploy the filter class
4. Start Magnolia
5. Add the filter to the filter chain (config:/server/filters)
before the virtualURIFilter
6. Try out
Ralf
Adrian Butnaru schrieb:
Thanks Guys,
Excellent resources but I am running Magnolia with Tomcat only. Should
I try to edit the virtual hosts in server.xml and to direct each host
to the URLs of each subtree from the magnolia public instance?
Has anybody more experience?
Adrian
On Fri, Jan 30, 2009 at 1:44 PM, Ganesh Gembali
<[email protected]> wrote:
Hi Adrian,
Yes its possible. You can do this by configuring the subscribers in
configurations. You can create multiple subscribers there. But you
should
have multiple public instances.
If you dont want multiple public instances , you can achieve this
behavior
by configuring the Webserver setting ( In my case I have used this
option to
run 2 sites with Apache2+ Tomcat + Magnolia 4.x).
Ganesh Gembali,
Software Consultant,
Xebia IT Architects Pvt Ltd,
http://ganeshgembali.wordpress.com.
Adrian Butnaru wrote:
Hi,
Is it possible to handle multiple websites (with respective dms,
users, etc.) only with one Magnolia Author CE instance?
For example to have in website:
--site1
--page1
--page2
--site2
--page3
--page4
and site1 subtree to be published at www.site1.com and site2 at
www.site2.com?
Thanks
A
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------