You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Christopher Dodunski <Ch...@christopher.net.nz> on 2010/09/26 13:14:17 UTC

Roller 5.0 - multiple domain URLs

Hi Dave,

Thank you for your reply.  I took the plunge, and installed Roller 5 RC2. 
It is the multiple domain URL feature that most interests me - starting
off with six.  But I have had only partial success.  So here is how one of
the six was configured.

1) Created a weblog with a handle of "christopher".  Confirmed as working
fine under the URL http://www.optomus.com:8080/roller/christopher

2) Configured a subdomain on my DNS - http://blog.christopher.net.nz

3) Established an Apache virtual host for this URL, and set the following
mod_proxy directives:

    ProxyPass / ajp://127.0.0.1:8009/roller/christopher/
    ProxyPassReverse / ajp://127.0.0.1:8009/roller/christopher/

4) Added the following directive to roller-custom.properties:

    weblog.absoluteurl.christopher=http://blog.christopher.net.nz

5) Restarted Apache and Tomcat.

If you browse to http://blog.christopher.net.nz you will see what I mean
by partial success.  The correct weblog loads, but the CSS hasn't loaded,
and the links don't work.  I'm guessing my configuration isn't right, as
you are successfully operating several domain URLs from a single instance
of Roller, yes?

Looking forward to finding a solution.

Thanks & regards,

Chris.


> Hi Chris,
>
> Roller 5.0 is basically ready for release and we are at the stage of
> making "release candidates" available for testing and then fixing bugs
> and problems that people encounter. These candidates are not supposed
> to be used in production, but I'm running my site on one right now. I
> would guess that we'll go through 2-3 more RCs and do the official
> release sometime in the next 2 months, but that is just a guess.
>
> Custom themes are stored in the database and that database upgrade
> will take care of migrating them.
>
> Obligatory warning: If you do try an RC, make sure you backup
> everything including your database.
>
> Thanks,
> Dave
>
>
> On Sat, Sep 25, 2010 at 6:04 AM, Christopher Dodunski
> <Ch...@christopher.net.nz> wrote:
>> Hi,
>>
>> I'm currently running Roller 4.
>>
>> I'm wondering if anyone here had an idea as to when Roller 5.0 might be
>> officially released.  If it is likely to be a fair way off, and release
>> candidate 2 is generally considered stable, I might upgrade now rather
>> than wait.
>>
>> Also, are custom themes stored in the database, or do I have to migrate
>> templates/stylesheets across?
>>
>> Thanks & regards,
>>
>> Chris.
>>
>>
>



Re: Roller 5.0 - multiple domain URLs

Posted by Christopher Dodunski <Ch...@christopher.net.nz>.
Hi, is there anyone here who has experience with Roller 5's multi-domain
capability?  (please see below)


> Hi Dave,
>
> Thank you for your reply.  I took the plunge, and installed Roller 5 RC2.
> It is the multiple domain URL feature that most interests me - starting
> off with six.  But I have had only partial success.  So here is how one of
> the six was configured.
>
> 1) Created a weblog with a handle of "christopher".  Confirmed as working
> fine under the URL http://www.optomus.com:8080/roller/christopher
>
> 2) Configured a subdomain on my DNS - http://blog.christopher.net.nz
>
> 3) Established an Apache virtual host for this URL, and set the following
> mod_proxy directives:
>
>     ProxyPass / ajp://127.0.0.1:8009/roller/christopher/
>     ProxyPassReverse / ajp://127.0.0.1:8009/roller/christopher/
>
> 4) Added the following directive to roller-custom.properties:
>
>     weblog.absoluteurl.christopher=http://blog.christopher.net.nz
>
> 5) Restarted Apache and Tomcat.
>
> If you browse to http://blog.christopher.net.nz you will see what I mean
> by partial success.  The correct weblog loads, but the CSS hasn't loaded,
> and the links don't work.  I'm guessing my configuration isn't right, as
> you are successfully operating several domain URLs from a single instance
> of Roller, yes?
>
> Looking forward to finding a solution.
>
> Thanks & regards,
>
> Chris.
>
>
>> Hi Chris,
>>
>> Roller 5.0 is basically ready for release and we are at the stage of
>> making "release candidates" available for testing and then fixing bugs
>> and problems that people encounter. These candidates are not supposed
>> to be used in production, but I'm running my site on one right now. I
>> would guess that we'll go through 2-3 more RCs and do the official
>> release sometime in the next 2 months, but that is just a guess.
>>
>> Custom themes are stored in the database and that database upgrade
>> will take care of migrating them.
>>
>> Obligatory warning: If you do try an RC, make sure you backup
>> everything including your database.
>>
>> Thanks,
>> Dave
>>
>>
>> On Sat, Sep 25, 2010 at 6:04 AM, Christopher Dodunski
>> <Ch...@christopher.net.nz> wrote:
>>> Hi,
>>>
>>> I'm currently running Roller 4.
>>>
>>> I'm wondering if anyone here had an idea as to when Roller 5.0 might be
>>> officially released.  If it is likely to be a fair way off, and release
>>> candidate 2 is generally considered stable, I might upgrade now rather
>>> than wait.
>>>
>>> Also, are custom themes stored in the database, or do I have to migrate
>>> templates/stylesheets across?
>>>
>>> Thanks & regards,
>>>
>>> Chris.
>>>
>>>
>>
>
>



Re: Roller 5.0 - multiple domain URLs [success]

Posted by Dave <sn...@gmail.com>.
Glad to hear you made some progress!

More comments below...


On Wed, Oct 6, 2010 at 9:52 PM, Christopher Dodunski
<Ch...@christopher.net.nz> wrote:
> I'm pleased to report that, after much perseverance, Roller appears
> (mostly) to be running correctly on my web server.  Importantly, the
> multi-domain feature is working, and this is with Tomcat/Roller operating
> behind an Apache HTTP (proxy) server.  This is made possible thanks to the
> Apache mod_proxy module.
>
> My Roller installation is hosting the following six blogs:
>
> weblog.absoluteurl.optomus=http://blog.optomus.com
> weblog.absoluteurl.bread=http://blog.bread.co.nz
> weblog.absoluteurl.capereinga=http://blog.capereinga.co.nz
> weblog.absoluteurl.doubtlessbay=http://blog.doubtlessbay.co
> weblog.absoluteurl.christopher=http://blog.christopher.net.nz
> weblog.absoluteurl.isaac=http://blog.isaac.net.nz
>
> Three of the above are working correctly; three are not.  Roller is
> running from webapps/ROOT context.
>
>
> **Case 1**
> http://blog.capereinga.co.nz/capereinga
> http://blog.doubtlessbay.co/doubtlessbay
> http://blog.isaac.net.nz/isaac
>
> These are working correctly, but I'm unclear as to why it is necessary to
> add the handle name to the end of the URL.  Ideally, one should arrive at
> capereinga blog via http://blog.capereinga.co.nz.  I would expect Roller
> to locate blog.capereinga.co.nz in the header of the incoming HTTP request
> packet, and serve up the correct blog by way of the associated
> 'weblog.absoluteurl' directive.  Instead, http://blog.capereinga.co.nz
> serves up the default (optomus) blog page.

Yes, this is a drawback of the multi-domain setup as it stands in 5.0.


> Here are the mod_proxy directives for the above three domains:
>
> ProxyPass / ajp://127.0.0.1:8009/
> ProxyPassReverse / ajp://127.0.0.1:8009/
>
> **Case 2**
> http://blog.optomus.com/optomus
> http://blog.christopher.net.nz/christopher
>
> These are not working correctly.  Tomcat is responding with the output
> from a Servlet not even belonging to Roller.  This is due to the fact that
> I happen to have web applications under webapps/optomus and
> webapps/christopher.  Maybe a Tomcat configurational change would re route
> these.

Yes, that or an HTTPD config change.


> **Case 3**
> http://blog.bread.co.nz/bread
>
> Really, this blog can be counted under case 1 above.  Except that the
> mod_proxy directive is set to:
>
> ProxyPass / ajp://127.0.0.1:8009/bread/
> ProxyPassReverse / ajp://127.0.0.1:8009/bread/
>
> I hoped this would allow me to use http://blog.bread.co.nz, without the
> blog handle at the end.  It does, but, unfortunately, also produces the
> original problem of bad URLs inside the HTML.  For example, CSS is not
> located and loaded.
>
> So, although Roller is now multi-domain functional, certain problems
> persist.  I'm not yet at the stage of producing a Roller HOWTO that would
> give consistent, satisfactory results for those running Roller behind an
> Apache HTTP proxy server.

That would be a wonderful thing and I'd be happy to help!

Thanks,
Dave

Re: Roller 5.0 - multiple domain URLs [success]

Posted by Christopher Dodunski <Ch...@christopher.net.nz>.
I'm pleased to report that, after much perseverance, Roller appears
(mostly) to be running correctly on my web server.  Importantly, the
multi-domain feature is working, and this is with Tomcat/Roller operating
behind an Apache HTTP (proxy) server.  This is made possible thanks to the
Apache mod_proxy module.

My Roller installation is hosting the following six blogs:

weblog.absoluteurl.optomus=http://blog.optomus.com
weblog.absoluteurl.bread=http://blog.bread.co.nz
weblog.absoluteurl.capereinga=http://blog.capereinga.co.nz
weblog.absoluteurl.doubtlessbay=http://blog.doubtlessbay.co
weblog.absoluteurl.christopher=http://blog.christopher.net.nz
weblog.absoluteurl.isaac=http://blog.isaac.net.nz

Three of the above are working correctly; three are not.  Roller is
running from webapps/ROOT context.


**Case 1**
http://blog.capereinga.co.nz/capereinga
http://blog.doubtlessbay.co/doubtlessbay
http://blog.isaac.net.nz/isaac

These are working correctly, but I'm unclear as to why it is necessary to
add the handle name to the end of the URL.  Ideally, one should arrive at
capereinga blog via http://blog.capereinga.co.nz.  I would expect Roller
to locate blog.capereinga.co.nz in the header of the incoming HTTP request
packet, and serve up the correct blog by way of the associated
'weblog.absoluteurl' directive.  Instead, http://blog.capereinga.co.nz
serves up the default (optomus) blog page.

Here are the mod_proxy directives for the above three domains:

ProxyPass / ajp://127.0.0.1:8009/
ProxyPassReverse / ajp://127.0.0.1:8009/


**Case 2**
http://blog.optomus.com/optomus
http://blog.christopher.net.nz/christopher

These are not working correctly.  Tomcat is responding with the output
from a Servlet not even belonging to Roller.  This is due to the fact that
I happen to have web applications under webapps/optomus and
webapps/christopher.  Maybe a Tomcat configurational change would re route
these.


**Case 3**
http://blog.bread.co.nz/bread

Really, this blog can be counted under case 1 above.  Except that the
mod_proxy directive is set to:

ProxyPass / ajp://127.0.0.1:8009/bread/
ProxyPassReverse / ajp://127.0.0.1:8009/bread/

I hoped this would allow me to use http://blog.bread.co.nz, without the
blog handle at the end.  It does, but, unfortunately, also produces the
original problem of bad URLs inside the HTML.  For example, CSS is not
located and loaded.

So, although Roller is now multi-domain functional, certain problems
persist.  I'm not yet at the stage of producing a Roller HOWTO that would
give consistent, satisfactory results for those running Roller behind an
Apache HTTP proxy server.

Regards,

Chris Dodunski.


Re: Roller 5.0 - multiple domain URLs

Posted by Frans Thamura <fr...@meruvian.org>.
we have roller 4.0

http://blogs.mervpolis.com

will try to upgrade to 5.0

the old 5.0b, make several user cannot login and blog

will update shortly

F

On Tue, Oct 12, 2010 at 8:11 PM, Dave <sn...@gmail.com> wrote:
> On Sun, Oct 10, 2010 at 6:53 AM, Frans Thamura <fr...@meruvian.org> wrote:
>> just wanna to know. when will 5.0 released?
>
> Once all issues that we want to resolve are resolved and we have
> enough feedback from the community then we'll vote it out. Personally,
> I think we are very closed and should probably call for a release vote
> on the next RC.
>
> For those out there waiting for 5.0: have you tried 5.0 and made sure
> it works for you, provided feedback, reported bugs etc.?
>
> - Dave
>
>
>
>> On Fri, Oct 8, 2010 at 7:27 PM, Dave <sn...@gmail.com> wrote:
>>> Congrats on working out the multi-domain setup! I was afraid you were
>>> about to give up ;-)
>>>
>>> Yes, that is a known bug in RC2. A couple of paths that were supposed
>>> to start with ${user.home} got hardcoded to '/home/dave'. The
>>> workaround is to set properties to point to the directory in which you
>>> want mediafile uploads stored:
>>>
>>>   mediafiles.storage.dir= ... PATH TO MEDIA FILES DIR ...
>>>   search.index.dir= ... PATH TO SEARCH INDEX ...
>>>
>>> (I think you already fixed the search.index.dir one)
>>>
>>> I usually create a roller_data directory somewhere with subdirectories
>>> for mediafiles and search-index.
>>>
>>> Hope that helps...
>>>
>>> - Dave
>>>
>>>
>>>
>>> On Fri, Oct 8, 2010 at 2:26 AM, Christopher Dodunski
>>> <Ch...@christopher.net.nz> wrote:
>>>> Hi Dave,
>>>>
>>>> Also, an error was reported when attempting to upload media and switch to
>>>> custom theme...
>>>>
>>>> Unexpected Exception
>>>> Status Code     500
>>>> Message         org.apache.roller.weblogger.business.FileNotFoundException:
>>>> Invalid path [/home/dave/roller_data/mediafiles/isaac], directory doesn't
>>>> exist.
>>>> Type
>>>> Exception       Roller has encountered and logged an unexpected exception.
>>>>
>>>> Is there a work around for this?
>>>>
>>>> Regards,
>>>>
>>>> Chris.
>>>>
>>>>
>>>>> That is a known bug, which will be fixed in the next RC. You can work
>>>>> around it by setting the 'search.index.dir=' to the place where you
>>>>> want your search index created.
>>>>>
>>>>> Thanks,
>>>>> Dave
>>>>
>>>>
>>>
>>
>

