Bug 49818 - Documentation URL scheme "Current version in particular language" like /docs/current/en/ FAILS with 404 (Not found)
Summary: Documentation URL scheme "Current version in particular language" like /docs/...
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Documentation (show other bugs)
Version: 2.2-HEAD
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: HTTP Server Documentation List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 10:43 UTC by Stefan Nowak
Modified: 2010-12-07 13:37 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Nowak 2010-08-24 10:43:42 UTC
HOW DID I NOTICE THIS BUG?

I wanted to bookmark certain Apache documentation pages, and I wanted the bookmark to refer to a particular language but to no particular version, but rather always to the most recent version.

DESCRIPTION

If you point your web browser to:
http://httpd.apache.org/docs/current/
You get served the most current documentation in you preferred language (if available).
The served page contains links to other available languages!
Hence I conclude the featured URLs of the style "in a particular language of the current version" are intended!

But if one follows those links, i.e.:
http://httpd.apache.org/docs/current/en/
Then you get a:
HTTP 404 error (not found).

This is not only true for the home page, but for any particular topic page. Examples:
http://httpd.apache.org/docs/current/en/configuring.html
http://httpd.apache.org/docs/current/en/logs.html
http://httpd.apache.org/docs/current/en/vhosts/
Comment 1 Rainer Jung 2010-08-24 11:20:38 UTC
Note: this only happens for the "/current/ docs. Version "/2.2" and "/trunk" work fine, so I guess the config httpd.apache.org is incomplete with respect to the various manual versions served.
Comment 2 Stefan Nowak 2010-08-25 05:47:55 UTC
(In reply to comment #1)
I reported this bug for the URL scheme "current version in particular language". I knew that "specific version in particular language" as well as "current version with no specified language" both work.

So will someone -- maybe you, Rainer Jung? -- fix the configuration at httpd.apache.org so that "current version in particular language" works?
Comment 3 Rainer Jung 2010-08-25 06:06:52 UTC
I had a look at the master directory on people.apache.org but couldn't find out, how "/current/" works. It is not in the file system and there is no .htaccess, so I assume it's part of the centralized webserver config. I will ask on the dev list and then possibly infra about it.
Comment 4 Stefan Nowak 2010-08-25 15:39:06 UTC
Thanks for caring and good luck with getting to the root of the bug!
Depending on your progress, please then update the issue here!
Offtopic, but what does "to infra" mean?
Comment 5 Rich Bowen 2010-10-29 11:07:37 UTC
Moving docs bugs to docs@httpd.a.o ownership.
Comment 6 Rich Bowen 2010-11-26 22:34:53 UTC
Rüdiger provided the following patch:


Index: httpd.apache.org.conf
===================================================================
--- httpd.apache.org.conf       (Revision 776399)
+++ httpd.apache.org.conf       (Arbeitskopie)
@@ -9,9 +9,6 @@
   RedirectMatch permanent ^/mod_aspdotnet.* http://httpd.apache.org/modules/#mod_aspdotnet


-  ## Add an alias, so that /docs/current/ -> /docs/2.2/
-  Alias /docs/current /x1/www/httpd.apache.org/docs/2.2
-
   <Directory /x1/www/httpd.apache.org/docs/1.3>
     <Files ~ "\.html">
         SetOutputFilter INCLUDES
@@ -19,9 +16,14 @@
   </Directory>

  # virtualize the language sub"directories"
-  AliasMatch ^(/docs/(?:2\.[0-3]|trunk|current))(?:/(?:de|en|es|fr|ja|ko|pt-br|ru|tr))?(/.*)?$ \
+  AliasMatch ^(/docs/(?:2\.[0-3]|trunk))(?:/(?:de|en|es|fr|ja|ko|pt-br|ru|tr))?(/.*)?$ \
      /x1/www/httpd.apache.org$1$2

+  # Add an alias, so that /docs/current/ -> /docs/2.2/
+  # and virtualize the language sub"directories"
+  AliasMatch ^(/docs)/current(?:/(?:de|en|es|fr|ja|ko|pt-br|ru|tr))?(/.*)?$ \
+      /x1/www/httpd.apache.org$1/2.2$2
+
  <DirectoryMatch "/x1/www/httpd.apache.org/docs/(2\.[0-3]|trunk)">
    Options -Multiviews
    <Files *.html>
Comment 7 Mina Galić 2010-12-01 12:13:50 UTC
https://issues.apache.org/jira/browse/INFRA-3254
Comment 8 Gav... 2010-12-06 21:29:13 UTC
Fixed in r780191, thanks for the patch.
Comment 9 Stefan Nowak 2010-12-07 13:37:15 UTC
It's great to see, that after a certain time, my concern has been solved! Thanks!

This is a real functional benefit!