System Administration
Showing results for 
Search instead for 
Did you mean: 

Problem witch appdirector+apache+jboss

Jaime Traver
Occasional Visitor

Problem witch appdirector+apache+jboss

At first place excuse me because my bad english. I have propound the following question. I have the following architecture.

ISP <---> APPdirector Radware <--> Farm <--> Server

The server contain the following:

Apache2 (with mod_proxy and mod_rewrite) ---Apache pass request to ---> JBOSS (Five Aplication web).

Especification Apache2:
Apache only listen 443.
All aplication are encripted witch ssl.
Request that arrive to apache it is transformer the following way:

RewriteEngine on

RewriteLog /var/log/httpd/rewrite.log

RewriteLogLevel 3

RewriteMap ports txt:/etc/httpd/http.txt

SSLEngine On

SSLCertificateFile /etc/httpd/certificados/newcert.pem

SSLCertificateKeyFile /etc/httpd/certificados/key.pem

RewriteCond %{HTTP_HOST} "(.*)\.midominio\.com"

RewriteRule ^/(.*)$ http://%1.localhost:${ports:%1}/ [P]

File [http.txt] contain:
uno 8080

dos 8180

tres 8280

cuatro 8380

cinco 8480

Apache used wildcard certificate for support all aplication web.

Especification Jboss :

There are five instances for Jboss and all it is listening on port diferent, i.e:
Aplication 1: 8080
Aplication 2: 8180
Aplication 3: 8280

The restriction is that only I have one IP and only it can open the por 443.
The problem is following:

User type in your web browser: and after timeout show

The request arrive to Appdirector this choose de Farm respective and redirect to server, When it is on the server apache receive the resquest and apply mod_rewrite and it send through proxy_reverse to jboss.

- Module rewrite of apache correct perform, how show the log file.