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





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.