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



I do Virtual hosting with my server @ Home using HTTP classic - but Apache does 
this well!!

Bind it to the "base server" using a funny dot com name - it DOESN'T have to be 
a name you'd use - just SOANDSO.COM will do - because the table entry will do 
the binding for you.  Sending & receiving E-mails is another story - SMTP setup 
requires that you say "multiple" domains, (V5R1 setup!) and you (as far as I 
know) need to add entries to the system table for those domains too.

Welcome index.htm www.ctlaltdel.org
Welcome index.htm ctlaltdel.org

OK - I did BOTH ctlaltdel AND www - because I wanted them BOTH to answer on my 
server the same way.  When I was E-commercing - I re-directed the NON www. To 
the WWW URL's because I was also trying to perform tracking, as well as 
maintain ONE set of records about a site.  The re-direction made the site more 
consistent too.

Now as far as port forwarding - the 8080 STAYS 8080 inside your setup!  Now bad 
news.  The HTTP classic does Bind to IP, or Bind to PORT - but not both (I 
think - I never done it!) This may be the reason the server is confused... I 
think you may be able to add a port value to the welcome directive.

Do dis help?

Andrew Borts / Webmaster
Seta Corporation
6400 East Rogers Circle
Boca Raton, FL 33499

E-mail: Andrewb@setacorporation.com
Corporate web site http://www.setacorporation.com
E-Commerce web site http://www.palmbeachjewelry.com
                              http://www.myfreeitems.com
Voice: 561-994-2660 Ext. 2211 / Fax: 561-997-0774

-----Original Message-----
From: Peter Dow [mailto:maillist@dowsoftware.com]
Sent: Friday, September 06, 2002 11:09 PM
To: WEB400@midrange.com
Subject: [WEB400] HTTP server request routing directives for multiple URL's

Hi Everyone,

I'm trying to set up a single classic HTTP server instance to handle two
different URL's, e.g.

    one.company.com
    two.company.com

I'm using no-ip.com's dynamic DNS to do redirects, so that

    one.company.com becomes company.com:8080/one
    two.company.com becomes company.com:8080/two

A DSL router does some port forwarding so that port 8080 becomes port 80.

The server configuration has the following directives:

    Welcome index.html
    BindSpecific On
    HostName 192.168.1.4
    Port 80
    DNS-Lookup Off
    RuleCaseSense Off
    Imbeds Off SSIOnly
    AlwaysWelcome On
    DirAccess Off
    Pass /one/* /one/Website/*
    Pass /two/* /two/Website/*
    Pass /* /three/index.html

When I try one.company.com, I get the expected /one/Website/index.html.
When I try two.company.com, I get the /three/index.html, but the QPZHBTRC
spool file shows that it actually selected /two/Website/index.html:

HTRuleDB Pass........ /one/* did NOT match /two/.
HTRuleDB Pass........ matched "/two/" -> "/two/Website/"
HTRuleDB Passing..... "/two/Website/"
HTMulti. Multi....... for path "/two/Website/".
HTMulti. Checking.... for welcome file: "/two/Website/index.html"
HTAccess HTStat...... on file "/two/Website/index.html" --> no req, stat'ing
directly.
HTMulti. Welcome..... "/two/Website/index.html"
HTFile.c Searching... for suffix 1: ".html"
HTMulti. Welcome ...... File quality of 0.10000 acceptable for file
"/two/Website/index.html"
HTAccess HTStat...... succeeded on file "/two/Website/index.html" --> will
cache it.
HTAAServ HTMulti..... gave us a file.
HTAAServ Content-Length 435
HTAAServ Last-Mod.... Thu, 05 Sep 2002 18:13:53 GMT
HTFile.c Searching... for suffix 1: ".html"
HTAAServ AuthCheck... Translated path: "/two/Website/index.html" (method:
GET)
HTAAServ AccessOk.... by fast path. No protect rule nor ACL.
HTServer AA.......... check returned 200
HTServer Translated.. "/two/Website/index.html"
HTServer HTHandle..... Access as "%%SERVER%%" for Client "-unknown-"
HTPICS.c PICS........ no protocol bags received.
HTServer HTHandle.... method GET
htrsp.c  No.......... metafile to look for.
HTPICS.c No.......... PICS labels to send back.
htrsp.c  ............ Header section for client HTTP/1.1 304 Not modified
Server: IBM-HTTP-Server/1.0  Date:
HTWriter Writer...... 238-byte block arriving.
HTWriter Writer...... converting 0-byte header.
HTWriter level3write...socket: 32, bufptr=00000000, size=630487785,
socketype=-1845463821
os2socke Socket...... wrote 238 bytes on socket 32.
HTLog.c  Logging..... updating SNMP/PerfMon counters.
HTLog.c  Logging....... fastpath off.
HTServer CleanupMemory. HTHandledStdin = FALSE, HTContentLengthLeft = 0
---then a bunch of Uninit stuff---

So why is it showing /three/index.html instead of /two/Website/index.html?

tia,
Peter Dow
Dow Software Services, Inc.
909 793-9050 voice
909 522-3214 cellular
909 793-4480 fax



_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/web400
or email: WEB400-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.