#22222 [Opn]: mod_rewrite variables change between apache and apache2

From: Date: Fri, 14 Feb 2003 13:28:05 +0000
Subject: #22222 [Opn]: mod_rewrite variables change between apache and apache2
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-33171@lists.php.net to get a copy of this message
 ID:               22222
 User updated by:  tthiery@yahoo.de
 Reported By:      tthiery@yahoo.de
 Status:           Open
 Bug Type:         Apache2 related
 Operating System: Win32
 PHP Version:      4.3.0
 New Comment:

I did a little mistake in the description nothing on the topic
<VirtualHost mycomputer.local:80>
	DocumentRoot "D:/CVSCheckout/project"
	ServerName mycomputer.local
	RewriteEngine On
	RewriteRule ^/.*\.xml /system/if/xmlfile.if.php
</VirtualHost>


Previous Comments:
------------------------------------------------------------------------

[2003-02-14 07:25:51] tthiery@yahoo.de

Hello,

I have a problem with a different behaviour of Apache / Apache2
Two configuration:
- Apache 1.3.27 / PHP 4.3 / Win32
- Apache 2.0.44 / PHP 4.3 / Win32

with more or less the same httpd.conf configuration file (here the part
which make troubles):
...
<VirtualHost io:80>
	DocumentRoot "D:/CVSCheckout/project"
	ServerName mycomputer.local
	RewriteEngine On
	RewriteRule ^/.*\.xml /system/if/xmlfile.if.php
</VirtualHost>
....
Both configuration should rewrite all .xml files to a central file,
which load the xml file and output the parsed xml code in a format
(i.e. HTML, PDF, Flash, ...).

No problem till I update the system to apache 2.0.44. Since then I get
a "400 Bad Request" Error (IE, Mozilla). I test a while and solve the
problem with this line: 
	RewriteRule ^/.*\.xml /system/if/xmlfile.if.php [PT]
but now all script variables like SCRIPT_NAME, etc. changes due to the
other way of rewrite.

Ok, I could do a nasty workaround, but I hate to do this due to a bug.

I know it's perhaps not a php Bug (at least I think so) but it
influence the normal php script behaviour a lot. Perhaps one of the PHP
and Apache developer could solve the problem

cu

Thomas Thiery

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22222&edit=1



Thread (3 messages)

« previous php.bugs (#33171) next »