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/09/11 11:32:33 UTC

directory listing

Hi,

We have a cocoon application and the URL is 
http://localhost:8080/cocoon/application and with this url we can see our 
application. But whenever we try to browse 
http://localhost:8080/cocoon/application/  we see the directory listing 
application. The last slash "/" at the end shows us the directory listing. 
Is there a way to avoid this directory listing with slash at the end.

Thanks,
Mustafa


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


Re: directory listing

Posted by Mustafa Yalniz <ya...@bumed.org.tr>.
Hi,

I tried to use mod_rewrite and my httpd.conf configuration is as below.

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteLogLevel 9
    RewriteLog C:\temp\MOD_REWRITE.LOG
</IfModule>

<VirtualHost 127.0.0.1>
    RewriteRule ^/starportal/$ /starportal
</VirtualHost>

But seems something is wrong and it does not work properly. Still lists 
directory when there is a slash at the end.

http://localhost:8080/cocoon/starportal/ should not display directory 
listing and one possible solution is to redirect it to 
http://localhost:8080/cocoon/starportal

Any help would be greatly appreciated.

Thank you and regards,
Mustafa


At 13:18 11.09.2003 +0200, you wrote:
>It is the usual configuration. Apache Tomcat and Cocoon.
>Mustafa
>
>At 12:57 11.09.2003 +0200, you wrote:
>>I wonder if this is pure Cocoon behaviour. Don't you have an Apache in 
>>front of the servlet container? What's your servlet container?
>>
>>Joerg
>>
>>Mustafa Yalniz wrote:
>>>Hi,
>>>We have a cocoon application and the URL is 
>>>http://localhost:8080/cocoon/application and with this url we can see 
>>>our application. But whenever we try to browse 
>>>http://localhost:8080/cocoon/application/  we see the directory listing 
>>>application. The last slash "/" at the end shows us the directory 
>>>listing. Is there a way to avoid this directory listing with slash at the end.
>>>Thanks,
>>>Mustafa
>>
>>--
>>System Development
>>VIRBUS AG
>>Fon  +49(0)341-979-7419
>>Fax  +49(0)341-979-7409
>>joerg.heinicke@virbus.de
>>www.virbus.de
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org


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


Re: directory listing

Posted by Mustafa Yalniz <ya...@bumed.org.tr>.
It is the usual configuration. Apache Tomcat and Cocoon.
Mustafa

At 12:57 11.09.2003 +0200, you wrote:
>I wonder if this is pure Cocoon behaviour. Don't you have an Apache in 
>front of the servlet container? What's your servlet container?
>
>Joerg
>
>Mustafa Yalniz wrote:
>>Hi,
>>We have a cocoon application and the URL is 
>>http://localhost:8080/cocoon/application and with this url we can see our 
>>application. But whenever we try to browse 
>>http://localhost:8080/cocoon/application/  we see the directory listing 
>>application. The last slash "/" at the end shows us the directory 
>>listing. Is there a way to avoid this directory listing with slash at the end.
>>Thanks,
>>Mustafa
>
>--
>System Development
>VIRBUS AG
>Fon  +49(0)341-979-7419
>Fax  +49(0)341-979-7409
>joerg.heinicke@virbus.de
>www.virbus.de
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org


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


RE: directory listing

Posted by Mustafa Yalniz <ya...@bumed.org.tr>.
If I call Tomcat directly I see Tomcat welcome page.
Best regards,
Mustafa
At 17:03 11.09.2003 +0200, you wrote:
>Do you have the problem if you call Tomcat directly too?
>
>Reinhard
>
> > -----Original Message-----
> > From: Mustafa Yalniz [mailto:yalniz@bumed.org.tr]
> > Sent: Thursday, September 11, 2003 4:44 PM
> > To: users@cocoon.apache.org
> > Subject: Re: directory listing
> >
> >
> >
> > Hi,
> >
> > I tried to use mod_rewrite and my httpd.conf configuration is
> > as below.
> >
> > <IfModule mod_rewrite.c>
> >     RewriteEngine on
> >     RewriteLogLevel 9
> >     RewriteLog C:\temp\MOD_REWRITE.LOG
> > </IfModule>
> >
> > <VirtualHost 127.0.0.1>
> >     RewriteRule ^/starportal/$ /starportal
> > </VirtualHost>
> >
> > But seems something is wrong and it does not work properly.
> > Still lists
> > directory when there is a slash at the end.
> >
> > http://localhost:8080/cocoon/starportal/ should not display directory
> > listing and one possible solution is to redirect it to
> > http://localhost:8080/cocoon/starportal
> >
> > Any help would be greatly appreciated.
> >
> > Thank you and regards,
> > Mustafa
> >
> >
> > At 12:57 11.09.2003 +0200, you wrote:
> > >I wonder if this is pure Cocoon behaviour. Don't you have an
> > Apache in
> > >front of the servlet container? What's your servlet container?
> >
> > It is Tomcat.
> >
> > >Joerg
> > >
> > >Mustafa Yalniz wrote:
> > >>Hi,
> > >>We have a cocoon application and the URL is
> > >>http://localhost:8080/cocoon/application and with this url
> > we can see our
> > >>application. But whenever we try to browse
> > >>http://localhost:8080/cocoon/application/  we see the
> > directory listing
> > >>application. The last slash "/" at the end shows us the directory
> > >>listing. Is there a way to avoid this directory listing
> > with slash at the end.
> > >>Thanks,
> > >>Mustafa
> > >
> > >--
> > >System Development
> > >VIRBUS AG
> > >Fon  +49(0)341-979-7419
> > >Fax  +49(0)341-979-7409
> > >joerg.heinicke@virbus.de
> > >www.virbus.de
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > >For additional commands, e-mail: users-help@cocoon.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org


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


