I have two instances of JBoss running on different ports. So far it works fine, except session issue.
I am using Apache 2.0.52 and mod_jk2/2.0.4 and JBoss 4.0.0.
here are my workers.properties and http.conf.
------------ workers.properties -------------------------
file=D:/Apache/Apache2/logs/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:18009]
port=18009
host=localhost
[channel.socket:localhost:28009]
port=28009
host=localhost
# define the worker
[ajp13:localhost:18009]
channel=channel.socket:localhost:18009
[ajp13:localhost:28009]
channel=channel.socket:localhost:28009
# Uri mapping
[uri:/*.jsp]
worker1=ajp13:localhost:18009
[uri:/*.do]
worker1=ajp13:localhost:18009
[uri:/servlet/*]
worker1=ajp13:localhost:18009
[uri:/*.jsp]
worker2=ajp13:localhost:28009
[uri:/*.do]
worker2=ajp13:localhost:28009
[uri:/servlet/*]
worker2=ajp13:localhost:28009
<Location "/*.jsp"> JkUriSet ajp13:localhost:18009 ajp13:localhost:28009</Location>
<Location "/*.do"> JkUriSet ajp13:localhost:18009 ajp13:localhost:28009</Location>
<Location "/servlet/*"> JkUriSet ajp13:localhost:18009 ajp13:localhost:28009</Location>
-------------------- http.conf --------------------
<VirtualHost *:80>
ServerAdmin test@test.com
DocumentRoot D:\Apache\Apache2\web\test
ServerName ServerAlias xxx.com/test *.test.com
ErrorLog logs/test.com-error_log
CustomLog logs/test.com-access_log common
</VirtualHost>
<Location "/*.jsp">
JkUriSet worker1 ajp13:localhost:18009
</Location>
<Location "/*.do">
JkUriSet worker1 ajp13:localhost:18009
</Location>
<Location "/servlet/*">
JkUriSet worker1 ajp13:localhost:18009
</Location>
<Location "/*.jsp">
JkUriSet worker2 ajp13:localhost:28009
</Location>
<Location "/*.do">
JkUriSet worker2 ajp13:localhost:28009
</Location>
<Location "/servlet/*">
JkUriSet worker2 ajp13:localhost:28009
</Location>
The problem is that I have a login page asking username and password. even though I type in the correct username and password, it doesn't take me to the next page. It keeps showing the login page. I am not sure what the problem is.
It would be very grateful if somebody can correct this configuration.
Thanks.
I am using Apache 2.0.52 and mod_jk2/2.0.4 and JBoss 4.0.0.
here are my workers.properties and http.conf.
------------ workers.properties -------------------------
file=D:/Apache/Apache2/logs/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:18009]
port=18009
host=localhost
[channel.socket:localhost:28009]
port=28009
host=localhost
# define the worker
[ajp13:localhost:18009]
channel=channel.socket:localhost:18009
[ajp13:localhost:28009]
channel=channel.socket:localhost:28009
# Uri mapping
[uri:/*.jsp]
worker1=ajp13:localhost:18009
[uri:/*.do]
worker1=ajp13:localhost:18009
[uri:/servlet/*]
worker1=ajp13:localhost:18009
[uri:/*.jsp]
worker2=ajp13:localhost:28009
[uri:/*.do]
worker2=ajp13:localhost:28009
[uri:/servlet/*]
worker2=ajp13:localhost:28009
<Location "/*.jsp"> JkUriSet ajp13:localhost:18009 ajp13:localhost:28009</Location>
<Location "/*.do"> JkUriSet ajp13:localhost:18009 ajp13:localhost:28009</Location>
<Location "/servlet/*"> JkUriSet ajp13:localhost:18009 ajp13:localhost:28009</Location>
-------------------- http.conf --------------------
<VirtualHost *:80>
ServerAdmin test@test.com
DocumentRoot D:\Apache\Apache2\web\test
ServerName ServerAlias xxx.com/test *.test.com
ErrorLog logs/test.com-error_log
CustomLog logs/test.com-access_log common
</VirtualHost>
<Location "/*.jsp">
JkUriSet worker1 ajp13:localhost:18009
</Location>
<Location "/*.do">
JkUriSet worker1 ajp13:localhost:18009
</Location>
<Location "/servlet/*">
JkUriSet worker1 ajp13:localhost:18009
</Location>
<Location "/*.jsp">
JkUriSet worker2 ajp13:localhost:28009
</Location>
<Location "/*.do">
JkUriSet worker2 ajp13:localhost:28009
</Location>
<Location "/servlet/*">
JkUriSet worker2 ajp13:localhost:28009
</Location>
The problem is that I have a login page asking username and password. even though I type in the correct username and password, it doesn't take me to the next page. It keeps showing the login page. I am not sure what the problem is.
It would be very grateful if somebody can correct this configuration.
Thanks.