Re: [users@httpd] still content negotiation problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/13/05, Marco Scoffier <marco@xxxxxxxx> wrote:
> I'm using OpenBSD's apache (which does not have many "standard" modules
> compiled):
> 
>  compiled mod_negotiation and mod_mime (which I am not 100% sure is needed):
>    cd /usr/scr/usr.sbin/httpd/modules/standard
>        apxs -i -a -c mod_negociation.c
>        apxs -i -a -c mod_mime.c

Ouch. OpenBSD doesn't have mod_mime by default?  That's crazy.

You might find it difficult to get help here with OpenBSD's version of
apache, since they don't really include apache, but rather a forked
version with some of their own patches and without patches from recent
apache versions.  I'm not sure how far it diverges from the official
version at the moment, but I believe it is significant and growing. 
Hence it is pretty much impossible for us to know if your problem is
in your configuration, in the apache source code, or in something that
openbsd did to apache.

> <Directory /var/www/htdocs/langnego/ >
>        Options +MultiViews
>        AddLanguage fr .fr
>        AddLanguage en .en
>        LanguagePriority fr en
>        DirectoryIndex index
> </Directory>
> 
> Here's my directory structure (you can test at http://langnego.no-ip.org ):
> 
> $ ls /var/www/htdocs/langnego/
> index.html.fr     index.html.html   test.html.fr      test.html.html
> 
> I set my browser to prefer fr which I can tell from the custom log (see below)
> the default directory returns the english page.  A request for test.html
> returns a 404, and just when you thought +MultiViews wasn't working a request
> for test returns the english text.html.html .  When I go to Google.com I get
> their french page correctly...
> 
> 
> 64.81.200.243 - - [13/Jun/2005:15:44:30 -0400] "GET / HTTP/1.1" 200 17 "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050514 Firefox/1.0.4" "fr,en;q=0.5"
> 64.81.200.243 - - [13/Jun/2005:15:44:38 -0400] "GET /test.html HTTP/1.1" 404 215 "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050514 Firefox/1.0.4" "fr,en;q=0.5"
> 64.81.200.243 - - [13/Jun/2005:15:48:07 -0400] "GET /test HTTP/1.1" 200 17 "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050514 Firefox/1.0.4" "fr,en;q=0.5"

It might be helpful to see what is in the error log.

One thing missing from your config is a test.html.en.  This is
necessary so that someone requesting "en,fr;q=0.5" will get the
english page.  But the fact that that is missing doesn't explain why
request test.html doesn't get you something.  That is a little
curious.

Joshua

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux