Directory index forbidden by rule

General discussion on Zend Studio for IBM System i
Post Reply
wvarilek
Posts: 24
Joined: Tue Mar 01, 2011 8:52 pm

Directory index forbidden by rule

Post by wvarilek » Thu Apr 28, 2011 4:18 pm

Hello,

I have been getting the following message:
[Thu Apr 28 10:09:16 2011] [error] [client 172.16.129.93] ZSRV_MSG0356: mod_autoindex: Directory index forbidden by rule: /www/zendserver/htdocs/

When attemping to access my welcome.php page.

Within HTTP Admin -> General Server Configuration -> Welcome Pages (tab), i have the following welcome/index file listed:
/www/zendserver/htdocs/PROD/welcome.php

When attempting to access the root, i receive the error message above:
http://192.168.1.2:10090/

But, if i fully qualify the URL, the page loads:
http://192.168.1.2:10090/prod/welcome.php

Also, if i put the welcome.php page within the root, instead of /prod/, the pags loads just file.

here is my config file, if anyone can shoot out some ideas that would be great.. thanks!!

1 # Configuration originally created by Create HTTP Server wizard on Thu Apr 28 08:41:35 CDT 2011
2
3 LoadModule zend_enabler_module /QSYS.LIB/QHTTPSVR.LIB/QZFAST.SRVPGM
4
5 Listen *:10090
6 DocumentRoot /www/zendserver/htdocs
7 TraceEnable Off
8 Options -ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch -Includes -IncludesNoExec -Indexes -MultiViews
9 LogFormat "%h %T %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
10 LogFormat "%{Cookie}n \"%r\" %t" cookie
11 LogFormat "%{User-agent}i" agent
12 LogFormat "%{Referer}i -> %U" referer
13 LogFormat "%h %l %u %t \"%r\" %>s %b" common
14 CustomLog logs/access_log combined
15 LogMaint logs/access_log 7 0
16 LogMaint logs/error_log 7 0
17 SetEnvIf "User-Agent" "Mozilla/2" nokeepalive
18 SetEnvIf "User-Agent" "JDK/1\.0" force-response-1.0
19 SetEnvIf "User-Agent" "Java/1\.0" force-response-1.0
20 SetEnvIf "User-Agent" "RealPlayer 4\.0" force-response-1.0
21 SetEnvIf "User-Agent" "MSIE 4\.0b2;" nokeepalive
22 SetEnvIf "User-Agent" "MSIE 4\.0b2;" force-response-1.0
23
24 DirectoryIndex /www/zendserver/htdocs/PROD/welcome.php
25 CgiConvMode %%MIXED/MIXED%%
26 TimeOut 30000
27 KeepAlive Off
28 HotBackup Off
29 AccessFileName .htaccess
30
31 #AddCharset UTF-8 .utf8
32 #AddCharset utf-8 .utf8
33 #AddCharset utf-7 .utf7
34 AddCharset UTF-8 .htm .html .xml
35
36 # zend fastcgi
37 AddType application/x-httpd-php .php
38 AddHandler fastcgi-script .php
39
40 RewriteEngine on
41
42 # Allow most requests for any file
43 <Directory />
44 Order Allow,Deny
45 Allow From all
46 </Directory>
47
48 # Allow requests for files in document root
49 <Directory /www/zendserver/htdocs>
50 Order Allow,Deny
51 Allow From all
52 </Directory>
53
54 <Directory /www/zendserver/htdocs/PROD>
55 Order Allow,Deny
56 Allow From all
57 </Directory>
58
59 <Directory /www/zendserver/htdocs/uat>
60 Order Allow,Deny
61 Allow From all
62 </Directory>
63
64 <Directory /www/zendserver/htdocs/dev>
65 Order Allow,Deny
66 Allow From all
67 </Directory>
68
69 <Directory /usr/local/zendsvr/gui>
70 Options FollowSymLinks
71 Order allow,deny
72 Allow From all
73 </Directory>
74
75 <Location /ZendServer>
76 Order deny,allow
77 Allow From all
78 </Location>
79
80 Alias /dev/ /www/zendserver/htdocs/dev/
81 Alias /uat/ /www/zendserver/htdocs/uat/
82 Alias /PROD/ /www/zendserver/htdocs/PROD/
83 Alias /ZendServer "/usr/local/zendsvr/gui/html"
84
85 <Directory "/usr/local/zendsvr/gui/html">
86 AllowOverride All
87 </Directory>
88
89 <Location /Zend5250Demos>
90 Order deny,allow
91 Allow from all
92 </Location>
93
94 <Location /Zend5250Login>
95 Order deny,allow
96 Allow from all
97 </Location>
98
99 Alias /Zend5250Demos /usr/local/zendsvr/5250/demos
100 Alias /Zend5250Login /usr/local/zendsvr/5250/Generator/Form
101 Alias /Zend5250Appl /usr/local/zendsvr/5250/Welcome
102 Alias /phpmyadmin /usr/local/zendsvr/phpMyAdmin
103
104 <Directory "/www/zendserver/htdocs/Zend5250Emulator">
105 Options FollowSymLinks
106 AllowOverride All
107 </Directory>
108
109 <Directory /usr/local/zendsvr/phpMyAdmin>
110 Options FollowSymLinks
111 Order allow,deny
112 Allow from 127.0.0.1
113 </Directory>
114
115 <Location /phpmyadmin>
116 Order deny,allow
117 Allow from all
118 </Location>

wvarilek
Posts: 24
Joined: Tue Mar 01, 2011 8:52 pm

Re: Directory index forbidden by rule

Post by wvarilek » Thu Apr 28, 2011 7:19 pm

i created a Virtual Host for my folder, and mapped a DNS hostname to the directory.. now for some reason the error has gone away... so the problem is resolved, i'm just not exactly sure why yet. i will post an update if the solution reveals its self.

Post Reply