You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Keelan Long <ap...@skagitattic.com> on 2008/09/05 00:10:49 UTC

[users@httpd] Content Negotiation problem

Hello all,

    I am having problems with Content Negotiation.  I set "Options 
MultiViews" in my sites-enabled config.  Now I have a folder full of 
html files that I am trying to get to without .html.  So a few of them 
work but the rest need .html?  Any ideas whats going wrong?  (One of the 
files has a space right before the .html so I think thats the problem 
with one of them.

I have one folder that works just how it should with the following files:
1 Corinthians 12.1-11.html         3 John 1-14.html            James 
1.19-27.html   John 16.16-33.html      Revelation 2.1-11.html
1 Corinthians 12.12-31a.html       Ephesians 1.1-14.html       James 
2.1-26.html    John 17.1-26.html       Revelation 2.12-29.html
1 Corinthians 12.31b-13.1-13.html  Ephesians 1.15-2.10.html    James 
3.1-18.html    Jude 1-25.html          Revelation 3.1-22.html
1 Corinthians 14.1-19.html         Ephesians 2.11-22.html      James 
4.1-12.html    Matthew 4.17-25.html    Romans 10.1-21.html
1 Corinthians 14.20-40.html        Ephesians 3.1-21.html       James 
4.13-5.6.html  Matthew 5.1-16.html     Romans 11.1-12.html
1 John 1.1-2.6.html                Ephesians 4.1-16.html       James 
5.7-20.html    Matthew 5.17-48.html    Romans 11.13-36.html
1 John 2.18-29.html                Ephesians 4.17-5.14.html    John 
13.1-20.html    Matthew 6.1-18.html     Romans 9.1-13.html
1 John 2.7-17.html                 Ephesians 5.15-6.9.html     John 
13.21-38.html   Matthew 6.19-34.html    Romans 9.14-29.html
1 John 3.1-24.html                 Ephesians 6.10-24.html      John 
14.1-14.html    Matthew 7.1-12.html     Romans 9.30-33.html
1 John 4.1-21.html                 Galatians 5.13 - 6.10.html  John 
14.15-31.html   Matthew 7.13-29.html
1 Peter 4.7-11.html                Hebrews 5.11-6.8  .html     John 
15.1-16.html    Philippians 4.8.html
2 John 1-13.html                   Introduction.html           John 
15.17-27.html   Revelation 1.1-3.html
2 Peter 1.1-21.html                James 1.1-18.html           John 
16.1-15.html    Revelation 1.4-20.html

The folder that does not work has the following files.
1 John - Beget.html                                                
Hebrews 6.1-2 -- Faith.html
1 Peter 4.7-11- Sound Mind.html                                    
Hebrews 6.1-2 Foundationss.html
2008.08.15 - The Evidence of the New Birth, Oswald Chambers..html  
Hebrews 6.1-2. God's Gift.html
2 Peter 1.1-21 - Virtue.html                                       
Hebrews 6.1-2 -- Judgment.html
Ephesians 4.11 Apostle.html                                        
Hebrews 6.1-2 -- Laying on Hands.html
Ephesians 4:11 - Evangelists.html                                  
Hebrews 6.1-2 - Overview.html
Ephesians 4.11.html                                                
Hebrews 6.1-2 - Perfection.html
Ephesians 4.11 Prophet.html                                        
Hebrews 6.1-2 -- Repentance.html
Ephesians 4:11 - Shepherd.html                                     
Hebrews 6.1-2 -- Resurrection.html
Ephesians 4:11 - Teacher .html                                     
Introduction.html
Galatians 5.23-24 - Love.html                                      
Matthew 6:5-15 - Overview of 7 Major Greek Words.html
Hebrews 6.1-2 -- Baptism.html                                      
Philippians 4.8 - True.html

A few of the files work like "Matthew 6:5-15 - Overview of 7 Major Greek 
Words", "Ephesians 4.11", "Ephesians 4:11 - Evangelists", "Ephesians 
4:11 - Shepherd", "1 John - Beget".

The problem folder is at http://2rbetter.skagitattic.com/ugws/Introduction

In my error log files I get things like "[Thu Sep 04 15:03:09 2008] 
[error] [client (ip taken out)] Negotiation: discovered file(s) matching 
request: /var/www/2rbetter.org/ugws/2 Peter 1.1-21 - Virtue (None could 
be negotiated)., referer: 
http://2rbetter.skagitattic.com/ugws/Ephesians%204:11%20-%20Shepherd"  
If it found the file why did it not serve it up?  I add a .html and it 
works great.

Anyone have any idea whats wrong?

Thanks!

Keelan

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Content Negotiation problem

Posted by Keelan Long <ap...@skagitattic.com>.
William A. Rowe, Jr. wrote:
> Keelan Long wrote:
>>
>> Anyone have any idea whats wrong?
>
> Try
>
>  Options -multiviews
>
> in your config file above those directories.  If you aren't serving
> one-of-several flavors, e.g. if you had five corresponding .html files
> with the same base name but different languages/character sets, then
> multiviews does nothing but perhaps mess things up.
>
Ok, I tried -multiviews and now nothing works.  I was pretty sure I
needed that on to serve .html files without the .html?

> The base names, in this case, for 1 John 1.1-2.6.html, is simply
> 1 John 1, although there is only one filename that matches that pattern.
> For some though, you have "duplicates" if you look only at the text
> leading up to the first period.
There was something in
http://httpd.apache.org/docs/2.2/mod/mod_mime.html about only using the
last dot.  I could not figure out how to get that working.  Do you have
any idea?

Thanks,

Keelan
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Content Negotiation problem

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Keelan Long wrote:
> 
> Anyone have any idea whats wrong?

Try

  Options -multiviews

in your config file above those directories.  If you aren't serving
one-of-several flavors, e.g. if you had five corresponding .html files
with the same base name but different languages/character sets, then
multiviews does nothing but perhaps mess things up.

The base names, in this case, for 1 John 1.1-2.6.html, is simply
1 John 1, although there is only one filename that matches that pattern.
For some though, you have "duplicates" if you look only at the text
leading up to the first period.

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org