Re: Roller 5.0 - multiple domain URLs

Posted by Dave <sn...@gmail.com>.
On Sun, Oct 10, 2010 at 6:53 AM, Frans Thamura <fr...@meruvian.org> wrote:
> just wanna to know. when will 5.0 released?

Once all issues that we want to resolve are resolved and we have
enough feedback from the community then we'll vote it out. Personally,
I think we are very closed and should probably call for a release vote
on the next RC.

For those out there waiting for 5.0: have you tried 5.0 and made sure
it works for you, provided feedback, reported bugs etc.?

- Dave



> On Fri, Oct 8, 2010 at 7:27 PM, Dave <sn...@gmail.com> wrote:
>> Congrats on working out the multi-domain setup! I was afraid you were
>> about to give up ;-)
>>
>> Yes, that is a known bug in RC2. A couple of paths that were supposed
>> to start with ${user.home} got hardcoded to '/home/dave'. The
>> workaround is to set properties to point to the directory in which you
>> want mediafile uploads stored:
>>
>>   mediafiles.storage.dir= ... PATH TO MEDIA FILES DIR ...
>>   search.index.dir= ... PATH TO SEARCH INDEX ...
>>
>> (I think you already fixed the search.index.dir one)
>>
>> I usually create a roller_data directory somewhere with subdirectories
>> for mediafiles and search-index.
>>
>> Hope that helps...
>>
>> - Dave
>>
>>
>>
>> On Fri, Oct 8, 2010 at 2:26 AM, Christopher Dodunski
>> <Ch...@christopher.net.nz> wrote:
>>> Hi Dave,
>>>
>>> Also, an error was reported when attempting to upload media and switch to
>>> custom theme...
>>>
>>> Unexpected Exception
>>> Status Code     500
>>> Message         org.apache.roller.weblogger.business.FileNotFoundException:
>>> Invalid path [/home/dave/roller_data/mediafiles/isaac], directory doesn't
>>> exist.
>>> Type
>>> Exception       Roller has encountered and logged an unexpected exception.
>>>
>>> Is there a work around for this?
>>>
>>> Regards,
>>>
>>> Chris.
>>>
>>>
>>>> That is a known bug, which will be fixed in the next RC. You can work
>>>> around it by setting the 'search.index.dir=' to the place where you
>>>> want your search index created.
>>>>
>>>> Thanks,
>>>> Dave
>>>
>>>
>>
>

Re: Roller 5.0 - multiple domain URLs

Posted by Frans Thamura <fr...@meruvian.org>.
just wanna to know. when will 5.0 released?

F


On Fri, Oct 8, 2010 at 7:27 PM, Dave <sn...@gmail.com> wrote:
> Congrats on working out the multi-domain setup! I was afraid you were
> about to give up ;-)
>
> Yes, that is a known bug in RC2. A couple of paths that were supposed
> to start with ${user.home} got hardcoded to '/home/dave'. The
> workaround is to set properties to point to the directory in which you
> want mediafile uploads stored:
>
>   mediafiles.storage.dir= ... PATH TO MEDIA FILES DIR ...
>   search.index.dir= ... PATH TO SEARCH INDEX ...
>
> (I think you already fixed the search.index.dir one)
>
> I usually create a roller_data directory somewhere with subdirectories
> for mediafiles and search-index.
>
> Hope that helps...
>
> - Dave
>
>
>
> On Fri, Oct 8, 2010 at 2:26 AM, Christopher Dodunski
> <Ch...@christopher.net.nz> wrote:
>> Hi Dave,
>>
>> Also, an error was reported when attempting to upload media and switch to
>> custom theme...
>>
>> Unexpected Exception
>> Status Code     500
>> Message         org.apache.roller.weblogger.business.FileNotFoundException:
>> Invalid path [/home/dave/roller_data/mediafiles/isaac], directory doesn't
>> exist.
>> Type
>> Exception       Roller has encountered and logged an unexpected exception.
>>
>> Is there a work around for this?
>>
>> Regards,
>>
>> Chris.
>>
>>
>>> That is a known bug, which will be fixed in the next RC. You can work
>>> around it by setting the 'search.index.dir=' to the place where you
>>> want your search index created.
>>>
>>> Thanks,
>>> Dave
>>
>>
>

Re: Roller 5.0 - multiple domain URLs

Posted by Dave <sn...@gmail.com>.
On Sun, Oct 10, 2010 at 6:26 AM, Christopher Dodunski
<Ch...@christopher.net.nz> wrote:
> Hi Dave,
>
> On the home straight now... the mediafiles and search-index issues are
> sorted.  And a simple mod_rewrite directive has eliminated the need to
> include handles in URLs.
>
>> Congrats on working out the multi-domain setup! I was afraid you were
>> about to give up ;-)
>
> Give up??  Never!!  Roller is well worth the effort.  :-)
>
> Incidentally, are you seeking additional committers to this project?  It's
> about time I considered giving back to the Apache open source community.
> Obviously, though, it takes time to get up to speed with the source code
> for a project of this size.  Do you have UML/ERM drawings or such like
> that might assist in this regard?

Yes! Most of the developer oriented resources are here:
   https://cwiki.apache.org/confluence/display/ROLLER/Developers+Resources

There is an ERM diagram too, but it is a little out of date:
   http://rollerweblogger.org/roller/resource/datamodel40.png

Thanks,
- Dave

Re: Roller 5.0 - multiple domain URLs

Posted by Christopher Dodunski <Ch...@christopher.net.nz>.
Hi Dave,

On the home straight now... the mediafiles and search-index issues are
sorted.  And a simple mod_rewrite directive has eliminated the need to
include handles in URLs.

> Congrats on working out the multi-domain setup! I was afraid you were
> about to give up ;-)

Give up??  Never!!  Roller is well worth the effort.  :-)

Incidentally, are you seeking additional committers to this project?  It's
about time I considered giving back to the Apache open source community. 
Obviously, though, it takes time to get up to speed with the source code
for a project of this size.  Do you have UML/ERM drawings or such like
that might assist in this regard?

Kind regards,

Chris Dodunski.


Re: Roller 5.0 - multiple domain URLs

Posted by Dave <sn...@gmail.com>.
Congrats on working out the multi-domain setup! I was afraid you were
about to give up ;-)

Yes, that is a known bug in RC2. A couple of paths that were supposed
to start with ${user.home} got hardcoded to '/home/dave'. The
workaround is to set properties to point to the directory in which you
want mediafile uploads stored:

   mediafiles.storage.dir= ... PATH TO MEDIA FILES DIR ...
   search.index.dir= ... PATH TO SEARCH INDEX ...

(I think you already fixed the search.index.dir one)

I usually create a roller_data directory somewhere with subdirectories
for mediafiles and search-index.

Hope that helps...

- Dave



On Fri, Oct 8, 2010 at 2:26 AM, Christopher Dodunski
<Ch...@christopher.net.nz> wrote:
> Hi Dave,
>
> Also, an error was reported when attempting to upload media and switch to
> custom theme...
>
> Unexpected Exception
> Status Code     500
> Message         org.apache.roller.weblogger.business.FileNotFoundException:
> Invalid path [/home/dave/roller_data/mediafiles/isaac], directory doesn't
> exist.
> Type
> Exception       Roller has encountered and logged an unexpected exception.
>
> Is there a work around for this?
>
> Regards,
>
> Chris.
>
>
>> That is a known bug, which will be fixed in the next RC. You can work
>> around it by setting the 'search.index.dir=' to the place where you
>> want your search index created.
>>
>> Thanks,
>> Dave
>
>

Re: Roller 5.0 - multiple domain URLs

Posted by Christopher Dodunski <Ch...@christopher.net.nz>.
Hi Dave,

Also, an error was reported when attempting to upload media and switch to
custom theme...

Unexpected Exception
Status Code 	500
Message 	org.apache.roller.weblogger.business.FileNotFoundException:
Invalid path [/home/dave/roller_data/mediafiles/isaac], directory doesn't
exist.
Type
Exception 	Roller has encountered and logged an unexpected exception.

Is there a work around for this?

Regards,

Chris.


> That is a known bug, which will be fixed in the next RC. You can work
> around it by setting the 'search.index.dir=' to the place where you
> want your search index created.
>
> Thanks,
> Dave


Re: Roller 5.0 - multiple domain URLs

Posted by Dave <sn...@gmail.com>.
On Wed, Oct 6, 2010 at 7:04 AM, Christopher Dodunski
<Ch...@christopher.net.nz> wrote:
> This time I gave Roller ROOT context by more conventional means - actually
> installed it at webapps/ROOT rather than webapps/roller.  Also, following
> your advice, I have set "http://blog.optomus.com" as the absolute URL
> inside the Admin console.  Next, "/roller" was removed from mod_proxy
> directives for all blog domains.
>
> Using the handle "christopher" as an example:
>
> **URL**
>  http://blog.christopher.net.nz
>
> **roller-custom.properties**
>  weblog.absoluteurl.christopher=http://blog.christopher.net.nz
>
> **blog.christopher.net.nz.conf**
>  ProxyPass / ajp://127.0.0.1:8009/christopher/
>  ProxyPassReverse / ajp://127.0.0.1:8009/christopher/

That all sounds good, except for the ProxyPass which I'm uncertain about.


> Interestingly, browsing to http://blog.optomus.com reveals a simple page
> containing the message "Place your content here".  I notice Roller's
> web.xml contains no default servlet.  Is this normal?

That "Place your content here" page is not from Roller. Seems like
HTTPD is not directing the request to Roller but to some other app.
How does HTTPD decide which requests to send to Roller?


> Also, roller.log reveals some interesting error messages...
>
> INFO  2010-10-06 21:45:11,196 IndexManagerImpl:<init> - index dir:
> /home/dave/roller_data/search-index
> ERROR 2010-10-06 21:45:14,912 IndexManagerImpl:initialize -
> java.io.IOException: No such file or directory
> ERROR 2010-10-06 21:45:15,135 IndexManagerImpl:createIndex - Error
> creating index
> java.io.IOException: Cannot create directory:
> /home/dave/roller_data/search-index
> INFO  2010-10-06 21:45:15,137 IndexManagerImpl:initialize - Index was
> inconsistent. Rebuilding index in the background...
> ERROR 2010-10-06 21:45:15,163 IndexOperation:beginWriting - ERROR creating
> writer
> java.io.IOException: Cannot create directory:
> /home/dave/roller_data/search-index
> INFO  2010-10-06 21:45:15,172 RebuildWebsiteIndexOperation:doRun -
> Completed rebuilding index for all users in '0.022' secs

That is a known bug, which will be fixed in the next RC. You can work
around it by setting the 'search.index.dir=' to the place where you
want your search index created.


> INFO  2010-10-06 21:45:20,119 InitFilter:getAbsoluteUrl -
> http://127.0.0.1:8080
> The last entry wasn't what I was expecting to see.

That should be OK and reflects the URL of the incoming request, not
the one that will be used by Roller if you have an absolute URL set.

Thanks,
Dave

Re: Roller 5.0 - multiple domain URLs

Posted by Christopher Dodunski <Ch...@christopher.net.nz>.
Hi Dave,

This time I gave Roller ROOT context by more conventional means - actually
installed it at webapps/ROOT rather than webapps/roller.  Also, following
your advice, I have set "http://blog.optomus.com" as the absolute URL
inside the Admin console.  Next, "/roller" was removed from mod_proxy
directives for all blog domains.

Using the handle "christopher" as an example:

**URL**
  http://blog.christopher.net.nz

**roller-custom.properties**
  weblog.absoluteurl.christopher=http://blog.christopher.net.nz

**blog.christopher.net.nz.conf**
  ProxyPass / ajp://127.0.0.1:8009/christopher/
  ProxyPassReverse / ajp://127.0.0.1:8009/christopher/

Interestingly, browsing to http://blog.optomus.com reveals a simple page
containing the message "Place your content here".  I notice Roller's
web.xml contains no default servlet.  Is this normal?

Also, roller.log reveals some interesting error messages...

INFO  2010-10-06 21:45:11,196 IndexManagerImpl:<init> - index dir:
/home/dave/roller_data/search-index
ERROR 2010-10-06 21:45:14,912 IndexManagerImpl:initialize -
java.io.IOException: No such file or directory
ERROR 2010-10-06 21:45:15,135 IndexManagerImpl:createIndex - Error
creating index
java.io.IOException: Cannot create directory:
/home/dave/roller_data/search-index
INFO  2010-10-06 21:45:15,137 IndexManagerImpl:initialize - Index was
inconsistent. Rebuilding index in the background...
ERROR 2010-10-06 21:45:15,163 IndexOperation:beginWriting - ERROR creating
writer
java.io.IOException: Cannot create directory:
/home/dave/roller_data/search-index
INFO  2010-10-06 21:45:15,172 RebuildWebsiteIndexOperation:doRun -
Completed rebuilding index for all users in '0.022' secs
ERROR 2010-10-06 21:45:15,173 JPAMediaFileManagerImpl:upgradeFileStorage -
ERROR upgrading
java.lang.NullPointerException
INFO  2010-10-06 21:45:20,119 InitFilter:getAbsoluteUrl -
http://127.0.0.1:8080

The last entry wasn't what I was expecting to see.

Hoping there are some clues here as to what is going wrong.

Regards,

Chris Dodunski.



> On Sun, Oct 3, 2010 at 8:08 PM, Christopher Dodunski
> <Ch...@christopher.net.nz> wrote:
>> Hi Dave,
>>
>> Thank you, I appreciate your help.  I'll persevere with getting Roller
>> working correctly with root context but, ideally, it would be better not
>> to have web applications require root context.  It isn't always possible
>> to grant it.
>
> Roller does not require the root context, but I've only tried the
> multi-domain feature at the root context.
>
>
>> Having said that, it seems that my particular problem has more to do
>> with
>> proxying.  I think the ProxyPassReverse directive is inserting
>> "/roller/christopher" into URLs contained in HTTP headers.  If true,
>> then
>> this is of interest to you.  As I expect many Tomcat containers are
>> operating behind Apache HTTP (proxy) servers.  This becomes an issue
>> with
>> Roller multi-domaining.
>
> Yes, I agree this is a common setup.
>
> My question is how does the proxy know about '/roller'? It seem like
> that is part of the problem and what you want is for the proxy to only
> insert '/christopher'.
>
>
>> How does Roller enquire the hostname when rendering these URLs?  From
>> the
>> header of the incoming HTTP request perhaps?  Roller then responds with
>> the associated blog/handle as defined in roller-custom.properties?
>
> Normally, Roller will determine the URL to use in responses based on
> the URL used in requests. In cases where that will not work, you can
> specify the absolute URL of a site via the Server Admin page.
>
> - Dave
>



Re: Roller 5.0 - multiple domain URLs

Posted by Dave <sn...@gmail.com>.
On Sun, Oct 3, 2010 at 8:08 PM, Christopher Dodunski
<Ch...@christopher.net.nz> wrote:
> Hi Dave,
>
> Thank you, I appreciate your help.  I'll persevere with getting Roller
> working correctly with root context but, ideally, it would be better not
> to have web applications require root context.  It isn't always possible
> to grant it.

Roller does not require the root context, but I've only tried the
multi-domain feature at the root context.


> Having said that, it seems that my particular problem has more to do with
> proxying.  I think the ProxyPassReverse directive is inserting
> "/roller/christopher" into URLs contained in HTTP headers.  If true, then
> this is of interest to you.  As I expect many Tomcat containers are
> operating behind Apache HTTP (proxy) servers.  This becomes an issue with
> Roller multi-domaining.

Yes, I agree this is a common setup.

My question is how does the proxy know about '/roller'? It seem like
that is part of the problem and what you want is for the proxy to only
insert '/christopher'.


> How does Roller enquire the hostname when rendering these URLs?  From the
> header of the incoming HTTP request perhaps?  Roller then responds with
> the associated blog/handle as defined in roller-custom.properties?

Normally, Roller will determine the URL to use in responses based on
the URL used in requests. In cases where that will not work, you can
specify the absolute URL of a site via the Server Admin page.

- Dave

Re: Roller 5.0 - multiple domain URLs

Posted by Christopher Dodunski <Ch...@christopher.net.nz>.
Hi Dave,

Thank you, I appreciate your help.  I'll persevere with getting Roller
working correctly with root context but, ideally, it would be better not
to have web applications require root context.  It isn't always possible
to grant it.

Having said that, it seems that my particular problem has more to do with
proxying.  I think the ProxyPassReverse directive is inserting
"/roller/christopher" into URLs contained in HTTP headers.  If true, then
this is of interest to you.  As I expect many Tomcat containers are
operating behind Apache HTTP (proxy) servers.  This becomes an issue with
Roller multi-domaining.

How does Roller enquire the hostname when rendering these URLs?  From the
header of the incoming HTTP request perhaps?  Roller then responds with
the associated blog/handle as defined in roller-custom.properties?

Thanks & regards,

Chris Dodunski.


> On Sat, Oct 2, 2010 at 3:45 PM, Christopher Dodunski
> <Ch...@christopher.net.nz> wrote:
>> I have discovered a hidden pattern in the bad URLs served up by
>> Tomcat/Roller, which I think may shine light on the matter.
>>
>> Firstly, regarding the below directives:
>>
>>    ProxyPass / ajp://127.0.0.1:8009/roller/christopher/
>>    ProxyPassReverse / ajp://127.0.0.1:8009/roller/christopher/
>>
>> I am informed by the boys at Rimu Hosting (my VPS provider) that "The
>> proxypass statements do not provide any inherant redirection, in this
>> case
>> they merely mask the /roller/christopher location."
>
> I'm not that familiar with ProxyPass or ProxyPassReverse, but I don't
> understand why those URLs above include the word '/roller/'. If you
> have Roller installed at the root context, you should not need that.
>
> - Dave
>
>
>> So I selected four of the bad URLs, and pasted them directly into my
>> browser.  The resulting '404' error responses (below) reveal
>> discrepancies
>> in the paths contained in the URLs compared to the paths displayed in
>> the
>> error messages.  Namely, the latter are all preceded by
>> "/roller/christopher" which, I'm guessing, is not what we want to see.
>>
>> http://blog.christopher.net.nz/roller/roller-ui/yui/base/base-min.css
>> Sorry! We couldn't find your document
>> Status Code     404
>> Message        
>> /roller/christopher/roller/roller-ui/yui/base/base-min.css
>> Type
>> Exception       The file that you requested could not be found on this
>> server.
>>
>> http://blog.christopher.net.nz/christopher/page/style.css
>> Sorry! We couldn't find your document
>> Status Code     404
>> Message         /roller/christopher/christopher/page/style.css
>> Type
>> Exception       The file that you requested could not be found on this
>> server.
>>
>> http://blog.christopher.net.nz/christopher/page/archives
>> Sorry! We couldn't find your document
>> Status Code     404
>> Message         /roller/christopher/christopher/page/archives
>> Type
>> Exception       The file that you requested could not be found on this
>> server.
>>
>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>> Sorry! We couldn't find your document
>> Status Code     404
>> Message         /roller/christopher/christopher/feed/entries/atom
>> Type
>> Exception       The file that you requested could not be found on this
>> server.
>>
>> Regards,
>>
>> Chris Dodunski.
>>
>>
>



Re: Roller 5.0 - multiple domain URLs

Posted by Dave <sn...@gmail.com>.
On Sat, Oct 2, 2010 at 3:45 PM, Christopher Dodunski
<Ch...@christopher.net.nz> wrote:
> I have discovered a hidden pattern in the bad URLs served up by
> Tomcat/Roller, which I think may shine light on the matter.
>
> Firstly, regarding the below directives:
>
>    ProxyPass / ajp://127.0.0.1:8009/roller/christopher/
>    ProxyPassReverse / ajp://127.0.0.1:8009/roller/christopher/
>
> I am informed by the boys at Rimu Hosting (my VPS provider) that "The
> proxypass statements do not provide any inherant redirection, in this case
> they merely mask the /roller/christopher location."

I'm not that familiar with ProxyPass or ProxyPassReverse, but I don't
understand why those URLs above include the word '/roller/'. If you
have Roller installed at the root context, you should not need that.

- Dave


> So I selected four of the bad URLs, and pasted them directly into my
> browser.  The resulting '404' error responses (below) reveal discrepancies
> in the paths contained in the URLs compared to the paths displayed in the
> error messages.  Namely, the latter are all preceded by
> "/roller/christopher" which, I'm guessing, is not what we want to see.
>
> http://blog.christopher.net.nz/roller/roller-ui/yui/base/base-min.css
> Sorry! We couldn't find your document
> Status Code     404
> Message         /roller/christopher/roller/roller-ui/yui/base/base-min.css
> Type
> Exception       The file that you requested could not be found on this server.
>
> http://blog.christopher.net.nz/christopher/page/style.css
> Sorry! We couldn't find your document
> Status Code     404
> Message         /roller/christopher/christopher/page/style.css
> Type
> Exception       The file that you requested could not be found on this server.
>
> http://blog.christopher.net.nz/christopher/page/archives
> Sorry! We couldn't find your document
> Status Code     404
> Message         /roller/christopher/christopher/page/archives
> Type
> Exception       The file that you requested could not be found on this server.
>
> http://blog.christopher.net.nz/christopher/feed/entries/atom
> Sorry! We couldn't find your document
> Status Code     404
> Message         /roller/christopher/christopher/feed/entries/atom
> Type
> Exception       The file that you requested could not be found on this server.
>
> Regards,
>
> Chris Dodunski.
>
>

Re: Roller 5.0 - multiple domain URLs

Posted by Christopher Dodunski <Ch...@christopher.net.nz>.
Hi Dave,

I have discovered a hidden pattern in the bad URLs served up by
Tomcat/Roller, which I think may shine light on the matter.

Firstly, regarding the below directives:

    ProxyPass / ajp://127.0.0.1:8009/roller/christopher/
    ProxyPassReverse / ajp://127.0.0.1:8009/roller/christopher/

I am informed by the boys at Rimu Hosting (my VPS provider) that "The
proxypass statements do not provide any inherant redirection, in this case
they merely mask the /roller/christopher location."

So I selected four of the bad URLs, and pasted them directly into my
browser.  The resulting '404' error responses (below) reveal discrepancies
in the paths contained in the URLs compared to the paths displayed in the
error messages.  Namely, the latter are all preceded by
"/roller/christopher" which, I'm guessing, is not what we want to see.

http://blog.christopher.net.nz/roller/roller-ui/yui/base/base-min.css
Sorry! We couldn't find your document
Status Code 	404
Message 	/roller/christopher/roller/roller-ui/yui/base/base-min.css
Type
Exception 	The file that you requested could not be found on this server.

http://blog.christopher.net.nz/christopher/page/style.css
Sorry! We couldn't find your document
Status Code 	404
Message 	/roller/christopher/christopher/page/style.css
Type
Exception 	The file that you requested could not be found on this server.

http://blog.christopher.net.nz/christopher/page/archives
Sorry! We couldn't find your document
Status Code  	404
Message 	/roller/christopher/christopher/page/archives
Type
Exception 	The file that you requested could not be found on this server.

http://blog.christopher.net.nz/christopher/feed/entries/atom
Sorry! We couldn't find your document
Status Code 	404
Message 	/roller/christopher/christopher/feed/entries/atom
Type
Exception 	The file that you requested could not be found on this server.

Regards,

Chris Dodunski.


Re: Roller 5.0 - multiple domain URLs

Posted by Dave <sn...@gmail.com>.
I don't manage this mailing list, but I do know that you can
unsubscribe by sending an empty email to the address below:

   user-unsubscribe@roller.apache.org

Hope that helps...

- Dave


On Sat, Oct 2, 2010 at 6:38 PM, Jody Allen
<Jo...@albertahealthservices.ca> wrote:
> Can I please be removed from this e-mail list. I am currently getting endless amount of e-mails that do not pertain to me. Thanks
>
>
> Jody Allen
> Protective Services Team Lead
> B-Team - Foothills Medical Centre
> jody.allen@albertahealthservices.ca
> Dispatch 403-944-1152 Direct 403-944-4637
> Alberta Health Services
> This message, and any documents attached hereto, is intended only for the addressee and may contain privileged or confidential information.  Any unauthorized disclosure is strictly prohibited.  If you have received this message in error, please notify us immediately so that we may correct our internal records.  Please then delete the original message.  Thank you.
> ________________________________________
> From: Dave [snoopdave@gmail.com]
> Sent: October 2, 2010 3:21 PM
> To: user@roller.apache.org
> Subject: Re: Roller 5.0 - multiple domain URLs
>
> I'd be happy to share my configs and hope to do so later this eve.
>
> - Dave
>
>
> On Sat, Oct 2, 2010 at 2:06 AM, Christopher Dodunski
> <Ch...@christopher.net.nz> wrote:
>> Hi Dave,
>>
>> I added a <Context> element to server.xml, which I understand has the
>> effect of giving Roller ROOT context.  Then restarted Tomcat.
>>
>>      <Host name="localhost"  appBase="webapps"
>>            unpackWARs="true" autoDeploy="true"
>>            xmlValidation="false" xmlNamespaceAware="false">
>>
>>        <!-- Added by me to give Roller ROOT context -->
>>        <Context path="" docBase="roller" debug="0"/>
>>
>> Now, when you browse to http://www.optomus.com:8080, Roller presents the
>> default frontpage blog (optomus).  Unfortunately, the original problem
>> persists.
>>
>> It puzzles me that you have successfully implemented multi-domains.  Are
>> you happy to share with me relevant sections of your configuration files,
>> in case the problem is with my configuration?  Otherwise, I guess it's
>> time to look at the source code.  For this to be fruitful, though, I need
>> to gain a clearer understanding of what exactly is wrong with the URLs
>> inside the HTML pages served (all URLs copied below).
>>
>> Regards,
>>
>> Chris.
>>
>>
>>> It is possible that the multi-domain feature only works when Roller is
>>> installed in the root context (i.e. '/' rather than '/roller'). If
>>> possible could you try installing Roller at root instead of '/roller'?
>>>
>>> One way to do this is to put Roller in webapps/ROOT instead of
>>> webapps/roller but there are other ways.
>>>
>>> - Dave
>>>
>>>
>>>
>>> On Fri, Oct 1, 2010 at 9:25 PM, Christopher Dodunski
>>> <Ch...@christopher.net.nz> wrote:
>>>> Hi Dave,
>>>>
>>>> By "Absolute URL mode" I simply mean that I added the following
>>>> directive
>>>> to roller-custom.properties and restarted Tomcat.
>>>>
>>>>    weblog.absoluteurl.christopher=http://blog.christopher.net.nz
>>>>
>>>> I've made no changes in relation to this on my admin page.
>>>>
>>>> Regards,
>>>>
>>>> Chris.
>>>>
>>>>
>>>>> What does "absolute URL mode" and "standard URL mode" mean? Is that
>>>>> Apache HTTPD rewrite terminology?
>>>>>
>>>>> Do you have the "absolute URL to site" set in Roller's Server Admin
>>>>> page?
>>>>>
>>>>> - Dave
>>>>>
>>>>>
>>>>> On Fri, Oct 1, 2010 at 9:01 PM, Christopher Dodunski
>>>>> <Ch...@christopher.net.nz> wrote:
>>>>>> Hi,
>>>>>>
>>>>>> I don't know whether this is of interest, but I've extracted all URLs
>>>>>> from
>>>>>> the HTML when running successfully in 'standard mode', and done the
>>>>>> same
>>>>>> when running unsuccessfully in 'absolute URL mode'.
>>>>>>
>>>>>> **Standard Mode: http://www.optomus.com:8080/roller/christopher/**
>>>>>>
>>>>>> /roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
>>>>>> /roller/roller-ui/yui/base/base-min.css
>>>>>> http://www.optomus.com:8080/roller/christopher/page/style.css
>>>>>> http://www.optomus.com:8080/roller/christopher/rsd
>>>>>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>>>>>> http://www.optomus.com:8080/roller/christopher/feed/entries/rss
>>>>>> http://www.optomus.com:8080/roller/christopher/feed/comments/atom
>>>>>> http://www.optomus.com:8080/roller/christopher/feed/comments/rss
>>>>>> http://www.optomus.com:8080/roller/roller-services/opensearch/christopher
>>>>>> http://www.optomus.com:8080/roller/christopher/page/custom.css
>>>>>> http://www.optomus.com:8080/roller/christopher/
>>>>>> /roller/
>>>>>> http://www.optomus.com:8080/roller/christopher/
>>>>>> http://www.optomus.com:8080/roller/christopher/page/archives
>>>>>> /roller/roller-ui/login-redirect.rol
>>>>>> /roller/christopher/search
>>>>>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>>>>>> http://www.optomus.com:8080/roller/christopher/resource/icons/feed-icon-28x28.png
>>>>>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>>>>>> http://www.optomus.com:8080/roller/christopher/resource/icons/asf-logo.png
>>>>>>
>>>>>>
>>>>>> **Absolute URL Mode: http://blog.christopher.net.nz/**
>>>>>>
>>>>>> /roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
>>>>>> /roller/roller-ui/yui/base/base-min.css
>>>>>> http://blog.christopher.net.nz/christopher/page/style.css
>>>>>> http://blog.christopher.net.nz/christopher/rsd
>>>>>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>>>>>> http://blog.christopher.net.nz/christopher/feed/entries/rss
>>>>>> http://blog.christopher.net.nz/christopher/feed/comments/atom
>>>>>> http://blog.christopher.net.nz/christopher/feed/comments/rss
>>>>>> http://blog.christopher.net.nz/roller-services/opensearch/christopher
>>>>>> http://blog.christopher.net.nz/christopher/page/custom.css
>>>>>> http://blog.christopher.net.nz/christopher/
>>>>>> /roller/
>>>>>> http://blog.christopher.net.nz/christopher/
>>>>>> http://blog.christopher.net.nz/christopher/page/archives
>>>>>> /roller/roller-ui/login-redirect.rol
>>>>>> /roller/christopher/search
>>>>>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>>>>>> http://blog.christopher.net.nz/christopher/resource/icons/feed-icon-28x28.png
>>>>>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>>>>>> http://blog.christopher.net.nz/christopher/resource/icons/asf-logo.png
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Chris.
>>>>>>
>>>>>>
>>>>>>> On Thu, Sep 30, 2010 at 10:56 PM, Christopher Dodunski
>>>>>>> <Ch...@christopher.net.nz>
>>>>>>> 1) Why do I need to be messing with URL rewriting, when Roller
>>>>>>> appears
>>>>>>> to
>>>>>>>> be doing this already by way of the above directive?
>>>>>>>
>>>>>>> I don't do any URL rewriting at all on my mutli-domain site. I don't
>>>>>>> understand why you need it and, in fact, I think it is confusing
>>>>>>> things.
>>>>>>>
>>>>>>>
>>>>>>>> 2) If the CSS and page link URLs are incorrectly formed (seems they
>>>>>>>> lead
>>>>>>>> nowhere), then what exactly is wrong with them?
>>>>>>>
>>>>>>> The CSS URLs start with "/roller/roller-ui" are wrong. If you have
>>>>>>> Roller installed at the ROOT context, then those URLs should start
>>>>>>> with "/roller-ui/". There are some clues in your page that indicate
>>>>>>> that you *are* running at the ROOT, so I don't understand the problem
>>>>>>> here. I guess rewriting could be at fault, or a bug in the new
>>>>>>> Fauxcoli theme that you are using (I use it too).
>>>>>>>
>>>>>>> - Dave
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>
> This message and any attached documents are only for the use of the intended recipient(s), are confidential and may contain privileged information. Any unauthorized review, use, retransmission, or other disclosure is strictly prohibited. If you have received this message in error, please notify the sender immediately, and then delete the original message. Thank you.
>

RE: Roller 5.0 - multiple domain URLs

Posted by Jody Allen <Jo...@albertahealthservices.ca>.
Can I please be removed from this e-mail list. I am currently getting endless amount of e-mails that do not pertain to me. Thanks


Jody Allen
Protective Services Team Lead
B-Team - Foothills Medical Centre
jody.allen@albertahealthservices.ca
Dispatch 403-944-1152 Direct 403-944-4637
Alberta Health Services
This message, and any documents attached hereto, is intended only for the addressee and may contain privileged or confidential information.  Any unauthorized disclosure is strictly prohibited.  If you have received this message in error, please notify us immediately so that we may correct our internal records.  Please then delete the original message.  Thank you.
________________________________________
From: Dave [snoopdave@gmail.com]
Sent: October 2, 2010 3:21 PM
To: user@roller.apache.org
Subject: Re: Roller 5.0 - multiple domain URLs

I'd be happy to share my configs and hope to do so later this eve.

- Dave


On Sat, Oct 2, 2010 at 2:06 AM, Christopher Dodunski
<Ch...@christopher.net.nz> wrote:
> Hi Dave,
>
> I added a <Context> element to server.xml, which I understand has the
> effect of giving Roller ROOT context.  Then restarted Tomcat.
>
>      <Host name="localhost"  appBase="webapps"
>            unpackWARs="true" autoDeploy="true"
>            xmlValidation="false" xmlNamespaceAware="false">
>
>        <!-- Added by me to give Roller ROOT context -->
>        <Context path="" docBase="roller" debug="0"/>
>
> Now, when you browse to http://www.optomus.com:8080, Roller presents the
> default frontpage blog (optomus).  Unfortunately, the original problem
> persists.
>
> It puzzles me that you have successfully implemented multi-domains.  Are
> you happy to share with me relevant sections of your configuration files,
> in case the problem is with my configuration?  Otherwise, I guess it's
> time to look at the source code.  For this to be fruitful, though, I need
> to gain a clearer understanding of what exactly is wrong with the URLs
> inside the HTML pages served (all URLs copied below).
>
> Regards,
>
> Chris.
>
>
>> It is possible that the multi-domain feature only works when Roller is
>> installed in the root context (i.e. '/' rather than '/roller'). If
>> possible could you try installing Roller at root instead of '/roller'?
>>
>> One way to do this is to put Roller in webapps/ROOT instead of
>> webapps/roller but there are other ways.
>>
>> - Dave
>>
>>
>>
>> On Fri, Oct 1, 2010 at 9:25 PM, Christopher Dodunski
>> <Ch...@christopher.net.nz> wrote:
>>> Hi Dave,
>>>
>>> By "Absolute URL mode" I simply mean that I added the following
>>> directive
>>> to roller-custom.properties and restarted Tomcat.
>>>
>>>    weblog.absoluteurl.christopher=http://blog.christopher.net.nz
>>>
>>> I've made no changes in relation to this on my admin page.
>>>
>>> Regards,
>>>
>>> Chris.
>>>
>>>
>>>> What does "absolute URL mode" and "standard URL mode" mean? Is that
>>>> Apache HTTPD rewrite terminology?
>>>>
>>>> Do you have the "absolute URL to site" set in Roller's Server Admin
>>>> page?
>>>>
>>>> - Dave
>>>>
>>>>
>>>> On Fri, Oct 1, 2010 at 9:01 PM, Christopher Dodunski
>>>> <Ch...@christopher.net.nz> wrote:
>>>>> Hi,
>>>>>
>>>>> I don't know whether this is of interest, but I've extracted all URLs
>>>>> from
>>>>> the HTML when running successfully in 'standard mode', and done the
>>>>> same
>>>>> when running unsuccessfully in 'absolute URL mode'.
>>>>>
>>>>> **Standard Mode: http://www.optomus.com:8080/roller/christopher/**
>>>>>
>>>>> /roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
>>>>> /roller/roller-ui/yui/base/base-min.css
>>>>> http://www.optomus.com:8080/roller/christopher/page/style.css
>>>>> http://www.optomus.com:8080/roller/christopher/rsd
>>>>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>>>>> http://www.optomus.com:8080/roller/christopher/feed/entries/rss
>>>>> http://www.optomus.com:8080/roller/christopher/feed/comments/atom
>>>>> http://www.optomus.com:8080/roller/christopher/feed/comments/rss
>>>>> http://www.optomus.com:8080/roller/roller-services/opensearch/christopher
>>>>> http://www.optomus.com:8080/roller/christopher/page/custom.css
>>>>> http://www.optomus.com:8080/roller/christopher/
>>>>> /roller/
>>>>> http://www.optomus.com:8080/roller/christopher/
>>>>> http://www.optomus.com:8080/roller/christopher/page/archives
>>>>> /roller/roller-ui/login-redirect.rol
>>>>> /roller/christopher/search
>>>>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>>>>> http://www.optomus.com:8080/roller/christopher/resource/icons/feed-icon-28x28.png
>>>>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>>>>> http://www.optomus.com:8080/roller/christopher/resource/icons/asf-logo.png
>>>>>
>>>>>
>>>>> **Absolute URL Mode: http://blog.christopher.net.nz/**
>>>>>
>>>>> /roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
>>>>> /roller/roller-ui/yui/base/base-min.css
>>>>> http://blog.christopher.net.nz/christopher/page/style.css
>>>>> http://blog.christopher.net.nz/christopher/rsd
>>>>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>>>>> http://blog.christopher.net.nz/christopher/feed/entries/rss
>>>>> http://blog.christopher.net.nz/christopher/feed/comments/atom
>>>>> http://blog.christopher.net.nz/christopher/feed/comments/rss
>>>>> http://blog.christopher.net.nz/roller-services/opensearch/christopher
>>>>> http://blog.christopher.net.nz/christopher/page/custom.css
>>>>> http://blog.christopher.net.nz/christopher/
>>>>> /roller/
>>>>> http://blog.christopher.net.nz/christopher/
>>>>> http://blog.christopher.net.nz/christopher/page/archives
>>>>> /roller/roller-ui/login-redirect.rol
>>>>> /roller/christopher/search
>>>>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>>>>> http://blog.christopher.net.nz/christopher/resource/icons/feed-icon-28x28.png
>>>>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>>>>> http://blog.christopher.net.nz/christopher/resource/icons/asf-logo.png
>>>>>
>>>>> Regards,
>>>>>
>>>>> Chris.
>>>>>
>>>>>
>>>>>> On Thu, Sep 30, 2010 at 10:56 PM, Christopher Dodunski
>>>>>> <Ch...@christopher.net.nz>
>>>>>> 1) Why do I need to be messing with URL rewriting, when Roller
>>>>>> appears
>>>>>> to
>>>>>>> be doing this already by way of the above directive?
>>>>>>
>>>>>> I don't do any URL rewriting at all on my mutli-domain site. I don't
>>>>>> understand why you need it and, in fact, I think it is confusing
>>>>>> things.
>>>>>>
>>>>>>
>>>>>>> 2) If the CSS and page link URLs are incorrectly formed (seems they
>>>>>>> lead
>>>>>>> nowhere), then what exactly is wrong with them?
>>>>>>
>>>>>> The CSS URLs start with "/roller/roller-ui" are wrong. If you have
>>>>>> Roller installed at the ROOT context, then those URLs should start
>>>>>> with "/roller-ui/". There are some clues in your page that indicate
>>>>>> that you *are* running at the ROOT, so I don't understand the problem
>>>>>> here. I guess rewriting could be at fault, or a bug in the new
>>>>>> Fauxcoli theme that you are using (I use it too).
>>>>>>
>>>>>> - Dave
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>
>
>
>

This message and any attached documents are only for the use of the intended recipient(s), are confidential and may contain privileged information. Any unauthorized review, use, retransmission, or other disclosure is strictly prohibited. If you have received this message in error, please notify the sender immediately, and then delete the original message. Thank you.

