|
For the Pass statments, try this one directive in place of all the others: Pass /* /www/* and add this welcome directive: Welcome welcome.html I would suggest removing the pass /root/* ... directive. It's redundant. The pass directive above will route everything to the /www directory and the welcome directive specifies that welcome.html is your default file. So, a request to: http://www.youras400.com will display the file /www/welcome.html http://www.youras400.com/aboutus.html will display the file /www/aboutus.html http://www.youras400.com/images/image1.gif will be routed to the file /www/images/image1.gif (This is handy for using subdirectories for images or anything else in your html files). If you ever want to run multiple domains on your AS/400, this is possible as well. Your Pass directive would look like this... Pass /* /ourstuff/* www.dns1.com Pass/* /otherstuff/* www.dns2.com Bradley V. Stone BVS/Tools http://www.bvstools.com > -----Original Message----- > From: Joel Fritz [mailto:JFritz@sharperimage.com] > Sent: Tuesday, July 13, 1999 11:26 AM > 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 > > -------------- > BindSpecific Off > UserID %%SERVER%% > DNS-Lookup On > Imbeds On html > AlwaysWelcome On > DirAccess On > UserDir BWH > Service /servlet/* > /QSYS.LIB/QHTTPSVR.LIB/QZHJSVLT.SRVPGM:AdapterService* > Service /*.jhtml /QSYS.LIB/QHTTPSVR.LIB/QZHJSVLT.SRVPGM:AdapterService > Service /*.shtml /QSYS.LIB/QHTTPSVR.LIB/QZHJSVLT.SRVPGM:AdapterService > ServerInit /QSYS.LIB/QHTTPSVR.LIB/QZHJSVLT.SRVPGM:AdapterInit > /QIBM/UserData/HTTPSVR/ServletExpress/CONFIG/properties/server > /ncf/ncfservic > e/jvm.properties > ServerTerm /QSYS.LIB/QHTTPSVR.LIB/QZHJSVLT.SRVPGM:AdapterExit > AddClient .Mozilla Mozilla/2.* > > > Joel Fritz x1568 > +--- > | 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 > +--- > +--- | 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 mailing list archive is Copyright 1997-2025 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.