hallo:
I'm trying to use mod_rewrite in apache 2.2.
My rule is very easy:
write 'a.html' and rewrite to '/folder1/alta.html'.
What I've added to httpd.conf
Quote:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteLog /opt/apache22/logs/rewrite.log
RewriteLogLevel 9
RewriteRule ^/a\.html$ /folder1/alta.html
</IfModule>
|
The file exists:
Quote:
# ls -l /opt/apache22/htdocs/folder1/alta.html
-rw-r--r-- 1 root root 10 mar 21 23:03 /opt/apache22/htdocs/folder1/alta.html
|
But if i type in Firefox:
http://curso3.curso.red/a.html
next message is displayed:
Quote:
..
The connection to the server was reset while the page was loading.
..
|
And log is:
Quote:
==> error_log <==
[Thu Mar 22 23:48:29 2012] [notice] child pid 5090 exit signal Segmentation fault (11)
==> rewrite.log <==
192.168.1.183 - - [22/Mar/2012:23:48:29 +0100] [curso3.curso.red/sid#8492a18][rid#85ac4c8/initial] (2) init rewrite engine with requested uri /a.html
192.168.1.183 - - [22/Mar/2012:23:48:29 +0100] [curso3.curso.red/sid#8492a18][rid#85ac4c8/initial] (3) applying pattern '^/a\.html$' to uri '/a.html'
192.168.1.183 - - [22/Mar/2012:23:48:29 +0100] [curso3.curso.red/sid#8492a18][rid#85ac4c8/initial] (2) rewrite '/a.html' -> '/folder1/alta.html'
192.168.1.183 - - [22/Mar/2012:23:48:29 +0100] [curso3.curso.red/sid#8492a18][rid#85ac4c8/initial] (2) local path result: /folder1/alta.html
192.168.1.183 - - [22/Mar/2012:23:48:29 +0100] [curso3.curso.red/sid#8492a18][rid#85ac4c8/initial] (2) prefixed with document_root to /opt/apache22/htdocs/folder1/alta.html
192.168.1.183 - - [22/Mar/2012:23:48:29 +0100] [curso3.curso.red/sid#8492a18][rid#85ac4c8/initial] (1) go-ahead with /opt/apache22/htdocs/folder1/alta.html [OK]
|
Of course, If I type the full path, it works:
Whats wrong? Why do I receive the signal segmentation fault and can't display the page?
Thanks