how i troubleshoot since rewrite manners aren't being receptive apache?


i've got tomcat 6 web app controlling apache httpd front end. i'm controlling mod_proxy mod_proxy_ajp disrespectful requests tomcat. server controlling ubuntu. i'm perplexing mod_rewrite mislay streamer www, certified website url rather



i've review array tutorials controlling mod_rewrite, nonetheless i can't any rewriting work. i've attempted putting rewrite order an .htaccess record (after modifying /etc/apache/sites-available/default record set allowoverride all). i've attempted putting rewrite order apache2.conf, httpd.conf, rewrite.conf. i've attempted rewrite logging incited on. record record gets created, nonetheless apache combined zero it. i guess maybe mod_proxy somehow preventing rewrite manners being used, i attempted disabling well...and i still rewrite, zero log.



at indicate i have definitely thought try next. i troubleshooting since apache isn't controlling rewrite rules?



for reference, here rewrite directives:



<ifmodule mod_rewrite.c>

rewriteengine on
rewritecond %{http_host} ^www.domain.com$ [nc]
rewriterule ^(.*)$ http://domain.com/$1 [r=301,l]
rewritelog "/var/log/apache2/rewrite.log"
rewriteloglevel 3

</ifmodule>


edit: responses next useful sole case, nonetheless substantially useful community-at-large answers troubleshoot apache directives general. example, there proceed assent logging indicate where tell me directives being receptive method ask comes in?



edit 2: i've gotten things work now. practical hosts weren't definitely set adult right, i also didn't definitely have rewrite regex right. here final rewrite directives i got work:



<ifmodule mod_rewrite.c>
rewriteengine on
rewritecond %{http_host} ^www\.domain\.com [nc]
rewriterule ^(.*)$ http://domain.com$1 [l,r=301]
</ifmodule>


Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

using mvc, should hoop communication between views? between models?