homepage Welcome to WebmasterWorld Guest from 54.211.95.201
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
single IP address, redirecting subdomains
stiltzkin




msg:3366284
 12:19 pm on Jun 13, 2007 (gmt 0)

Firstly, apologies if this is a simple (in every sense of the word) question.

I have one external static IP address and am using Apache as the web server. My app server is weblogic 8.1.

What I have set up is...

Physical server exposed through DMZ with static IP to the outside world. This is where apache is running.

On this machine I vmware running with a VM which has my app server and DB.

I currently having everything working... www.mydomain.com and demo.mydomain.com both hit the webserver and direct traffic to my app server sat on the VM.

What I now need to do is introduce another VM also running Weblogic 8.1 and another sub domain (demo2.mydomain.com).

So then I'll have Apache in the DMZ on the host machine. demo.mydomain.com routed through to VM1 and demo2.mydomain.com through to VM2.

For anyone not familiar with VMware basically think of it as two physical separate app servers sat on your internal network VM1 = 192.168.1.2 and VM2 = 192.168.1.3.

Iíve tried a few different things within the HTTPd.config file, to try and achieve this, however, so far Iíve failed to get it working.

Does anyone know how I can do this, or what terminology I should use in google to get to the answer?

Thanks a lot!

Stiltz

 

aeramas




msg:3377036
 10:09 pm on Jun 23, 2007 (gmt 0)

I am not so sure what you are asking.

What I think you are asking is you want one HTTP server with mydomain.com and subdomain1.mydomain.com pointing to one VM app server 1. Then you want another subdomain2.mydomain.com pointing to VM app server 2.

First question is, is the app on VM Server 1 and app on VM server 2 webprograms? or are they local programs that can have DMZ Router route to differnt ports and have a script in your website to redirect to the appropriate internal IPs

What version of Apache are you running?

here is some doc info from apache 2.2 which may help you, Vhost or virtual host may be your answer.
[httpd.apache.org...]

you can also try a good .htaccess file to do your redirecting.

Another option is to have a script wrote and embedded in mydomain.com that will redirect to differnt IPs.

stiltzkin




msg:3384010
 9:43 am on Jul 2, 2007 (gmt 0)

Thanks a lot for the reply!

I am trying to do exactlly as you stated...

one external IP address, with two internal IP address. Each on the internal IP addresses will be running weblogic, DB, App etc...

Essentially both installation are exactlly the same, but the way the app will be used is different. So demo.mydomain.com is for one use (demo's believe it or not ;) ) and then test.mydomain.com for... well I rekon you can guess...

I'm using Apache 2.0.59

When you say a 'good .htaccess file' what do you mean by good, and where can I get a good starting point from?

Thanks again for your help with this... going to have a read through the link you put up now...

Cheers

Stilz

jdMorgan




msg:3384381
 6:07 pm on Jul 2, 2007 (gmt 0)

Also, look into Apache mod_proxy [httpd.apache.org], commonly used to map certain parts of your URL-space to back-end servers.

Jim

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved