In the portal front-end.  I noticed in
${tomcat.home}/webapps/ourportal/WEB-INF/web.xml the following:
  <servlet-mapping>
    <servlet-name>CMSResourceServlet</servlet-name>
    <url-pattern>/binaries/*</url-pattern>
  </servlet-mapping>

so, I took out all the proxy rules, and now, am getting a 404 error on the
image itself, a 403 error on http://servername.com:8080/ourportal/binaries/,
and 404's on everything in between (all produced by tomcat).  Since the
portal should have built-in support, should I move this discussion to the
hippoportal-dev list?

On Wed, Oct 8, 2008 at 11:20 AM, Jeroen Reijn <[EMAIL PROTECTED]> wrote:

> Hi Shawn,
>
> I guess the question here is: Where do you want to render the images?
>
> - In your portal front-end?
> - In your CMS ?
> - Or somewhere else?
>
> The portal should have build-in support for rendering images from the
> repository.
>
> Regards,
>
> Jeroen
>
>
>
>
> S Kindrat wrote:
>
>> Right, and siteuser works fine for the portal.  So I guess my question is,
>> how would I display images in the repository (for example,
>> /binaries/documents/home/testimage.jpg).  I was able to access it through
>> http://<server>:50000/assetspreview/binaries/documents/home/testimage.jpg
>> and http://<server>:50000/binaries/documents/home/testimage.jpg, if, and
>> only if, I'm logged into the CMS.  I am also able to access it directly
>> through port 60000, which has basic http authentication, and works fine
>> with
>> siteuser.
>>
>> I tried setting up a ProxyPass rule in apache, but it doesn't seem to work
>> with http://siteuser
>> :<password>@<server>:60000/default/files/default.preview/binaries/<etc>,
>> where it still prompts for the username and password.  (I tried the
>> http://siteuser:[EMAIL PROTECTED]:60000/default/<etc> directly in a new web
>> browser (no authentication) and it works fine that way)
>>
>> These are the rules I have so far:
>> # Binaries rules
>> ProxyPass /binaries/ http://siteuser
>> :<password>@localhost:60000/default/files/default.preview/binaries/
>> ProxyPassReverse /binaries/ http://siteuser
>> :<password>@localhost:60000/default/files/default.preview/binaries/
>> # Portal application
>> ProxyPass / http://localhost:8080/ourportal/portal/
>> ProxyPassReverse / http://localhost:8080/ourportal/portal/
>>
>> As I said, I'm seeing no support for hard coding the user/pass into the
>> URLs
>> in the proxy rules.  Am I on the right track going the route of
>> proxy/rewriting, or is there an easier way?
>>
>> Thanks
>>
>> Shawn
>>
>> On Tue, Oct 7, 2008 at 8:48 PM, Bartosz Oudekerk <[EMAIL PROTECTED]
>> >wrote:
>>
>>  S Kindrat wrote:
>>>
>>>  Is there any way to make the binaries public?  Or have I missed
>>>> something
>>>> with regards to anonymous users?  I have to admit, I have not seen
>>>> anything
>>>> about setting up an anonymous user at all with this software, so it
>>>> could
>>>> be
>>>> I've missed something.
>>>>
>>>> Using Hippo CMS 6.05.04, I have looked through all the permissions as
>>>> the
>>>> root user, and have seen nothing about anonyomous or unauthenticated.
>>>>
>>>>  There is no anonymous user as such, but there's a default user called
>>> siteuser (with passwd siteuser), which has read-only rights on the
>>> repository. That's the user you should use for your site/portal.
>>>
>>> Regards,
>>> Bartosz
>>> ********************************************
>>> Hippocms-dev: Hippo CMS development public mailinglist
>>>
>>> Searchable archives can be found at:
>>> MarkMail: http://hippocms-dev.markmail.org
>>> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
>>>
>>>
>>>  ********************************************
>> Hippocms-dev: Hippo CMS development public mailinglist
>>
>> Searchable archives can be found at:
>> MarkMail: http://hippocms-dev.markmail.org
>> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
>>
>>  ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
>
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
>
>
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Reply via email to