We help IT Professionals succeed at work.

Accessing on different URL, Alias maybe?

Medium Priority
356 Views
Last Modified: 2012-05-11
Hi,

I have 1 linux server, with computer name : server1.xyz.com

there it was running 2 java web based application than run on Apache Tomcat. Let's name it : app1, and app2.

by default, we access app1 and app2 by this URL :
http://server1.xyz.com/app1  and
http://server1.xyz.com/app1 

My questions :
Can we access app1 by using URL : app1.xyz.com and app2 by using URL : app2.xyz.com ?

If we can, how to do it?
Comment
Watch Question

CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Most Valuable Expert 2011
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT

Commented:
I like this discussion.  

@aliganjei: I use mod_rewrite all the time, but I think I am not very clear about your comment so kindly explain the bolded phrases that you used.
But if you want the reverse order, you have to perform some transparent URL rewriting in your Apache
Most Valuable Expert 2011

Commented:
I've done exactly what is being asked and I never had to rewrite anything or jump through any "hoops".  I did it just as I described in my post above.   Simple, clean, straight-forward.
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
thanks
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.