× 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.



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 http://www.yourserver.com/ 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?

Thanks
Bleddyn

***********************************************************
http://www.ignite400.org Your AS/400 Internet User Group
***********************************************************






-----Original Message-----
From: owner-midrange-l@midrange.com
[mailto:owner-midrange-l@midrange.com]On Behalf Of Joel Fritz
Sent: Tuesday, July 13, 1999 05:26
To: 'MIDRANGE-L@midrange.com'
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/*
   Map /CGI-BIN/DB2WWW/* /QSYS.LIB/CGIBIN.LIB/DB2WWW.PGM/*
   Exec  /QSYS.LIB/CGIBIN.LIB/*
#
    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 MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.