You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mustafa Yalniz <ya...@bumed.org.tr> on 2003/04/06 18:59:50 UTC

browsing cocoon and tomcat directly

Hi All,

We have a web site http://www.mysite.com/ and it is redirected by Apache
to
http://www.mysite.com:8080/cocoon/myweb
<http://www.mysite.com:8080/cocoon/starportal>  because we defined a
virtual
host with redirection to this address.

But we could not find a way to avoid users accessing directly
http://www.mysite.com:8080/cocoon/ or http://www.mysite.com:8080/ which
ends
up with cocoon or tomcat welcome page.

We want to avoid users to browse these URL's. Any help would be greatly
appreciated.

Thank you and regards,
Mustafa

Re: browsing cocoon and tomcat directly

Posted by Tony Collen <tc...@neuagency.com>.
On Sun, 6 Apr 2003, Ryan Hoegg wrote:

> If you are using HTTP redirects, this is not going to work.  A redirect
> instructs the client browser to go the the target address.
>
> Perhaps you should look into mod_jk or mod_jk2


You could also check out
http://wiki.cocoondev.org/Wiki.jsp?page=ApacheModProxy which describes how
to use Cocoon with Apache's mod_proxy.  I've used it to a considerable
degree of success. And it's very easy to get working.


Tony

--
Tony Collen
ICQ: 12410567
--
Cocoon: Internet Glue (A Cocoon Weblog)
http://manero.org/weblog/
--


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: browsing cocoon and tomcat directly

Posted by Ryan Hoegg <rh...@isisnetworks.net>.
Mustafa Yalniz wrote:

> Hi All,
>
> We have a web site http://www.mysite.com/ and it is redirected by 
> Apache to
> http://www.mysite.com:8080/cocoon/myweb 
> <http://www.mysite.com:8080/cocoon/starportal> because we defined a 
> virtual
> host with redirection to this address.
>
> But we could not find a way to avoid users accessing directly
> http://www.mysite.com:8080/cocoon/ or http://www.mysite.com:8080/ 
> which ends
> up with cocoon or tomcat welcome page.
>
If you are using HTTP redirects, this is not going to work.  A redirect 
instructs the client browser to go the the target address.

Perhaps you should look into mod_jk or mod_jk2

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net

> We want to avoid users to browse these URL's. Any help would be 
> greatly appreciated.
>
> Thank you and regards,
> Mustafa
>




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: browsing cocoon and tomcat directly

Posted by Geoff Howard <co...@leverageweb.com>.
The advice you received to look into mod proxy or mod jk
is better, but the direct answer to your question is
for you to remove the cocoon built-in matches from the
root sitemap, and get rid of (by moving, renaming or
simply disabling) the ROOT webapp that ships with
tomcat.

Don't just remove the welcome pages - I'd remove all
samples and documentation from both as well.  Also,
be sure to go through the cocoon configuration in
web.xml and cocoon.xconf and modify any default options,
removing capabilities you don't want on your live site.

Geoff Howard

At 12:59 PM 4/6/2003, you wrote:

>Hi All,
>
>We have a web site <http://www.mysite.com/>http://www.mysite.com/ and it 
>is redirected by Apache to
><http://www.mysite.com:8080/cocoon/starportal>http://www.mysite.com:8080/cocoon/myweb 
>because we defined a virtual
>host with redirection to this address.
>
>But we could not find a way to avoid users accessing directly
><http://www.mysite.com:8080/cocoon/>http://www.mysite.com:8080/cocoon/ or 
><http://www.mysite.com:8080/>http://www.mysite.com:8080/ which ends
>up with cocoon or tomcat welcome page.
>
>We want to avoid users to browse these URL's. Any help would be greatly 
>appreciated.
>
>Thank you and regards,
>Mustafa


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org