workers2.properties and regular expresssion URL mapping

J

Jonathan M. Rose

I am utilizing mod_jk2 to map from Apache 2.0.50 to JBoss 3.0.8-2. It
works like a champ. What I am trying to do that is giving me a problem
is to utilize regular expressions in the DOMAIN portion of the [uri:...]
mapping statement.

The relevent part of my current workers2.properties file is as follows:

[uri:www.discoveryyearscenters.com/index.jsp]
worker=ajp13:localhost:8809
[uri:www.discoveryyearscenters.com/FNSNEWS/*]
worker=ajp13:localhost:8809

What I would like to do is map more than just the domain
www.discoveryyearscenters.com through to the web application. Meaning I
would like to map discoveryyearscenters.com,
test.discoveryyearscenters.com, etc. through to the web application as
well as www.discoveryyearscenters.com. I can imagine that this would
work something like this...

[uri:*.discoveryyearscenters.com/index.jsp]
worker=ajp13:localhost:8809
[uri:*.discoveryyearscenters.com/FNSNEWS/*]
worker=ajp13:localhost:8809

....but this doesn't work.

Does anyone know how to utilize regular expressions in the
workers2.properties files IN THE DOMAIN NAME as well as the path?

Thank you in advance for your help.

-Jon
--
Jonathan M. Rose
President, Farious Net Solutions
Phone: (866)NET-SOLN; Web: http://www.farious.com
Computer sales and service, Linux deployment and maintenance, low
voltage wiring and Java/database Programming for the northern New
Jersey/New York City area. Call us today!
 
S

Sudsy

Jonathan M. Rose wrote:
What I would like to do is map more than just the domain
www.discoveryyearscenters.com through to the web application. Meaning I
would like to map discoveryyearscenters.com,
test.discoveryyearscenters.com, etc. through to the web application as
well as www.discoveryyearscenters.com. I can imagine that this would
work something like this...
<snip>

You're trying to perform the mapping at the wrong layer. If I read
your query correctly, you first have to manage the DNS mapping of
host to IP. Talk to your domain registrar as they often provide the
DNS resolution for the sub-elements of your domain name. Drop another
post if you require clarification.
Better yet, purchase the excellent tome "DNS and BIND", by Paul Albitz
and Cricket Liu, O'Reilly & Associates, ISBN 1-56592-010-4.

Disclaimer: I don't work, either directly or indirectly, for O'Reilly.
(although many of their references find a home on my bookshelf)
 
J

Jonathan M. Rose

Sudsy said:
You're trying to perform the mapping at the wrong layer. If I read
your query correctly, you first have to manage the DNS mapping of
host to IP. Talk to your domain registrar as they often provide the
DNS resolution for the sub-elements of your domain name. Drop another
post if you require clarification.
Better yet, purchase the excellent tome "DNS and BIND", by Paul Albitz
and Cricket Liu, O'Reilly & Associates, ISBN 1-56592-010-4.

Disclaimer: I don't work, either directly or indirectly, for O'Reilly.
(although many of their references find a home on my bookshelf)

I already have the DNS entries set up correctly, and I have Apache set
up to correctly map *.discoveryyearscenters.com to
www.discoveryyearscenters.com, as in:

<VirtualHost *:80>
....
ServerName www.discoveryyearscenters.com
ServerAlias www.discoveryyearscenters.com *.discoveryyearscenters.com
ServerAlias www.discoveryyearscenters.com discoveryyearscenters.com
....
</VirtualHost>

That same sort of wildcard mapping doesn't seem to exist in mod_jk2 (at
least not in the domain portion of the URL), unfortunately. I was
hoping that I was wrong and could do something like the above in mod_jk2
as well as in Apache.

-Jon
--
Jonathan M. Rose
President, Farious Net Solutions
Phone: (866)NET-SOLN; Web: http://www.farious.com
Computer sales and service, Linux deployment and maintenance, low
voltage wiring and Java/database Programming for the northern New
Jersey/New York City area. Call us today!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,054
Members
48,769
Latest member
Clifft

Latest Threads

Top