mod_rewrite doen't work in apache
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:
Quote:
http://curso3.curso.red/a.html next message is displayed: Quote:
Quote:
Whats wrong? Why do I receive the signal segmentation fault and can't display the page? Thanks |
Does it work if you add [L] to the rewrite rule?
|
Hello:
I've also tried with [L] and the problem is the same. I can't understand why doesn't work. It's an easy sample... No sure but I think that rewrite isn't working, but don't know why. Any other suggestion? Thanks |
Well, since it's getting a segfault I'd say the problem is most likely a but in httpd. Try a new version and see if that fixes the problem.
|
Now I've downloaded and installed Apache 2.4.1 and it works fine.
But I think the problem was another. At first, the rewrite worked. But has stopped working when I've compiled the mod_jk for connection to tomcat. The mod_jk release 1.2.33 I downloaded first has a problem as can be read in: http://tomcat.apache.org/connectors-doc/ So I've downloaded 1.2.32 and everything works fine (at least the previous sample works in Apache 2.4.1 with mod_jk enabled). For compiling 1.2.32 with Apache 2.4.1 there is a problem with make, which can be solved following this link (it talks about jk2-4, but has solved my problem with jk 1.2.32: http://dev.portalaces.com/null/compi...on-apache-2-4/ Thanks for the help |
Quote:
|
All times are GMT -5. The time now is 07:04 PM. |