Directory Browsing

General discussion on Zend Core for IBM System i

Directory Browsing

Postby zenbarber on Tue Aug 18, 2009 11:08 am

I've installed Zend Core for i5/OS .

I am trying to prevent directory browsing but can't find how to turn it off. Any hints or info on which setting prevents Directory Browsing on the server would be much appreciated.
zenbarber
 
Posts: 3
Joined: Tue Aug 18, 2009 11:03 am

Re: Directory Browsing

Postby rodflohr on Wed Aug 26, 2009 3:06 am

This is controlled by the Options directive with the Indexes option in Apache:

http://httpd.apache.org/docs/2.2/mod/core.html#options

Please edit your PASE Apache configuration to prevent access by index. From a 5250 command line:

edtf '/usr/local/zend/apache2/conf/httpd.conf'

Find this in the file:

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/www/zendcore/htdocs">

and then there are a few comments, and then this:

Options Indexes FollowSymLinks

Put a dash in front of Indexes, like this:

Options -Indexes FollowSymLinks

Use F3 to exit and save.

Next, stop and start Apache. From the 5250 command line:

GO ZENDCORE/ZCAMENU

Use option "5. Stop Apache server instances". Then, from the command line:

WRKSBSJOB ZEND

Make sure there are no jobs named ZENDCOREAP running in the subsystem. If there are, use F5 to redisplay until all of them are gone. Then use F3 to return to the menu.

Use option "4. Start Apache server instances". Once again, from the command line:

WRKSBSJOB ZEND

Make sure there are at least eight jobs named ZENDCOREAP running in the subsystem. Use F5 to redisplay until all of them are active.
User avatar
rodflohr
 
Posts: 44
Joined: Mon Dec 29, 2008 5:28 pm


Return to Zend Core for i5/OS

Who is online

Users browsing this forum: No registered users and 1 guest