On Fri, Jan 30, 1998 at 01:12:06AM -0500, James A.Treacy wrote:
> Aaargh. This content negotiation (CN) has some annoying quirks.
> After re-reading the apache manual it appears we don't have a lot
> of choice.

        Don't give up hope yet. How about creating type-maps for
        all the files? With these files:

# foo.html.var
URI: foo.en.html
Content-type: text/html
Content-language: en

URI: foo.de.html
Content-type: text/html
Content-language: de

# bar.html.var
URI: bar.en.html
Content-type: text/html
Content-language: en

URI: bar.de.html
Content-type: text/html
Content-language: de

# bar.de.html
<title>German</title><a href="foo.de.html">foo</a>
<p><a href="bar.html">[auto]</a>[de]

# bar.en.html
<title>English</title><a href="foo.html">foo</a>
<p>[auto]<a href="bar.de.html">[de]</a>

# foo.de.html
<title>German</title><a href="bar.de.html">bar</a>
<p><a href="foo.html">[auto]</a>[de]

# foo.en.html
<title>English</title><a href="bar.html">bar</a>
<p>[auto]<a href="foo.de.html">[de]</a>

        My test pages at www.havoc.fi/z/foo.html seem to work
        just fine! And at www.havoc.fi/zmirror/foo.html is a mirror
        made with wget --mirror, it just causes "auto" to be "en".

        The only problem is if we want content-negotiating mirrors,
        they must mirror the pages by ftp -- so that the maps get
        mirrored too. I don't think is too bad, as those mirrors will
        have to check their configs for type-maps etc..
        
        Any problems here?
-- 
[EMAIL PROTECTED] - it's a valid address w/o spam | +358-50-5124907
f u cn rd ths, thn u cn rd perl 2 | rm -rf / && echo bye-bye. |           --tv


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to