Your problem here is with the pass statements. You really want a catch all
easiest way is to have

PASS     /*      /www/*

Now when you go to you will get the index page
then when you link anything from it the resulting map would take say
/html/page1.htm and make it /www/html/page1.htm. You do not need all the
hardcoding you have done your Welcome directive will find your welcome page
for you.

Does that make sense?


*********************************************************** Your AS/400 Internet User Group

-----Original Message-----
[]On Behalf Of Joel Fritz
Sent: Tuesday, July 13, 1999 05:26
To: ''
Subject: http server--linking welcome page to other files

We're playing around with the HTTP server in hopes of actually using it (not
just resume padding.)  So far we've managed to serve the welcome page and
execute several simple cgi programs.  Where we haven't had any success is
linking the welcome page with any other html files on the same 400--the link
to the IBM web site works fine.  Clicking on the links gives an error 403.
We can link the welcome page to cgi scripts.  There's something simple we're
missing.  If anyone knows the answer, you have my permission to prefix the
response with something condescending or insulting. <g>  Thanks in advance.

Here's a copy of the HTTP config file.

# * * * * * * * * * * * * * * * * * * * * * * * * * * *
   Welcome    welcome.html
#    AS/400 Internet Connection Server Configuration
# * * * * * * * * * * * * * * * * * * * * * * * * * * *
Port       80
Enable       GET
Enable       HEAD
Enable       POST
Enable       OPTIONS
Enable       TRACE
Enable       CONNECT

   Redirect  /wsg    http://hostname:5061/WSG

   Map /cgi-bin/db2www/* /QSYS.LIB/CGIBIN.LIB/DB2WWW.PGM/*
    pass  /      /www/welcome.html
    pass  /      /www/*.html
    pass  /root/*  /www/*
    pass  /root/*  /www/*.html

| This is the Midrange System Mailing List!
| To submit a new message, send your mail to
| To subscribe to this list send email to
| To unsubscribe from this list send email to
| Questions should be directed to the list owner/operator:

This thread ...


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

This mailing list archive is Copyright 1997-2019 by 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].