Re: Roller 5.0 - multiple domain URLs

Posted by Christopher Dodunski <Ch...@christopher.net.nz>.
Thanks Dave,

I've been searching through the source code for the classes/methods that
render these URLs.  What are your thoughts on my earlier email re.
discrepancies in URL paths?

**WebloggerRuntimeConfig.java**
    /**
     * Get the absolute url to this site.
     *
     * This method will just return the value of the "site.absoluteurl"
     * property if it is set, otherwise it will return the non-persisted
     * value which is set by the InitFilter.
     */
    public static String getAbsoluteContextURL() {

        // db prop takes priority if it exists
        String absURL = getProperty("site.absoluteurl");
        if(absURL != null && absURL.trim().length() > 0) {
            return absURL;
        }

        return absoluteContextURL;
    }


**URLModel.java**
    /** Absolute URL of Roller, e.g. http://localhost:8080/roller */
    public String getAbsoluteSite() {
        String weblogAbsoluteURL =
            WebloggerConfig.getProperty("weblog.absoluteurl." +
weblog.getHandle());
        if (weblogAbsoluteURL != null) {
            return weblogAbsoluteURL;
        } else {
            return WebloggerRuntimeConfig.getAbsoluteContextURL();
        }
    }

Chris.


> I'd be happy to share my configs and hope to do so later this eve.
>
> - Dave


Re: Roller 5.0 - multiple domain URLs

Posted by Dave <sn...@gmail.com>.
I'd be happy to share my configs and hope to do so later this eve.

- Dave


On Sat, Oct 2, 2010 at 2:06 AM, Christopher Dodunski
<Ch...@christopher.net.nz> wrote:
> Hi Dave,
>
> I added a <Context> element to server.xml, which I understand has the
> effect of giving Roller ROOT context.  Then restarted Tomcat.
>
>      <Host name="localhost"  appBase="webapps"
>            unpackWARs="true" autoDeploy="true"
>            xmlValidation="false" xmlNamespaceAware="false">
>
>        <!-- Added by me to give Roller ROOT context -->
>        <Context path="" docBase="roller" debug="0"/>
>
> Now, when you browse to http://www.optomus.com:8080, Roller presents the
> default frontpage blog (optomus).  Unfortunately, the original problem
> persists.
>
> It puzzles me that you have successfully implemented multi-domains.  Are
> you happy to share with me relevant sections of your configuration files,
> in case the problem is with my configuration?  Otherwise, I guess it's
> time to look at the source code.  For this to be fruitful, though, I need
> to gain a clearer understanding of what exactly is wrong with the URLs
> inside the HTML pages served (all URLs copied below).
>
> Regards,
>
> Chris.
>
>
>> It is possible that the multi-domain feature only works when Roller is
>> installed in the root context (i.e. '/' rather than '/roller'). If
>> possible could you try installing Roller at root instead of '/roller'?
>>
>> One way to do this is to put Roller in webapps/ROOT instead of
>> webapps/roller but there are other ways.
>>
>> - Dave
>>
>>
>>
>> On Fri, Oct 1, 2010 at 9:25 PM, Christopher Dodunski
>> <Ch...@christopher.net.nz> wrote:
>>> Hi Dave,
>>>
>>> By "Absolute URL mode" I simply mean that I added the following
>>> directive
>>> to roller-custom.properties and restarted Tomcat.
>>>
>>>    weblog.absoluteurl.christopher=http://blog.christopher.net.nz
>>>
>>> I've made no changes in relation to this on my admin page.
>>>
>>> Regards,
>>>
>>> Chris.
>>>
>>>
>>>> What does "absolute URL mode" and "standard URL mode" mean? Is that
>>>> Apache HTTPD rewrite terminology?
>>>>
>>>> Do you have the "absolute URL to site" set in Roller's Server Admin
>>>> page?
>>>>
>>>> - Dave
>>>>
>>>>
>>>> On Fri, Oct 1, 2010 at 9:01 PM, Christopher Dodunski
>>>> <Ch...@christopher.net.nz> wrote:
>>>>> Hi,
>>>>>
>>>>> I don't know whether this is of interest, but I've extracted all URLs
>>>>> from
>>>>> the HTML when running successfully in 'standard mode', and done the
>>>>> same
>>>>> when running unsuccessfully in 'absolute URL mode'.
>>>>>
>>>>> **Standard Mode: http://www.optomus.com:8080/roller/christopher/**
>>>>>
>>>>> /roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
>>>>> /roller/roller-ui/yui/base/base-min.css
>>>>> http://www.optomus.com:8080/roller/christopher/page/style.css
>>>>> http://www.optomus.com:8080/roller/christopher/rsd
>>>>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>>>>> http://www.optomus.com:8080/roller/christopher/feed/entries/rss
>>>>> http://www.optomus.com:8080/roller/christopher/feed/comments/atom
>>>>> http://www.optomus.com:8080/roller/christopher/feed/comments/rss
>>>>> http://www.optomus.com:8080/roller/roller-services/opensearch/christopher
>>>>> http://www.optomus.com:8080/roller/christopher/page/custom.css
>>>>> http://www.optomus.com:8080/roller/christopher/
>>>>> /roller/
>>>>> http://www.optomus.com:8080/roller/christopher/
>>>>> http://www.optomus.com:8080/roller/christopher/page/archives
>>>>> /roller/roller-ui/login-redirect.rol
>>>>> /roller/christopher/search
>>>>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>>>>> http://www.optomus.com:8080/roller/christopher/resource/icons/feed-icon-28x28.png
>>>>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>>>>> http://www.optomus.com:8080/roller/christopher/resource/icons/asf-logo.png
>>>>>
>>>>>
>>>>> **Absolute URL Mode: http://blog.christopher.net.nz/**
>>>>>
>>>>> /roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
>>>>> /roller/roller-ui/yui/base/base-min.css
>>>>> http://blog.christopher.net.nz/christopher/page/style.css
>>>>> http://blog.christopher.net.nz/christopher/rsd
>>>>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>>>>> http://blog.christopher.net.nz/christopher/feed/entries/rss
>>>>> http://blog.christopher.net.nz/christopher/feed/comments/atom
>>>>> http://blog.christopher.net.nz/christopher/feed/comments/rss
>>>>> http://blog.christopher.net.nz/roller-services/opensearch/christopher
>>>>> http://blog.christopher.net.nz/christopher/page/custom.css
>>>>> http://blog.christopher.net.nz/christopher/
>>>>> /roller/
>>>>> http://blog.christopher.net.nz/christopher/
>>>>> http://blog.christopher.net.nz/christopher/page/archives
>>>>> /roller/roller-ui/login-redirect.rol
>>>>> /roller/christopher/search
>>>>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>>>>> http://blog.christopher.net.nz/christopher/resource/icons/feed-icon-28x28.png
>>>>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>>>>> http://blog.christopher.net.nz/christopher/resource/icons/asf-logo.png
>>>>>
>>>>> Regards,
>>>>>
>>>>> Chris.
>>>>>
>>>>>
>>>>>> On Thu, Sep 30, 2010 at 10:56 PM, Christopher Dodunski
>>>>>> <Ch...@christopher.net.nz>
>>>>>> 1) Why do I need to be messing with URL rewriting, when Roller
>>>>>> appears
>>>>>> to
>>>>>>> be doing this already by way of the above directive?
>>>>>>
>>>>>> I don't do any URL rewriting at all on my mutli-domain site. I don't
>>>>>> understand why you need it and, in fact, I think it is confusing
>>>>>> things.
>>>>>>
>>>>>>
>>>>>>> 2) If the CSS and page link URLs are incorrectly formed (seems they
>>>>>>> lead
>>>>>>> nowhere), then what exactly is wrong with them?
>>>>>>
>>>>>> The CSS URLs start with "/roller/roller-ui" are wrong. If you have
>>>>>> Roller installed at the ROOT context, then those URLs should start
>>>>>> with "/roller-ui/". There are some clues in your page that indicate
>>>>>> that you *are* running at the ROOT, so I don't understand the problem
>>>>>> here. I guess rewriting could be at fault, or a bug in the new
>>>>>> Fauxcoli theme that you are using (I use it too).
>>>>>>
>>>>>> - Dave
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>
>
>
>

Re: Roller 5.0 - multiple domain URLs

Posted by Christopher Dodunski <Ch...@christopher.net.nz>.
Hi Dave,

I added a <Context> element to server.xml, which I understand has the
effect of giving Roller ROOT context.  Then restarted Tomcat.

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

        <!-- Added by me to give Roller ROOT context -->
        <Context path="" docBase="roller" debug="0"/>

Now, when you browse to http://www.optomus.com:8080, Roller presents the
default frontpage blog (optomus).  Unfortunately, the original problem
persists.

It puzzles me that you have successfully implemented multi-domains.  Are
you happy to share with me relevant sections of your configuration files,
in case the problem is with my configuration?  Otherwise, I guess it's
time to look at the source code.  For this to be fruitful, though, I need
to gain a clearer understanding of what exactly is wrong with the URLs
inside the HTML pages served (all URLs copied below).

Regards,

Chris.


> It is possible that the multi-domain feature only works when Roller is
> installed in the root context (i.e. '/' rather than '/roller'). If
> possible could you try installing Roller at root instead of '/roller'?
>
> One way to do this is to put Roller in webapps/ROOT instead of
> webapps/roller but there are other ways.
>
> - Dave
>
>
>
> On Fri, Oct 1, 2010 at 9:25 PM, Christopher Dodunski
> <Ch...@christopher.net.nz> wrote:
>> Hi Dave,
>>
>> By "Absolute URL mode" I simply mean that I added the following
>> directive
>> to roller-custom.properties and restarted Tomcat.
>>
>>    weblog.absoluteurl.christopher=http://blog.christopher.net.nz
>>
>> I've made no changes in relation to this on my admin page.
>>
>> Regards,
>>
>> Chris.
>>
>>
>>> What does "absolute URL mode" and "standard URL mode" mean? Is that
>>> Apache HTTPD rewrite terminology?
>>>
>>> Do you have the "absolute URL to site" set in Roller's Server Admin
>>> page?
>>>
>>> - Dave
>>>
>>>
>>> On Fri, Oct 1, 2010 at 9:01 PM, Christopher Dodunski
>>> <Ch...@christopher.net.nz> wrote:
>>>> Hi,
>>>>
>>>> I don't know whether this is of interest, but I've extracted all URLs
>>>> from
>>>> the HTML when running successfully in 'standard mode', and done the
>>>> same
>>>> when running unsuccessfully in 'absolute URL mode'.
>>>>
>>>> **Standard Mode: http://www.optomus.com:8080/roller/christopher/**
>>>>
>>>> /roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
>>>> /roller/roller-ui/yui/base/base-min.css
>>>> http://www.optomus.com:8080/roller/christopher/page/style.css
>>>> http://www.optomus.com:8080/roller/christopher/rsd
>>>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>>>> http://www.optomus.com:8080/roller/christopher/feed/entries/rss
>>>> http://www.optomus.com:8080/roller/christopher/feed/comments/atom
>>>> http://www.optomus.com:8080/roller/christopher/feed/comments/rss
>>>> http://www.optomus.com:8080/roller/roller-services/opensearch/christopher
>>>> http://www.optomus.com:8080/roller/christopher/page/custom.css
>>>> http://www.optomus.com:8080/roller/christopher/
>>>> /roller/
>>>> http://www.optomus.com:8080/roller/christopher/
>>>> http://www.optomus.com:8080/roller/christopher/page/archives
>>>> /roller/roller-ui/login-redirect.rol
>>>> /roller/christopher/search
>>>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>>>> http://www.optomus.com:8080/roller/christopher/resource/icons/feed-icon-28x28.png
>>>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>>>> http://www.optomus.com:8080/roller/christopher/resource/icons/asf-logo.png
>>>>
>>>>
>>>> **Absolute URL Mode: http://blog.christopher.net.nz/**
>>>>
>>>> /roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
>>>> /roller/roller-ui/yui/base/base-min.css
>>>> http://blog.christopher.net.nz/christopher/page/style.css
>>>> http://blog.christopher.net.nz/christopher/rsd
>>>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>>>> http://blog.christopher.net.nz/christopher/feed/entries/rss
>>>> http://blog.christopher.net.nz/christopher/feed/comments/atom
>>>> http://blog.christopher.net.nz/christopher/feed/comments/rss
>>>> http://blog.christopher.net.nz/roller-services/opensearch/christopher
>>>> http://blog.christopher.net.nz/christopher/page/custom.css
>>>> http://blog.christopher.net.nz/christopher/
>>>> /roller/
>>>> http://blog.christopher.net.nz/christopher/
>>>> http://blog.christopher.net.nz/christopher/page/archives
>>>> /roller/roller-ui/login-redirect.rol
>>>> /roller/christopher/search
>>>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>>>> http://blog.christopher.net.nz/christopher/resource/icons/feed-icon-28x28.png
>>>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>>>> http://blog.christopher.net.nz/christopher/resource/icons/asf-logo.png
>>>>
>>>> Regards,
>>>>
>>>> Chris.
>>>>
>>>>
>>>>> On Thu, Sep 30, 2010 at 10:56 PM, Christopher Dodunski
>>>>> <Ch...@christopher.net.nz>
>>>>> 1) Why do I need to be messing with URL rewriting, when Roller
>>>>> appears
>>>>> to
>>>>>> be doing this already by way of the above directive?
>>>>>
>>>>> I don't do any URL rewriting at all on my mutli-domain site. I don't
>>>>> understand why you need it and, in fact, I think it is confusing
>>>>> things.
>>>>>
>>>>>
>>>>>> 2) If the CSS and page link URLs are incorrectly formed (seems they
>>>>>> lead
>>>>>> nowhere), then what exactly is wrong with them?
>>>>>
>>>>> The CSS URLs start with "/roller/roller-ui" are wrong. If you have
>>>>> Roller installed at the ROOT context, then those URLs should start
>>>>> with "/roller-ui/". There are some clues in your page that indicate
>>>>> that you *are* running at the ROOT, so I don't understand the problem
>>>>> here. I guess rewriting could be at fault, or a bug in the new
>>>>> Fauxcoli theme that you are using (I use it too).
>>>>>
>>>>> - Dave
>>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>



