DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15751>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15751
Rewriting of language negotiated pages fails
------- Additional Comments From adam@os.inf.tu-dresden.de 2003-01-01 16:26 -------
Things seem to be a bit more complicated. My current production system (using
1.3) has a .htaccess with the rewriting rules:
d#6000000000047030/initial] (2) init rewrite engine with requested uri /a/
d#6000000000047030/initial] (3) applying pattern '^(.*)' to uri '/a/'
d#6000000000047030/initial] (1) pass through /a/
d#6000000000047030/initial] (3) [per-dir /var/www/a/] add path-info postfix:
/var/www/a -> /var/www/a/
d#6000000000047030/initial] (3) [per-dir /var/www/a/] strip per-dir prefix:
/var/www/a/ ->
d#6000000000047030/initial] (3) [per-dir /var/www/a/] applying pattern '^' to uri ''
d#6000000000047030/initial] (1) [per-dir /var/www/a/] pass through /var/www/a
d#600000000004e4a0/subreq] (2) init rewrite engine with requested uri /a/index.html
d#600000000004e4a0/subreq] (3) applying pattern '^(.*)' to uri '/a/index.html'
d#600000000004e4a0/subreq] (1) pass through /a/index.html
d#600000000004c788/initial/redir#1] (2) init rewrite engine with requested uri
/a/index.html
d#600000000004c788/initial/redir#1] (3) applying pattern '^(.*)' to uri
'/a/index.html'
d#600000000004c788/initial/redir#1] (1) pass through /a/index.html
d#600000000004c788/initial/redir#1] (3) [per-dir /var/www/a/] strip per-dir
prefix: /var/www/a/index.html.en -> index.html.en
d#600000000004c788/initial/redir#1] (3) [per-dir /var/www/a/] applying pattern
'^' to uri 'index.html.en'
d#600000000004c788/initial/redir#1] (1) [per-dir /var/www/a/] pass through
/var/www/a/index.html.en
The fine thing is that in the "per-dir" rules, index.html.en instead of just
index.html is taken (in the second group). I need the actual existing file name
later to do the processing. The information "index.html" is useless for me in
this case as such a file doesn't exist on the filesystem and I need the
language negotiated file instead.
I just tried to reproduce this with the rewriting rules in httpd.conf and it
doesn't work there (it only uses the index.html file). Hmm.
In 2.0 it looks like this:
000000c14f0/initial] (2) init rewrite engine with requested uri /a/
000000c14f0/initial] (3) applying pattern '^(.*)' to uri '/a/'
000000c14f0/initial] (1) pass through /a/
000000c14f0/initial] (3) [per-dir /var/tmp/apache2/htdocs/a/] strip per-dir
prefix: /var/tmp/apache2/htdocs/a/ ->
000000c14f0/initial] (3) [per-dir /var/tmp/apache2/htdocs/a/] applying pattern
'^' to uri ''
000000c14f0/initial] (1) [per-dir /var/tmp/apache2/htdocs/a/] pass through
/var/tmp/apache2/htdocs/a/
000000c9530/subreq] (2) init rewrite engine with requested uri /a/index.html
000000c9530/subreq] (3) applying pattern '^(.*)' to uri '/a/index.html'
000000c9530/subreq] (1) pass through /a/index.html
So the second group of "per-dir" is missing?!
Probably I'm doing something wrong in the configuration?
Is there a way to get the real filename if the rules are in httpd.conf, avoiding
to use .htaccess? That would be great!
Hoping to be clear this time :), thanks, Adam.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
|