You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/01/09 19:48:05 UTC
DO NOT REPLY [Bug 33022] New: -
apache runs out of virtual memory with mod_rewrite
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33022>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33022
Summary: apache runs out of virtual memory with mod_rewrite
Product: Apache httpd-2.0
Version: 2.0.48
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: critical
Priority: P4
Component: mod_rewrite
AssignedTo: bugs@httpd.apache.org
ReportedBy: caterham@web.de
While using this code in a .htaccess file in a subfolder /test/ (per-directory
rewriting), the Virtual memory runs out. I barely was able to restart apache
server before a system crash.
The request URL was http://www.example.com/test/index/ab/1/cd/3
and should be rewritten to http://www.example.com/test/index.php?ab=1&cd=3
/test/ is the physical-directory-path, so there is no use of mod_alias which
might require to specify a "RewriteBase /physical-directory-path"
this is (the only) used RewriteRule in /test/.htaccess, there are no other Rules
either in /.htaccess or the server-config
---
RewriteEngine On
RewriteRule ^index/([^/]+)/([^/]+)(.*)$ /index$3?$1=$2 [QSA,N]
RewriteRule ^index/?$ index.php [QSA,L]
---
This has happened at least on WinXP with Apache/2.0.48 and Apache/1.3.26.
This Prolem was solved, when the dir-prefix /test/ was specified in the
substitution:
---
RewriteEngine On
RewriteRule ^index/([^/]+)/([^/]+)(.*)$ /test/index$3?$1=$2 [QSA,N]
RewriteRule ^index/?$ /test/index.php [QSA,L]
---
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org