Re: Roller 5.0 - multiple domain URLs

Posted by Dave <sn...@gmail.com>.
It is possible that the multi-domain feature only works when Roller is
installed in the root context (i.e. '/' rather than '/roller'). If
possible could you try installing Roller at root instead of '/roller'?

One way to do this is to put Roller in webapps/ROOT instead of
webapps/roller but there are other ways.

- Dave



On Fri, Oct 1, 2010 at 9:25 PM, Christopher Dodunski
<Ch...@christopher.net.nz> wrote:
> Hi Dave,
>
> By "Absolute URL mode" I simply mean that I added the following directive
> to roller-custom.properties and restarted Tomcat.
>
>    weblog.absoluteurl.christopher=http://blog.christopher.net.nz
>
> I've made no changes in relation to this on my admin page.
>
> Regards,
>
> Chris.
>
>
>> What does "absolute URL mode" and "standard URL mode" mean? Is that
>> Apache HTTPD rewrite terminology?
>>
>> Do you have the "absolute URL to site" set in Roller's Server Admin page?
>>
>> - Dave
>>
>>
>> On Fri, Oct 1, 2010 at 9:01 PM, Christopher Dodunski
>> <Ch...@christopher.net.nz> wrote:
>>> Hi,
>>>
>>> I don't know whether this is of interest, but I've extracted all URLs
>>> from
>>> the HTML when running successfully in 'standard mode', and done the same
>>> when running unsuccessfully in 'absolute URL mode'.
>>>
>>> **Standard Mode: http://www.optomus.com:8080/roller/christopher/**
>>>
>>> /roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
>>> /roller/roller-ui/yui/base/base-min.css
>>> http://www.optomus.com:8080/roller/christopher/page/style.css
>>> http://www.optomus.com:8080/roller/christopher/rsd
>>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>>> http://www.optomus.com:8080/roller/christopher/feed/entries/rss
>>> http://www.optomus.com:8080/roller/christopher/feed/comments/atom
>>> http://www.optomus.com:8080/roller/christopher/feed/comments/rss
>>> http://www.optomus.com:8080/roller/roller-services/opensearch/christopher
>>> http://www.optomus.com:8080/roller/christopher/page/custom.css
>>> http://www.optomus.com:8080/roller/christopher/
>>> /roller/
>>> http://www.optomus.com:8080/roller/christopher/
>>> http://www.optomus.com:8080/roller/christopher/page/archives
>>> /roller/roller-ui/login-redirect.rol
>>> /roller/christopher/search
>>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>>> http://www.optomus.com:8080/roller/christopher/resource/icons/feed-icon-28x28.png
>>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>>> http://www.optomus.com:8080/roller/christopher/resource/icons/asf-logo.png
>>>
>>>
>>> **Absolute URL Mode: http://blog.christopher.net.nz/**
>>>
>>> /roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
>>> /roller/roller-ui/yui/base/base-min.css
>>> http://blog.christopher.net.nz/christopher/page/style.css
>>> http://blog.christopher.net.nz/christopher/rsd
>>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>>> http://blog.christopher.net.nz/christopher/feed/entries/rss
>>> http://blog.christopher.net.nz/christopher/feed/comments/atom
>>> http://blog.christopher.net.nz/christopher/feed/comments/rss
>>> http://blog.christopher.net.nz/roller-services/opensearch/christopher
>>> http://blog.christopher.net.nz/christopher/page/custom.css
>>> http://blog.christopher.net.nz/christopher/
>>> /roller/
>>> http://blog.christopher.net.nz/christopher/
>>> http://blog.christopher.net.nz/christopher/page/archives
>>> /roller/roller-ui/login-redirect.rol
>>> /roller/christopher/search
>>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>>> http://blog.christopher.net.nz/christopher/resource/icons/feed-icon-28x28.png
>>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>>> http://blog.christopher.net.nz/christopher/resource/icons/asf-logo.png
>>>
>>> Regards,
>>>
>>> Chris.
>>>
>>>
>>>> On Thu, Sep 30, 2010 at 10:56 PM, Christopher Dodunski
>>>> <Ch...@christopher.net.nz>
>>>> 1) Why do I need to be messing with URL rewriting, when Roller appears
>>>> to
>>>>> be doing this already by way of the above directive?
>>>>
>>>> I don't do any URL rewriting at all on my mutli-domain site. I don't
>>>> understand why you need it and, in fact, I think it is confusing
>>>> things.
>>>>
>>>>
>>>>> 2) If the CSS and page link URLs are incorrectly formed (seems they
>>>>> lead
>>>>> nowhere), then what exactly is wrong with them?
>>>>
>>>> The CSS URLs start with "/roller/roller-ui" are wrong. If you have
>>>> Roller installed at the ROOT context, then those URLs should start
>>>> with "/roller-ui/". There are some clues in your page that indicate
>>>> that you *are* running at the ROOT, so I don't understand the problem
>>>> here. I guess rewriting could be at fault, or a bug in the new
>>>> Fauxcoli theme that you are using (I use it too).
>>>>
>>>> - Dave
>>>>
>>>
>>>
>>>
>>
>
>
>

Re: Roller 5.0 - multiple domain URLs

Posted by Christopher Dodunski <Ch...@christopher.net.nz>.
Hi Dave,

By "Absolute URL mode" I simply mean that I added the following directive
to roller-custom.properties and restarted Tomcat.

    weblog.absoluteurl.christopher=http://blog.christopher.net.nz

I've made no changes in relation to this on my admin page.

Regards,

Chris.


> What does "absolute URL mode" and "standard URL mode" mean? Is that
> Apache HTTPD rewrite terminology?
>
> Do you have the "absolute URL to site" set in Roller's Server Admin page?
>
> - Dave
>
>
> On Fri, Oct 1, 2010 at 9:01 PM, Christopher Dodunski
> <Ch...@christopher.net.nz> wrote:
>> Hi,
>>
>> I don't know whether this is of interest, but I've extracted all URLs
>> from
>> the HTML when running successfully in 'standard mode', and done the same
>> when running unsuccessfully in 'absolute URL mode'.
>>
>> **Standard Mode: http://www.optomus.com:8080/roller/christopher/**
>>
>> /roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
>> /roller/roller-ui/yui/base/base-min.css
>> http://www.optomus.com:8080/roller/christopher/page/style.css
>> http://www.optomus.com:8080/roller/christopher/rsd
>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>> http://www.optomus.com:8080/roller/christopher/feed/entries/rss
>> http://www.optomus.com:8080/roller/christopher/feed/comments/atom
>> http://www.optomus.com:8080/roller/christopher/feed/comments/rss
>> http://www.optomus.com:8080/roller/roller-services/opensearch/christopher
>> http://www.optomus.com:8080/roller/christopher/page/custom.css
>> http://www.optomus.com:8080/roller/christopher/
>> /roller/
>> http://www.optomus.com:8080/roller/christopher/
>> http://www.optomus.com:8080/roller/christopher/page/archives
>> /roller/roller-ui/login-redirect.rol
>> /roller/christopher/search
>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>> http://www.optomus.com:8080/roller/christopher/resource/icons/feed-icon-28x28.png
>> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
>> http://www.optomus.com:8080/roller/christopher/resource/icons/asf-logo.png
>>
>>
>> **Absolute URL Mode: http://blog.christopher.net.nz/**
>>
>> /roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
>> /roller/roller-ui/yui/base/base-min.css
>> http://blog.christopher.net.nz/christopher/page/style.css
>> http://blog.christopher.net.nz/christopher/rsd
>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>> http://blog.christopher.net.nz/christopher/feed/entries/rss
>> http://blog.christopher.net.nz/christopher/feed/comments/atom
>> http://blog.christopher.net.nz/christopher/feed/comments/rss
>> http://blog.christopher.net.nz/roller-services/opensearch/christopher
>> http://blog.christopher.net.nz/christopher/page/custom.css
>> http://blog.christopher.net.nz/christopher/
>> /roller/
>> http://blog.christopher.net.nz/christopher/
>> http://blog.christopher.net.nz/christopher/page/archives
>> /roller/roller-ui/login-redirect.rol
>> /roller/christopher/search
>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>> http://blog.christopher.net.nz/christopher/resource/icons/feed-icon-28x28.png
>> http://blog.christopher.net.nz/christopher/feed/entries/atom
>> http://blog.christopher.net.nz/christopher/resource/icons/asf-logo.png
>>
>> Regards,
>>
>> Chris.
>>
>>
>>> On Thu, Sep 30, 2010 at 10:56 PM, Christopher Dodunski
>>> <Ch...@christopher.net.nz>
>>> 1) Why do I need to be messing with URL rewriting, when Roller appears
>>> to
>>>> be doing this already by way of the above directive?
>>>
>>> I don't do any URL rewriting at all on my mutli-domain site. I don't
>>> understand why you need it and, in fact, I think it is confusing
>>> things.
>>>
>>>
>>>> 2) If the CSS and page link URLs are incorrectly formed (seems they
>>>> lead
>>>> nowhere), then what exactly is wrong with them?
>>>
>>> The CSS URLs start with "/roller/roller-ui" are wrong. If you have
>>> Roller installed at the ROOT context, then those URLs should start
>>> with "/roller-ui/". There are some clues in your page that indicate
>>> that you *are* running at the ROOT, so I don't understand the problem
>>> here. I guess rewriting could be at fault, or a bug in the new
>>> Fauxcoli theme that you are using (I use it too).
>>>
>>> - Dave
>>>
>>
>>
>>
>



Re: Roller 5.0 - multiple domain URLs

Posted by Dave <sn...@gmail.com>.
What does "absolute URL mode" and "standard URL mode" mean? Is that
Apache HTTPD rewrite terminology?

Do you have the "absolute URL to site" set in Roller's Server Admin page?

- Dave


On Fri, Oct 1, 2010 at 9:01 PM, Christopher Dodunski
<Ch...@christopher.net.nz> wrote:
> Hi,
>
> I don't know whether this is of interest, but I've extracted all URLs from
> the HTML when running successfully in 'standard mode', and done the same
> when running unsuccessfully in 'absolute URL mode'.
>
> **Standard Mode: http://www.optomus.com:8080/roller/christopher/**
>
> /roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
> /roller/roller-ui/yui/base/base-min.css
> http://www.optomus.com:8080/roller/christopher/page/style.css
> http://www.optomus.com:8080/roller/christopher/rsd
> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
> http://www.optomus.com:8080/roller/christopher/feed/entries/rss
> http://www.optomus.com:8080/roller/christopher/feed/comments/atom
> http://www.optomus.com:8080/roller/christopher/feed/comments/rss
> http://www.optomus.com:8080/roller/roller-services/opensearch/christopher
> http://www.optomus.com:8080/roller/christopher/page/custom.css
> http://www.optomus.com:8080/roller/christopher/
> /roller/
> http://www.optomus.com:8080/roller/christopher/
> http://www.optomus.com:8080/roller/christopher/page/archives
> /roller/roller-ui/login-redirect.rol
> /roller/christopher/search
> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
> http://www.optomus.com:8080/roller/christopher/resource/icons/feed-icon-28x28.png
> http://www.optomus.com:8080/roller/christopher/feed/entries/atom
> http://www.optomus.com:8080/roller/christopher/resource/icons/asf-logo.png
>
>
> **Absolute URL Mode: http://blog.christopher.net.nz/**
>
> /roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
> /roller/roller-ui/yui/base/base-min.css
> http://blog.christopher.net.nz/christopher/page/style.css
> http://blog.christopher.net.nz/christopher/rsd
> http://blog.christopher.net.nz/christopher/feed/entries/atom
> http://blog.christopher.net.nz/christopher/feed/entries/rss
> http://blog.christopher.net.nz/christopher/feed/comments/atom
> http://blog.christopher.net.nz/christopher/feed/comments/rss
> http://blog.christopher.net.nz/roller-services/opensearch/christopher
> http://blog.christopher.net.nz/christopher/page/custom.css
> http://blog.christopher.net.nz/christopher/
> /roller/
> http://blog.christopher.net.nz/christopher/
> http://blog.christopher.net.nz/christopher/page/archives
> /roller/roller-ui/login-redirect.rol
> /roller/christopher/search
> http://blog.christopher.net.nz/christopher/feed/entries/atom
> http://blog.christopher.net.nz/christopher/resource/icons/feed-icon-28x28.png
> http://blog.christopher.net.nz/christopher/feed/entries/atom
> http://blog.christopher.net.nz/christopher/resource/icons/asf-logo.png
>
> Regards,
>
> Chris.
>
>
>> On Thu, Sep 30, 2010 at 10:56 PM, Christopher Dodunski
>> <Ch...@christopher.net.nz>
>> 1) Why do I need to be messing with URL rewriting, when Roller appears to
>>> be doing this already by way of the above directive?
>>
>> I don't do any URL rewriting at all on my mutli-domain site. I don't
>> understand why you need it and, in fact, I think it is confusing
>> things.
>>
>>
>>> 2) If the CSS and page link URLs are incorrectly formed (seems they lead
>>> nowhere), then what exactly is wrong with them?
>>
>> The CSS URLs start with "/roller/roller-ui" are wrong. If you have
>> Roller installed at the ROOT context, then those URLs should start
>> with "/roller-ui/". There are some clues in your page that indicate
>> that you *are* running at the ROOT, so I don't understand the problem
>> here. I guess rewriting could be at fault, or a bug in the new
>> Fauxcoli theme that you are using (I use it too).
>>
>> - Dave
>>
>
>
>