RE: directory listing

Posted by Reinhard Poetz <re...@apache.org>.
Do you have the problem if you call Tomcat directly too?

Reinhard

> -----Original Message-----
> From: Mustafa Yalniz [mailto:yalniz@bumed.org.tr] 
> Sent: Thursday, September 11, 2003 4:44 PM
> To: users@cocoon.apache.org
> Subject: Re: directory listing
> 
> 
> 
> Hi,
> 
> I tried to use mod_rewrite and my httpd.conf configuration is 
> as below.
> 
> <IfModule mod_rewrite.c>
>     RewriteEngine on
>     RewriteLogLevel 9
>     RewriteLog C:\temp\MOD_REWRITE.LOG
> </IfModule>
> 
> <VirtualHost 127.0.0.1>
>     RewriteRule ^/starportal/$ /starportal
> </VirtualHost>
> 
> But seems something is wrong and it does not work properly. 
> Still lists 
> directory when there is a slash at the end.
> 
> http://localhost:8080/cocoon/starportal/ should not display directory 
> listing and one possible solution is to redirect it to 
> http://localhost:8080/cocoon/starportal
> 
> Any help would be greatly appreciated.
> 
> Thank you and regards,
> Mustafa
> 
> 
> At 12:57 11.09.2003 +0200, you wrote:
> >I wonder if this is pure Cocoon behaviour. Don't you have an 
> Apache in
> >front of the servlet container? What's your servlet container?
> 
> It is Tomcat.
> 
> >Joerg
> >
> >Mustafa Yalniz wrote:
> >>Hi,
> >>We have a cocoon application and the URL is
> >>http://localhost:8080/cocoon/application and with this url 
> we can see our 
> >>application. But whenever we try to browse 
> >>http://localhost:8080/cocoon/application/  we see the 
> directory listing 
> >>application. The last slash "/" at the end shows us the directory 
> >>listing. Is there a way to avoid this directory listing 
> with slash at the end.
> >>Thanks,
> >>Mustafa
> >
> >--
> >System Development
> >VIRBUS AG
> >Fon  +49(0)341-979-7419
> >Fax  +49(0)341-979-7409
> >joerg.heinicke@virbus.de
> >www.virbus.de
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 


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


Re: directory listing

Posted by Mustafa Yalniz <ya...@bumed.org.tr>.
Hi,

I tried to use mod_rewrite and my httpd.conf configuration is as below.

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteLogLevel 9
    RewriteLog C:\temp\MOD_REWRITE.LOG
</IfModule>

<VirtualHost 127.0.0.1>
    RewriteRule ^/starportal/$ /starportal
</VirtualHost>

But seems something is wrong and it does not work properly. Still lists 
directory when there is a slash at the end.

http://localhost:8080/cocoon/starportal/ should not display directory 
listing and one possible solution is to redirect it to 
http://localhost:8080/cocoon/starportal

Any help would be greatly appreciated.

Thank you and regards,
Mustafa


At 12:57 11.09.2003 +0200, you wrote:
>I wonder if this is pure Cocoon behaviour. Don't you have an Apache in 
>front of the servlet container? What's your servlet container?

It is Tomcat.

>Joerg
>
>Mustafa Yalniz wrote:
>>Hi,
>>We have a cocoon application and the URL is 
>>http://localhost:8080/cocoon/application and with this url we can see our 
>>application. But whenever we try to browse 
>>http://localhost:8080/cocoon/application/  we see the directory listing 
>>application. The last slash "/" at the end shows us the directory 
>>listing. Is there a way to avoid this directory listing with slash at the end.
>>Thanks,
>>Mustafa
>
>--
>System Development
>VIRBUS AG
>Fon  +49(0)341-979-7419
>Fax  +49(0)341-979-7409
>joerg.heinicke@virbus.de
>www.virbus.de
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org


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


Re: directory listing

Posted by Joerg Heinicke <jh...@virbus.de>.
I wonder if this is pure Cocoon behaviour. Don't you have an Apache in front 
of the servlet container? What's your servlet container?

Joerg

Mustafa Yalniz wrote:
> Hi,
> 
> We have a cocoon application and the URL is 
> http://localhost:8080/cocoon/application and with this url we can see 
> our application. But whenever we try to browse 
> http://localhost:8080/cocoon/application/  we see the directory listing 
> application. The last slash "/" at the end shows us the directory 
> listing. Is there a way to avoid this directory listing with slash at 
> the end.
> 
> Thanks,
> Mustafa

-- 
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de


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