Forum Moderators: phranque

Message Too Old, No Replies

Where do I start?

apache 2 mod_rewrite mod_proxy

         

alexian

1:56 am on Jun 12, 2006 (gmt 0)

10+ Year Member



Greeting to all,

I'm relative new at this, so hopefully I'll get the problem defined correctly here.

I'm running Apache 2 on a SuSE SLE9 linux box.

This is listening on port 80 for requests.

Externally, I have one IP address. at the moment, I have two external DNS entries defined which resolves to the same IP address.

i.e.

www.domain.com --> 202.123.123.122
apps.domain.com --> 202.123.123.122

Internally, I have two internal servers with two indepent apps, starting from the following URLs.

[intserv1.domain.com:8000...]
[intserv2.domain.com:7778...]

I have successfully reverse proxy the first app, using proxyPass and proxyPassReverse directives for the '/' folder.

i.e.

ProxyPass / [intserv1.domain.com:8000...]
ProxyPassReverse / [intserv1.domain.com:8000...]

Now, I'm not sure what to do next. If my goal is to get both these URLs working via port 80.

Another way of putting it is:

Clients will issue URLs in the form of:

[domain.com...]
[apps.domain.com...]

but will be directed to the internal servers in this fashion:

[domain.com...] --> [intserv1.domain.com:8000...]

[apps.domain.com...] -->
[intserv2.domain.com:7778...]

jdMorgan

2:47 am on Jun 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sounds like you might want to set up two or three virtual servers, so that each subdomain and the main domain can have separate "Alias" definitions within the unique virtual server containers.

Jim

alexian

7:33 am on Jun 13, 2006 (gmt 0)

10+ Year Member



Thanks Jim,

I'm open to ideas, how would I go about doing something like that?

At the moment, I'm thinking of the <VirtualHost> directive, but an example would be handy.

Alex

jdMorgan

2:38 pm on Jun 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Please see the Apache documentation for more info -- They have several pages of documentation on the necessary directives, and tutorial pages [httpd.apache.org] as well. This is a 'project' and not something that anyone can quickly answer for you in a few paragraphs on a forum.

Jim