Re: Roller 5.0 - multiple domain URLs

Posted by Christopher Dodunski <Ch...@christopher.net.nz>.
Hi,

I don't know whether this is of interest, but I've extracted all URLs from
the HTML when running successfully in 'standard mode', and done the same
when running unsuccessfully in 'absolute URL mode'.

**Standard Mode: http://www.optomus.com:8080/roller/christopher/**

/roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
/roller/roller-ui/yui/base/base-min.css
http://www.optomus.com:8080/roller/christopher/page/style.css
http://www.optomus.com:8080/roller/christopher/rsd
http://www.optomus.com:8080/roller/christopher/feed/entries/atom
http://www.optomus.com:8080/roller/christopher/feed/entries/rss
http://www.optomus.com:8080/roller/christopher/feed/comments/atom
http://www.optomus.com:8080/roller/christopher/feed/comments/rss
http://www.optomus.com:8080/roller/roller-services/opensearch/christopher
http://www.optomus.com:8080/roller/christopher/page/custom.css
http://www.optomus.com:8080/roller/christopher/
/roller/
http://www.optomus.com:8080/roller/christopher/
http://www.optomus.com:8080/roller/christopher/page/archives
/roller/roller-ui/login-redirect.rol
/roller/christopher/search
http://www.optomus.com:8080/roller/christopher/feed/entries/atom
http://www.optomus.com:8080/roller/christopher/resource/icons/feed-icon-28x28.png
http://www.optomus.com:8080/roller/christopher/feed/entries/atom
http://www.optomus.com:8080/roller/christopher/resource/icons/asf-logo.png


**Absolute URL Mode: http://blog.christopher.net.nz/**

/roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
/roller/roller-ui/yui/base/base-min.css
http://blog.christopher.net.nz/christopher/page/style.css
http://blog.christopher.net.nz/christopher/rsd
http://blog.christopher.net.nz/christopher/feed/entries/atom
http://blog.christopher.net.nz/christopher/feed/entries/rss
http://blog.christopher.net.nz/christopher/feed/comments/atom
http://blog.christopher.net.nz/christopher/feed/comments/rss
http://blog.christopher.net.nz/roller-services/opensearch/christopher
http://blog.christopher.net.nz/christopher/page/custom.css
http://blog.christopher.net.nz/christopher/
/roller/
http://blog.christopher.net.nz/christopher/
http://blog.christopher.net.nz/christopher/page/archives
/roller/roller-ui/login-redirect.rol
/roller/christopher/search
http://blog.christopher.net.nz/christopher/feed/entries/atom
http://blog.christopher.net.nz/christopher/resource/icons/feed-icon-28x28.png
http://blog.christopher.net.nz/christopher/feed/entries/atom
http://blog.christopher.net.nz/christopher/resource/icons/asf-logo.png

Regards,

Chris.


> On Thu, Sep 30, 2010 at 10:56 PM, Christopher Dodunski
> <Ch...@christopher.net.nz>
> 1) Why do I need to be messing with URL rewriting, when Roller appears to
>> be doing this already by way of the above directive?
>
> I don't do any URL rewriting at all on my mutli-domain site. I don't
> understand why you need it and, in fact, I think it is confusing
> things.
>
>
>> 2) If the CSS and page link URLs are incorrectly formed (seems they lead
>> nowhere), then what exactly is wrong with them?
>
> The CSS URLs start with "/roller/roller-ui" are wrong. If you have
> Roller installed at the ROOT context, then those URLs should start
> with "/roller-ui/". There are some clues in your page that indicate
> that you *are* running at the ROOT, so I don't understand the problem
> here. I guess rewriting could be at fault, or a bug in the new
> Fauxcoli theme that you are using (I use it too).
>
> - Dave
>



Re: Roller 5.0 - multiple domain URLs

Posted by Christopher Dodunski <Ch...@christopher.net.nz>.
Hi Dave/Tiago,

Thank you for your help.  I'm hoping you could clarify a few points for me...

1) I'm not aware of any URL rewriting going on (never enacted the
directives contained in the document Tiago provided).  The only Apache
proxy directives are the two below.  Could you please confirm these are
correct.

    ProxyPass / ajp://127.0.0.1:8009/roller/christopher/
    ProxyPassReverse / ajp://127.0.0.1:8009/roller/christopher/

The URL http://www.optomus.com:8080/roller/christopher worked fine, with
CSS loaded and page links working correctly, before I added 'absolute URL'
directives to roller-custom.properties.  At this point, this URL ceased
working, but I understand this is normal.  But I'm wondering whether the
two directives above should still contain "/roller/christopher/".  I've
tried just "/roller/" and just "/christopher/", but this doesn't appear to
help the situation.

2) I don't think it is a problem with the Fauxcoli theme, as I have the
same problem with customised versions of the basic theme, as seen here:

    http://blog.bread.co.nz
    http://blog.capereinga.co.nz
    http://blog.doubtlessbay.co

3) I'm a little fuzzy on what is meant by ROOT context.  I simply produced
a WAR from your application, and copied roller.war into
/usr/local/tomcat/webapps.  Tomcat automatically expanded and deployed it,
as you can see below.

optomus:~# ls /usr/local/tomcat/webapps
ROOT  app.war   examples   manager  optomus.war   roller.war   app   docs 
 host-manager  optomus  roller

The ROOT directory contains the default Tomcat front page.

optomus:~# ls /usr/local/tomcat/webapps/ROOT/
RELEASE-NOTES.txt  asf-logo-wide.gif  favicon.ico  index.jsp   tomcat.gif
WEB-INF   build.xml   index.html   tomcat-power.gif   tomcat.svg

Hoping there are some clues in the above so I can get this sorted.  I
appreciate your assistance.

Thanks & regards,

Chris.


> On Thu, Sep 30, 2010 at 10:56 PM, Christopher Dodunski
> <Ch...@christopher.net.nz>
> 1) Why do I need to be messing with URL rewriting, when Roller appears to
>> be doing this already by way of the above directive?
>
> I don't do any URL rewriting at all on my mutli-domain site. I don't
> understand why you need it and, in fact, I think it is confusing
> things.
>
>
>> 2) If the CSS and page link URLs are incorrectly formed (seems they lead
>> nowhere), then what exactly is wrong with them?
>
> The CSS URLs start with "/roller/roller-ui" are wrong. If you have
> Roller installed at the ROOT context, then those URLs should start
> with "/roller-ui/". There are some clues in your page that indicate
> that you *are* running at the ROOT, so I don't understand the problem
> here. I guess rewriting could be at fault, or a bug in the new
> Fauxcoli theme that you are using (I use it too).
>
> - Dave
>



Re: Roller 5.0 - multiple domain URLs

Posted by Dave <sn...@gmail.com>.
On Thu, Sep 30, 2010 at 10:56 PM, Christopher Dodunski
<Ch...@christopher.net.nz>
1) Why do I need to be messing with URL rewriting, when Roller appears to
> be doing this already by way of the above directive?

I don't do any URL rewriting at all on my mutli-domain site. I don't
understand why you need it and, in fact, I think it is confusing
things.


> 2) If the CSS and page link URLs are incorrectly formed (seems they lead
> nowhere), then what exactly is wrong with them?

The CSS URLs start with "/roller/roller-ui" are wrong. If you have
Roller installed at the ROOT context, then those URLs should start
with "/roller-ui/". There are some clues in your page that indicate
that you *are* running at the ROOT, so I don't understand the problem
here. I guess rewriting could be at fault, or a bug in the new
Fauxcoli theme that you are using (I use it too).

- Dave

Re: Roller 5.0 - multiple domain URLs

Posted by Christopher Dodunski <Ch...@christopher.net.nz>.
Hi Tiago & Dave,

Thank you for your responses.

Tiago, I run Apache version 2.2.9.  According to the company that hosts my
VPS (rimuhosting.com), my Apache/Tomcat configuration is already set up to
comprehensively support reverse proxying.  Apparently, the manual steps
described in the document you provided shouldn't be necessary in my case.

Viewing the page source for http://blog.christopher.net.nz reveals the
following URLs:

**CSS**
/roller/roller-ui/yui/reset-fonts-grids/reset-fonts-grids.css
/roller/roller-ui/yui/base/base-min.css
http://blog.christopher.net.nz/christopher/page/style.css

**Three page links**
<a href="/roller/"><span>Optomus Front Page</span></a> [My front page blog]
<a href="http://blog.christopher.net.nz/christopher/"><span>Weblog</span></a>
<a href="/roller/roller-ui/login-redirect.rol"><span>Login</span></a>

The URLs that contain the domain name appear to be correctly formed -
http://blog.christopher.net.nz rather than http://www.optomus.com:8080. 
So the "weblog.absoluteurl.christopher=http://blog.christopher.net.nz"
directive appears to be working fine.

So my questions are:

1) Why do I need to be messing with URL rewriting, when Roller appears to
be doing this already by way of the above directive?

2) If the CSS and page link URLs are incorrectly formed (seems they lead
nowhere), then what exactly is wrong with them?

I guess I need to have a clearer understanding of the problem if I'm to
find the solution.

Kind regards,

Chris Dodunski.


> Chris,
>
> it seems to me that u already did most of the work (configuring
> mod_proxy).
> However, u did miss the "magic" aspect of mod_proxy. Here is a link that
> maybe will help u understand what im trying to say.
>
> http://www.apachetutor.org/admin/reverseproxies#d8
>
> I assume that u are using Apache 2.x. ProxyHTML doesnt work on Apache 1.3.
>
> This is how i achieved multiple hosts, dunno if there is another
> alternative
> to it. Maybe Dave could clarify some more on the subject.
>
> []`s
>
> Tiago Oliveira
>
> 2010/9/30 Christopher Dodunski <Ch...@christopher.net.nz>
>
>> Hi All,
>>
>> I understand Apache Roller is soliciting volunteers to assist with the
>> likes of documentation.  I have a proposal that may be of mutual
>> benefit.
>>
>> Existing documentation doesn't appear to explain the 'multiple domain'
>> functionality of Roller 5.  If someone here is gracious enough to assist
>> me with configuring httpd/mod_proxy/tomcat/roller to host multiple
>> domains
>> (see below), I will document the process.  Along with screenshots, this
>> could then perhaps form part of the Roller 5 documentation which,
>> presently, seems not to deal with this one vital topic.
>>
>> We would dearly like to add weblogging to the list of features offered
>> to
>> clients whose websites we host.  Savvy clients, though, expect to have
>> URLs of the form blog.their-domain.com.  Of course this is easily
>> achieved
>> with Wordpress - multiple instances of.  But this quickly becomes
>> unwieldy, consuming more and more disk space.
>>
>> Hoping Roller 5 is the answer.
>>
>> Regards,
>>
>> Chris Dodunski.
>>
>>
>> > Hi Dave,
>> >
>> > Thank you for your reply.  I took the plunge, and installed Roller 5
>> RC2.
>> > It is the multiple domain URL feature that most interests me -
>> starting
>> > off with six.  But I have had only partial success.  So here is how
>> one
>> of
>> > the six was configured.
>> >
>> > 1) Created a weblog with a handle of "christopher".  Confirmed as
>> working
>> > fine under the URL http://www.optomus.com:8080/roller/christopher
>> >
>> > 2) Configured a subdomain on my DNS - http://blog.christopher.net.nz
>> >
>> > 3) Established an Apache virtual host for this URL, and set the
>> following
>> > mod_proxy directives:
>> >
>> >     ProxyPass / ajp://127.0.0.1:8009/roller/christopher/
>> >     ProxyPassReverse / ajp://127.0.0.1:8009/roller/christopher/
>> >
>> > 4) Added the following directive to roller-custom.properties:
>> >
>> >     weblog.absoluteurl.christopher=http://blog.christopher.net.nz
>> >
>> > 5) Restarted Apache and Tomcat.
>> >
>> > If you browse to http://blog.christopher.net.nz you will see what I
>> mean
>> > by partial success.  The correct weblog loads, but the CSS hasn't
>> loaded,
>> > and the links don't work.  I'm guessing my configuration isn't right,
>> as
>> > you are successfully operating several domain URLs from a single
>> instance
>> > of Roller, yes?
>> >
>> > Looking forward to finding a solution.
>> >
>> > Thanks & regards,
>> >
>> > Chris.
>> >
>> >
>> >> Hi Chris,
>> >>
>> >> Roller 5.0 is basically ready for release and we are at the stage of
>> >> making "release candidates" available for testing and then fixing
>> bugs
>> >> and problems that people encounter. These candidates are not supposed
>> >> to be used in production, but I'm running my site on one right now. I
>> >> would guess that we'll go through 2-3 more RCs and do the official
>> >> release sometime in the next 2 months, but that is just a guess.
>> >>
>> >> Custom themes are stored in the database and that database upgrade
>> >> will take care of migrating them.
>> >>
>> >> Obligatory warning: If you do try an RC, make sure you backup
>> >> everything including your database.
>> >>
>> >> Thanks,
>> >> Dave
>> >>
>> >>
>> >> On Sat, Sep 25, 2010 at 6:04 AM, Christopher Dodunski
>> >> <Ch...@christopher.net.nz> wrote:
>> >>> Hi,
>> >>>
>> >>> I'm currently running Roller 4.
>> >>>
>> >>> I'm wondering if anyone here had an idea as to when Roller 5.0 might
>> be
>> >>> officially released.  If it is likely to be a fair way off, and
>> release
>> >>> candidate 2 is generally considered stable, I might upgrade now
>> rather
>> >>> than wait.
>> >>>
>> >>> Also, are custom themes stored in the database, or do I have to
>> migrate
>> >>> templates/stylesheets across?
>> >>>
>> >>> Thanks & regards,
>> >>>
>> >>> Chris.
>> >>>
>> >>>
>> >>
>> >
>> >
>>
>>
>>
>



Re: Roller 5.0 - multiple domain URLs

Posted by Tiago Oliveira <ti...@integrativa.com.br>.
Chris,

it seems to me that u already did most of the work (configuring mod_proxy).
However, u did miss the "magic" aspect of mod_proxy. Here is a link that
maybe will help u understand what im trying to say.

http://www.apachetutor.org/admin/reverseproxies#d8

I assume that u are using Apache 2.x. ProxyHTML doesnt work on Apache 1.3.

This is how i achieved multiple hosts, dunno if there is another alternative
to it. Maybe Dave could clarify some more on the subject.

[]`s

