httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From imacat <ima...@mail.imacat.idv.tw>
Subject Re: [users@httpd] Content Negotiation with <DirectoryMatch> in Apache 2.0.43
Date Thu, 26 Dec 2002 01:23:55 GMT
Dear all,

    Sorry I forgot 2 things here.  (I'm a little dizzy recently.)

>     After starting /usr/sbin/httpd2 -f /etc/apache/httpd2.conf-test, and
> try to connect, I get:
> 
> imacat@rinse ~ % lynx -dump http://rinse:50080/
>                                   Index of /
> 
>      * [1]index.html.en
>      * [2]index.html.html
>      * [3]index.html.zh-cn
>      * [4]index.html.zh-tw
> 
> References
> 
>    1. http://rinse:50080/index.html.en
>    2. http://rinse:50080/index.html.html
>    3. http://rinse:50080/index.html.zh-cn
>    4. http://rinse:50080/index.html.zh-tw
> imacat@rinse ~ %
> 
>     This is strange.  It should display index.html.html.

    But it is OK if I request index.html directly.  It seems to be
mod_dir related.

imacat@rinse ~ % lynx -dump http://rinse:50080/index.html
                            Test Page index.html.en

   This is test page index.html.en.
imacat@rinse ~ % 

    It is OK, too, if I have an index.html there.  It seems to be
mod_negotiation related, too.

imacat@rinse ~ % ln -s index.html.en /var/tmp/htdocs/index.html
imacat@rinse ~ % lynx -dump http://rinse:50080/
                            Test Page index.html.en

   This is test page index.html.en.
imacat@rinse ~ % 

>     And if I comment out <DirectoryMatch>:
> 
> imacat@rinse ~ % cat /etc/apache/httpd2.conf-test
> User nobody
> Group nogroup
> DocumentRoot /var/tmp/htdocs
> PidFile /var/run/httpd2.pid
> Listen 50080
> ErrorLog /var/log/apache/error_log
> Options +MultiViews
> DirectoryIndex index.html
> 
> AddLanguage en          .en
> AddLanguage zh-tw       .zh-tw
> AddLanguage zh-cn       .zh-cn
> LanguagePriority zh-tw zh-cn en
> 
> #<DirectoryMatch /var/tmp/htdocs>
> #</DirectoryMatch>
> imacat@rinse ~ % 
> 
>     And try again, I'll get:
> 
> imacat@rinse ~ % lynx -dump http://rinse:50080/
>                             Test Page index.html.en
> 
>    This is test page index.html.en.
> imacat@rinse ~ % 
> 
>     which is the correct answer.

    And there's nothing left in the error_log.  Not even if I turn on:

LogLevel debug

    mod_negotiation does not seem to be working with mod_dir, if it is
somewhere under <DirectoryMatch>.  But they both have no problem solely.

--
Best regards,
imacat ^_*'
imacat@mail.imacat.idv.tw
PGP Key: http://www.imacat.idv.tw/me/pgpkey.txt

<<Woman's Voice>> News: http://www.wov.idv.tw/
Tavern IMACAT's: http://www.imacat.idv.tw/
TLUG List Manager: http://www.linux.org.tw/mailman/listinfo/tlug

Mime
View raw message