|
|
All AS/400 Tip Categories
/
Web
/
AS/400 HTTP Server
Question:
I have the HTTP server up and running with the "welcome" page. I'm using it
under the QDLS area. I'm tring to set up an intranet and the welcome page
I made has links to other HTM files with in the same dir as the
welcome.htm, but the the only page I can get with out the the AS/400
Forbidden by rule error is the welcome.htm. That's tring to access the pages
by the IP address:
http://165.000.00.00/webpage.htm
If I use WINNT/CA and hit the welcome.htm like a files everything works
fine.
file://I:\qdls\websamp\webpage.htm
I made sure all files are *public and should be fine.
Help, I want to get this thing on line!
Answer(s):
Two points. The folder you are using must have authoritation of *RX to the
user QTMHHTTP. Second point of problems is if you don't have a PASS sentence
on the config of the HTTP server. If you are using the folder MYFOLDER the
Pass sentence should be:
Pass * \QDLS\MYFOLDER\*
The second point: Forget about using QDLS for the HTTP server. According to
IBM docs the serving of files, using HTTP, FTP or whatever is quickly from
the IFS then the QDLS. So what you need to do is moving the HTTP to the IFS.
I did it and the results are significant.
Are you using the Internet Connection Server? If so, it's probably an HTTP
configuration issue. Your configuration now probably has a statement like:
Pass / /qdls/websamp/homepage.htm (where homepage.htm is your welcome page)
When the browser requests webpage.htm (the page linked from the home page), it
thinks it's in the root directory on the AS/400. So it requests /webpage.htm
Unfortunately, your pass statement won't change that to
/qdls/websamp/webpage.htm
Here's what I'd suggest as a solution. Change your HTTP configuration (using
WRKHTTPCFG) to:
Map / /qdls/websamp/homepage.htm
Pass /qdls/websamp/*
Then, in homepage.htm, all your A HREF tags (links) should be
/qdls/websamp/webpage.htm instead of just webpage.htm (this includes any IMG
tags as well). This tells the browser which directory these files are in. All
subsequent pages can just have relative links since the browser is now "in" the
proper directory.
Restart your server (STRTCPSVR *HTTP RESTART(*HTTP)) and try again. Be sure
your homepage.htm is reloaded in your browser.
Hope this helps!
By the way, you'll get better performance if you serve your pages out of the
root file system in IFS (i.e. /websamp instead of /qdls/websamp
Other tips in this category:
Click here to see all categories.
Configuring the AS/400 as a Web Server
HTTP Protect Directives
A Simple Web Counter in RPG
How To Set Up Multiple WWW Domains
Is there a webcounter for the AS/400?
Net.Data trouble
AS/400 HTTP Server
|