Problema com mod_rewrite + mod_jk

1. Problema com mod_rewrite + mod_jk

edson
efcunha

(usa CentOS)

Enviado em 17/05/2012 - 10:15h

Centos 5.8
Mod_JK 1.2.30
Server version: Apache/2.2.3
Server built: Feb 23 2012 21:16:56

Estou com o sequinte problema, configurei o mod_jk no apache para fazer requisição no servidor jboss, só que como o servidor apache utiliza o mod_rewrite, não estou conseguindo redirecional as chamadas para o server jboss das paginas

[root@webdesenv conf.d]# cat /etc/httpd/conf.d/mod-jk.conf
LoadModule jk_module modules/mod_jk.so

JkWorkersFile conf/workers.properties

JkLogFile logs/mod_jk.log

JkLogLevel debug

JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"

# For mod_rewrite compatibility, use +ForwardURIProxy (default since 1.2.24)
JkOptions +ForwardURIProxy +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories

JkRequestLogFormat "%w %V %T"

JkMountCopy On

#JkMountFile conf/uriworkermap.properties

# Send servlet for context / jsp-examples to worker named worker1
JkMount /RAI jboss

# Send JSPs for context /jsp-examples/* to worker named worker1
JkMount /RAI/* jboss

JkShmFile run/jk.shm

<Location /jkstatus>
JkMount status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>

[root@webdesenv conf]# cat /etc/httpd/conf/uriworkermap.properties
#/*=jboss
!/health.html=loadbalancer


[root@webdesenv conf]# cat /etc/httpd/conf/workers.properties
worker.list=jboss,loadbalancer,status

worker.jboss.port=8009
worker.jboss.type=ajp13
worker.jboss.ping_mode=A
worker.jboss.socket_timeout=10
worker.jboss.connection_pool_size=10
#worker.default.reference=worker.template
worker.jboss.host=11.1.1.20

worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=default
worker.loadbalancer.sticky_session=True
worker.status.type=status


Configuração mod no servidor web apache mod_rewrite

[root@webdesenv conf]# cat /var/www/portal/web/.htaccess
Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
RewriteEngine On

# uncomment the following line, if you are having trouble
# getting no_script_name to work
#RewriteBase /

# we skip all files with .something
RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteRule .* - [L]

# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f

# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]

</IfModule>

Preciso de uma ajuda para configurar o mod_rewrite para que direcione as chamadas para o server jboss.



  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts