× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Rob,

Have you looked at your error log yet? That should tell you why you are getting a 403 error. That error can be caused by three things. First, the server doesn't have permissions in the file system. Second, the server is not configured to allow access to it. Third, you don't have a file that matches the name defined on DirectoryIndex and you are not specifying the file name and directory browsing is disabled. The error log will tell you which one is causing the 403 error.

From what I can piece together from this thread so far, you have created a folder called /www/erros07/docs, verified file system permissions were okay, and placed an index.html in it.

Based on that, you need to change DocumentRoot /www/erros07/htdocs to DocumentRoot /www/erros07/docs . I'm pretty sure this will solve your problem.

If you are not going to use /www/erros07/htdocs, you should remove the Directory container for it. If you are going to use it, you will need to create an Alias for it since it is outside of the directory defined in DocumentRoot.

As far as learning goes, the IBM documentation stinks. It is reference material only. Starting from http://httpd.apache.org/docs/2.0/ will be much better. Until you get into SSL and some of the basic authentication stuff which are different, anything you find on configuring Apache 2.0 will apply directly.

Matt

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Rob Dixon
Sent: Sunday, October 05, 2008 5:29 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] HTTP Apache V5R3 problem

Robert,

Many thanks

There is an htdocs directory which was created automatically when I set up
Apache admin, and then following the directions on the Information Centre I
created the directory docs. Both are referenced in the configuration code
that I included. Apache put an index file in docs but there isn't one in
htdocs.

I assumed that if I followed the instructions in the information centre I
would get something that worked on which I could build but that hasn't
happened. Can anyone see any errors in the configuration generated by
Apache? I am sorry that it is not very legible - I just did a cut and
paste.

Rob

2008/10/5 Dean, Robert <rdean@xxxxxxxxxxxx>

Okay, there should be an htdocs directory, not docs.


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx on behalf of Rob Dixon
Sent: Sun 10/5/2008 10:17 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] HTTP Apache V5R3 problem

Thank you all.

http://192.168.0.7 produces error 403 -
http://192.168.0.7/index.html produces error 404 - not found

I simply followed the instructions in iSeriesIBM HTTP Server Version 5
Release 3 and used IBM Web Administration for iSeries to add a directory
"docs" to the server that I had created "erros07". I didn't manually edit
the configuration file. I hoped that this would give me something that
worked, to form a base on which I could build. I will have to read the
manual if none of you can see what is wrong

The code is

__________________________________________________

*ERROS07* <http://192.168.0.7:2001/ERROS07> > *Directive
Index*<http://192.168.0.7:2001/Directive%20Index>> Display
Configuration File

Display Configuration File *HTTP server:* ERROS07 *Selected file:*
/www/erros07/conf/httpd.conf

* 1** # Configuration originally created by Create HTTP Server wizard on
Sun Sep 21 22:47:23 UTC 2008* * 2** Alias /docs/ /www/erros07/docs/* *
3
** Listen *:80* * 4** DocumentRoot /www/erros07/htdocs* * 5**
Options
-ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch -Includes -IncludesNoExec
-Indexes -MultiViews* * 6** LogFormat "%h %l %u %t \"%r\" %>s %b
\"%{Referer}i\" \"%{User-Agent}i\"" combined* * 7** LogFormat
"%{Cookie}n
\"%r\" %t" cookie* * 8** LogFormat "%{User-agent}i" agent* * 9**
LogFormat
"%{Referer}i -> %U" referer* * 10** LogFormat "%h %l %u %t \"%r\" %>s
%b"
common* * 11** CustomLog logs/access_log combined* * 12** LogMaint
logs/access_log 7 0* * 13** LogMaint logs/error_log 7 0* * 14**
ServerSignature
On* * 15** AccessFileName .htaccess* * 16** SetEnvIf "User-Agent"
"Mozilla/2" nokeepalive* * 17** SetEnvIf "User-Agent" "JDK/1\.0"
force-response-1.0* * 18** SetEnvIf "User-Agent" "Java/1\.0"
force-response-1.0* * 19** SetEnvIf "User-Agent" "RealPlayer 4\.0"
force-response-1.0* * 20** SetEnvIf "User-Agent" "MSIE 4\.0b2;"
nokeepalive* * 21** SetEnvIf "User-Agent" "MSIE 4\.0b2;"
force-response-1.0* * 22** DirectoryIndex index.html* * 23**
IndexOptions
-SuppressHTMLPreamble* * 24** <Directory />* * 25** Order
Deny,Allow* * 26** Deny From all* * 27* *</Directory>* * 28**
<Directory /www/erros07/docs>* * 29** Order Allow,Deny* * 30**
Allow
From all* * 31* *</Directory>* * 32** <Directory
/www/erros07/htdocs>*
* 33** Order Allow,Deny* * 34** Allow From all* * 35* *
</Directory>*
_____________________________________________________

htdocs was created when I created erros07

many thanks

Rob




2008/10/5 Dean, Robert <rdean@xxxxxxxxxxxx>

Based on your description, the explicit URL would be
http://192.168.0.7/index.html



-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx on behalf of Rob Dixon
Sent: Sat 10/4/2008 8:24 AM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] HTTP Apache V5R3 problem

I have scratch installed V5R3. I am trying to set up Apache which I
haven't
used before. As far as I can tell, Admin is OK, and now, following the
instructions, I have created my own test directory. This is
www/erros07/docs and there is an index.html file in there. But if I try
to
access

http://192.168.0.7:2001/docs

I get error 403 - "The website declined to show this webpage".

This means that the page is there but the authority is wrong, but I
cannot
see how. Everything seems to have QTMHHTTP authority.

If I try http://192.168.0.7/docs

I get error 404 - not found which is what I would expect at this stage.

This is probably something very basic due to my ignorance of Apache - I
only
use the original P server on my V5R1 nachines

Can anyone help please?

Rob Dixon

www.erros.co.uk
www.boarstall.com

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.