Tiago Oliveira

2010/9/30 Christopher Dodunski <Ch...@christopher.net.nz>

> Hi All,
>
> I understand Apache Roller is soliciting volunteers to assist with the
> likes of documentation.  I have a proposal that may be of mutual benefit.
>
> Existing documentation doesn't appear to explain the 'multiple domain'
> functionality of Roller 5.  If someone here is gracious enough to assist
> me with configuring httpd/mod_proxy/tomcat/roller to host multiple domains
> (see below), I will document the process.  Along with screenshots, this
> could then perhaps form part of the Roller 5 documentation which,
> presently, seems not to deal with this one vital topic.
>
> We would dearly like to add weblogging to the list of features offered to
> clients whose websites we host.  Savvy clients, though, expect to have
> URLs of the form blog.their-domain.com.  Of course this is easily achieved
> with Wordpress - multiple instances of.  But this quickly becomes
> unwieldy, consuming more and more disk space.
>
> Hoping Roller 5 is the answer.
>
> Regards,
>
> Chris Dodunski.
>
>
> > Hi Dave,
> >
> > Thank you for your reply.  I took the plunge, and installed Roller 5 RC2.
> > It is the multiple domain URL feature that most interests me - starting
> > off with six.  But I have had only partial success.  So here is how one
> of
> > the six was configured.
> >
> > 1) Created a weblog with a handle of "christopher".  Confirmed as working
> > fine under the URL http://www.optomus.com:8080/roller/christopher
> >
> > 2) Configured a subdomain on my DNS - http://blog.christopher.net.nz
> >
> > 3) Established an Apache virtual host for this URL, and set the following
> > mod_proxy directives:
> >
> >     ProxyPass / ajp://127.0.0.1:8009/roller/christopher/
> >     ProxyPassReverse / ajp://127.0.0.1:8009/roller/christopher/
> >
> > 4) Added the following directive to roller-custom.properties:
> >
> >     weblog.absoluteurl.christopher=http://blog.christopher.net.nz
> >
> > 5) Restarted Apache and Tomcat.
> >
> > If you browse to http://blog.christopher.net.nz you will see what I mean
> > by partial success.  The correct weblog loads, but the CSS hasn't loaded,
> > and the links don't work.  I'm guessing my configuration isn't right, as
> > you are successfully operating several domain URLs from a single instance
> > of Roller, yes?
> >
> > Looking forward to finding a solution.
> >
> > Thanks & regards,
> >
> > Chris.
> >
> >
> >> Hi Chris,
> >>
> >> Roller 5.0 is basically ready for release and we are at the stage of
> >> making "release candidates" available for testing and then fixing bugs
> >> and problems that people encounter. These candidates are not supposed
> >> to be used in production, but I'm running my site on one right now. I
> >> would guess that we'll go through 2-3 more RCs and do the official
> >> release sometime in the next 2 months, but that is just a guess.
> >>
> >> Custom themes are stored in the database and that database upgrade
> >> will take care of migrating them.
> >>
> >> Obligatory warning: If you do try an RC, make sure you backup
> >> everything including your database.
> >>
> >> Thanks,
> >> Dave
> >>
> >>
> >> On Sat, Sep 25, 2010 at 6:04 AM, Christopher Dodunski
> >> <Ch...@christopher.net.nz> wrote:
> >>> Hi,
> >>>
> >>> I'm currently running Roller 4.
> >>>
> >>> I'm wondering if anyone here had an idea as to when Roller 5.0 might be
> >>> officially released.  If it is likely to be a fair way off, and release
> >>> candidate 2 is generally considered stable, I might upgrade now rather
> >>> than wait.
> >>>
> >>> Also, are custom themes stored in the database, or do I have to migrate
> >>> templates/stylesheets across?
> >>>
> >>> Thanks & regards,
> >>>
> >>> Chris.
> >>>
> >>>
> >>
> >
> >
>
>
>

Re: Roller 5.0 - multiple domain URLs

Posted by David Johnson <sn...@gmail.com>.
Here are some pages with info about multi-domain sites:

What's new in Roller 5.0
   https://cwiki.apache.org/confluence/x/bgE7AQ
   http://www.slideshare.net/snoopdave/whats-new-in-roller5

Proposal for simple multi-domain
   https://cwiki.apache.org/confluence/x/vScB

The JIRA issue for simple multi-domain
   https://issues.apache.org/jira/browse/ROL-1670

Hope that helps...

- Dave


On Sep 30, 2010, at 3:03 AM, Christopher Dodunski wrote:

> Hi All,
> 
> I understand Apache Roller is soliciting volunteers to assist with the
> likes of documentation.  I have a proposal that may be of mutual benefit.
> 
> Existing documentation doesn't appear to explain the 'multiple domain'
> functionality of Roller 5.  If someone here is gracious enough to assist
> me with configuring httpd/mod_proxy/tomcat/roller to host multiple domains
> (see below), I will document the process.  Along with screenshots, this
> could then perhaps form part of the Roller 5 documentation which,
> presently, seems not to deal with this one vital topic.
> 
> We would dearly like to add weblogging to the list of features offered to
> clients whose websites we host.  Savvy clients, though, expect to have
> URLs of the form blog.their-domain.com.  Of course this is easily achieved
> with Wordpress - multiple instances of.  But this quickly becomes
> unwieldy, consuming more and more disk space.
> 
> Hoping Roller 5 is the answer.
> 
> Regards,
> 
> Chris Dodunski.
> 
> 
>> Hi Dave,
>> 
>> Thank you for your reply.  I took the plunge, and installed Roller 5 RC2.
>> It is the multiple domain URL feature that most interests me - starting
>> off with six.  But I have had only partial success.  So here is how one of
>> the six was configured.
>> 
>> 1) Created a weblog with a handle of "christopher".  Confirmed as working
>> fine under the URL http://www.optomus.com:8080/roller/christopher
>> 
>> 2) Configured a subdomain on my DNS - http://blog.christopher.net.nz
>> 
>> 3) Established an Apache virtual host for this URL, and set the following
>> mod_proxy directives:
>> 
>>    ProxyPass / ajp://127.0.0.1:8009/roller/christopher/
>>    ProxyPassReverse / ajp://127.0.0.1:8009/roller/christopher/
>> 
>> 4) Added the following directive to roller-custom.properties:
>> 
>>    weblog.absoluteurl.christopher=http://blog.christopher.net.nz
>> 
>> 5) Restarted Apache and Tomcat.
>> 
>> If you browse to http://blog.christopher.net.nz you will see what I mean
>> by partial success.  The correct weblog loads, but the CSS hasn't loaded,
>> and the links don't work.  I'm guessing my configuration isn't right, as
>> you are successfully operating several domain URLs from a single instance
>> of Roller, yes?
>> 
>> Looking forward to finding a solution.
>> 
>> Thanks & regards,
>> 
>> Chris.
>> 
>> 
>>> Hi Chris,
>>> 
>>> Roller 5.0 is basically ready for release and we are at the stage of
>>> making "release candidates" available for testing and then fixing bugs
>>> and problems that people encounter. These candidates are not supposed
>>> to be used in production, but I'm running my site on one right now. I
>>> would guess that we'll go through 2-3 more RCs and do the official
>>> release sometime in the next 2 months, but that is just a guess.
>>> 
>>> Custom themes are stored in the database and that database upgrade
>>> will take care of migrating them.
>>> 
>>> Obligatory warning: If you do try an RC, make sure you backup
>>> everything including your database.
>>> 
>>> Thanks,
>>> Dave
>>> 
>>> 
>>> On Sat, Sep 25, 2010 at 6:04 AM, Christopher Dodunski
>>> <Ch...@christopher.net.nz> wrote:
>>>> Hi,
>>>> 
>>>> I'm currently running Roller 4.
>>>> 
>>>> I'm wondering if anyone here had an idea as to when Roller 5.0 might be
>>>> officially released.  If it is likely to be a fair way off, and release
>>>> candidate 2 is generally considered stable, I might upgrade now rather
>>>> than wait.
>>>> 
>>>> Also, are custom themes stored in the database, or do I have to migrate
>>>> templates/stylesheets across?
>>>> 
>>>> Thanks & regards,
>>>> 
>>>> Chris.
>>>> 
>>>> 
>>> 
>> 
>> 
> 
> 


Re: Roller 5.0 - multiple domain URLs

Posted by Christopher Dodunski <Ch...@christopher.net.nz>.
Hi All,

I understand Apache Roller is soliciting volunteers to assist with the
likes of documentation.  I have a proposal that may be of mutual benefit.

Existing documentation doesn't appear to explain the 'multiple domain'
functionality of Roller 5.  If someone here is gracious enough to assist
me with configuring httpd/mod_proxy/tomcat/roller to host multiple domains
(see below), I will document the process.  Along with screenshots, this
could then perhaps form part of the Roller 5 documentation which,
presently, seems not to deal with this one vital topic.

We would dearly like to add weblogging to the list of features offered to
clients whose websites we host.  Savvy clients, though, expect to have
URLs of the form blog.their-domain.com.  Of course this is easily achieved
with Wordpress - multiple instances of.  But this quickly becomes
unwieldy, consuming more and more disk space.

Hoping Roller 5 is the answer.

Regards,

Chris Dodunski.


> Hi Dave,
>
> Thank you for your reply.  I took the plunge, and installed Roller 5 RC2.
> It is the multiple domain URL feature that most interests me - starting
> off with six.  But I have had only partial success.  So here is how one of
> the six was configured.
>
> 1) Created a weblog with a handle of "christopher".  Confirmed as working
> fine under the URL http://www.optomus.com:8080/roller/christopher
>
> 2) Configured a subdomain on my DNS - http://blog.christopher.net.nz
>
> 3) Established an Apache virtual host for this URL, and set the following
> mod_proxy directives:
>
>     ProxyPass / ajp://127.0.0.1:8009/roller/christopher/
>     ProxyPassReverse / ajp://127.0.0.1:8009/roller/christopher/
>
> 4) Added the following directive to roller-custom.properties:
>
>     weblog.absoluteurl.christopher=http://blog.christopher.net.nz
>
> 5) Restarted Apache and Tomcat.
>
> If you browse to http://blog.christopher.net.nz you will see what I mean
> by partial success.  The correct weblog loads, but the CSS hasn't loaded,
> and the links don't work.  I'm guessing my configuration isn't right, as
> you are successfully operating several domain URLs from a single instance
> of Roller, yes?
>
> Looking forward to finding a solution.
>
> Thanks & regards,
>
> Chris.
>
>
>> Hi Chris,
>>
>> Roller 5.0 is basically ready for release and we are at the stage of
>> making "release candidates" available for testing and then fixing bugs
>> and problems that people encounter. These candidates are not supposed
>> to be used in production, but I'm running my site on one right now. I
>> would guess that we'll go through 2-3 more RCs and do the official
>> release sometime in the next 2 months, but that is just a guess.
>>
>> Custom themes are stored in the database and that database upgrade
>> will take care of migrating them.
>>
>> Obligatory warning: If you do try an RC, make sure you backup
>> everything including your database.
>>
>> Thanks,
>> Dave
>>
>>
>> On Sat, Sep 25, 2010 at 6:04 AM, Christopher Dodunski
>> <Ch...@christopher.net.nz> wrote:
>>> Hi,
>>>
>>> I'm currently running Roller 4.
>>>
>>> I'm wondering if anyone here had an idea as to when Roller 5.0 might be
>>> officially released.  If it is likely to be a fair way off, and release
>>> candidate 2 is generally considered stable, I might upgrade now rather
>>> than wait.
>>>
>>> Also, are custom themes stored in the database, or do I have to migrate
>>> templates/stylesheets across?
>>>
>>> Thanks & regards,
>>>
>>> Chris.
>>>
>>>
>>
>
>