You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by doahh <ga...@prodia.co.uk> on 2008/05/10 17:54:50 UTC

Install Roller into subdirectory of existing site

Is it possible to install at say:

www.domain.com/blogs

or does it have to go at either of:

www.domain.com 
blogs.domain.com? 

I have been trying to get it and a couple other pieces of software (contents
management systems) working in the first way but haven't had any luck. I am
hoping that I am just missing something simple but I can't find any info on
it.


-- 
View this message in context: http://www.nabble.com/Install-Roller-into-subdirectory-of-existing-site-tp17163071s12275p17163071.html
Sent from the Roller - User mailing list archive at Nabble.com.


Re: Install Roller into subdirectory of existing site

Posted by doahh <ga...@prodia.co.uk>.
Thank you Gabe, you have saved me an immeasurable amount of head scratching
and difficult decisions. Your link above seems to work perfectly and I now
have roller running at localhost/mywebapp/roller. As a quick summary in case
it is of use to someone:

In $TOMCAT_HOME/conf/Catalina/localhost you need the primary context of
'mywebapp' which is just a standard context fragment named 'mywebapp.xml'.
For the secondary context, put a file in the same location called
'mywebapp#roller.xml'. This again is a standard context fragment but it is
important that the docbase of the secondary context is outside of the
webapps as the '#' syntax is not designed to work  inside of the webapps
folder. I am not sure if it is necessary to have both contexts outside of
the webapps folder for this to work but in my case, I did. I found if the
secondary webapp was inside of the webapps folder the server would throw an
error on start. My first context fragment was:

<Context
docBase="/mnt/storage/gavin/work/svn/tootired.net/trunk/web/build/web"
path="/tootired.net"/>

and the second one for roller was:

<Context docBase="/home/gavin/Desktop/roller" path="/tootired.net/roller/"
/>


-- 
View this message in context: http://www.nabble.com/Install-Roller-into-subdirectory-of-existing-site-tp17163071s12275p17167662.html
Sent from the Roller - User mailing list archive at Nabble.com.


Re: Install Roller into subdirectory of existing site

Posted by Gabe Wong <ga...@ngasi.com>.
Gabe Wong wrote:
> doahh wrote:
>> Thanks for the link, I'll read through it in a while.
>> The reason for not deploying in it's own context is that linking to 
>> the blog
>> from the main site would mean the use of a subdomain. As far as I am 
>> aware
>> that would mean that the search engines would see two separate web 
>> sites and
>> dilute the ranking. The idea is that the blogs would help promote the 
>> site
>> with the additional content they carry - a sub domain prevents this.
>>   
> Is there a conflict with the main site and roller (e.g. 
> classes,web.xml, etc.). If not they both can reside within the same
> context.
>
Also if the main app is deployed in the ROOT directory as say 
www.yourdomain.com, then if roller is deployed under say /roller,
then the URL would look like www.yourdomain.com/roller. This should not 
affect search engine rules.


-- 
Regards

Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement
http://www.ngasi.com
NEW! 8.1 - Centrally manage Application Servers across multiple physical servers


Re: Install Roller into subdirectory of existing site

Posted by Gabe Wong <ga...@ngasi.com>.
doahh wrote:
> Thanks for the link, I'll read through it in a while. 
>
> The reason for not deploying in it's own context is that linking to the blog
> from the main site would mean the use of a subdomain. As far as I am aware
> that would mean that the search engines would see two separate web sites and
> dilute the ranking. The idea is that the blogs would help promote the site
> with the additional content they carry - a sub domain prevents this.
>   
Is there a conflict with the main site and roller (e.g. classes,web.xml, 
etc.). If not they both can reside within the same
context.

-- 
Regards

Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement
http://www.ngasi.com
NEW! 8.1 - Centrally manage Application Servers across multiple physical servers


Re: Install Roller into subdirectory of existing site

Posted by doahh <ga...@prodia.co.uk>.
Thanks for the link, I'll read through it in a while. 

The reason for not deploying in it's own context is that linking to the blog
from the main site would mean the use of a subdomain. As far as I am aware
that would mean that the search engines would see two separate web sites and
dilute the ranking. The idea is that the blogs would help promote the site
with the additional content they carry - a sub domain prevents this.
-- 
View this message in context: http://www.nabble.com/Install-Roller-into-subdirectory-of-existing-site-tp17163071s12275p17167128.html
Sent from the Roller - User mailing list archive at Nabble.com.


Re: Install Roller into subdirectory of existing site

Posted by Gabe Wong <ga...@ngasi.com>.
doahh wrote:
> Hi Gabe,
>
> I am very relieved to hear that it is possible and thanks for the
> encouragement.
>
> The problem is simply that I am unsure how to go about doing it and I didn't
> find any documentation. I have been trying to edit the web.xml/struts.xml
> files etc. to try and change the paths Roller uses. From your reply I assume
> it is probably simpler than that?
>
> I have roller set up and running under it's default context of 'roller' but
> moving it to /mywebapp/roller eludes me. Have I missed something in the
> documentation or a config parameter maybe?
>
>   
Hi Doahh,
It seems you want to deploy as a sub-context. This is a little used and 
problematic deployment method as discussed in the following link:
http://marc.info/?l=tomcat-user&w=2&r=1&s=sub-context&q=b

Any reason not to deploy within its own context?


-- 
Regards

Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement
http://www.ngasi.com
NEW! 8.1 - Centrally manage Application Servers across multiple physical servers


Re: Install Roller into subdirectory of existing site

Posted by doahh <ga...@prodia.co.uk>.
Hi Gabe,

I am very relieved to hear that it is possible and thanks for the
encouragement.

The problem is simply that I am unsure how to go about doing it and I didn't
find any documentation. I have been trying to edit the web.xml/struts.xml
files etc. to try and change the paths Roller uses. From your reply I assume
it is probably simpler than that?

I have roller set up and running under it's default context of 'roller' but
moving it to /mywebapp/roller eludes me. Have I missed something in the
documentation or a config parameter maybe?


-- 
View this message in context: http://www.nabble.com/Install-Roller-into-subdirectory-of-existing-site-tp17163071s12275p17165604.html
Sent from the Roller - User mailing list archive at Nabble.com.


Re: Install Roller into subdirectory of existing site

Posted by Gabe Wong <ga...@ngasi.com>.
doahh wrote:
> Is it possible to install at say:
>
> www.domain.com/blogs
>
> or does it have to go at either of:
>
> www.domain.com 
> blogs.domain.com? 
>
> I have been trying to get it and a couple other pieces of software (contents
> management systems) working in the first way but haven't had any luck. I am
> hoping that I am just missing something simple but I can't find any info on
> it.
>
>   
Doahh,
Both scenarios are possible.
Please elaborate on the problems, such as on screen errors, log errors, 
Database, etc.


-- 
Regards

Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement
http://www.ngasi.com
NEW! 8.1 - Centrally manage Application Servers across multiple physical servers