Welcome Guest ( Log In | Register )

 
RSS feedBump TopicReply to this topicStart new topicStart Poll

Outline · [ Standard ] · Linear+

> Subdomain redirection on Ubuntu and Tomcat 7, IP displayed on address bar

madcatz
post Mar 14 2012, 04:34 PM


Getting Started
**
Group: Junior Member
Posts: 247

Joined: Jan 2005
From: Shah Alam , Malaysia



Hi there, I'm an ubuntu n00b here trying to up my application on a shared server. the server runs currently on ubuntu 11.04 64 bit and has an IP reserved for it.

I have subscribed to a hosting service and redirected the subdomain to this server's IP (http://xxx.xxx.xxx.xxx/port/folder/APP), the subdomain is like this: "myapp.my-domain.com".

However when I put the domain name in the address bar, I am taken to the correct site, but the domain (myapp.my-domain.com) would disappear and reveal my IP.

How do I make my domain stay in the address bar? I have tried the .htaccess method but its not working. My app is currently running on tomcat 7. I hope the more experienced ubuntu gurus here could shed some light. Thanks smile.gif


Added on March 15, 2012, 10:48 amSo can nobody help me?

This post has been edited by madcatz: Mar 15 2012, 10:48 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
highflier
post Mar 16 2012, 03:11 PM


New Member
*
Group: Junior Member
Posts: 41

Joined: Oct 2004
Have you check on this? http://tomcat.apache.org/tomcat-7.0-doc/co...st_Name_Aliases
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
slaughters
post Mar 28 2012, 11:22 AM


New Member
*
Group: Junior Member
Posts: 27

Joined: Apr 2007
how did you do the redirection actually ?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
madcatz
post Apr 5 2012, 05:01 PM


Getting Started
**
Group: Junior Member
Posts: 247

Joined: Jan 2005
From: Shah Alam , Malaysia



Hi there,

Currently the redirection is done using cPanel on another server, my Application does not reside on the cPanel server

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Bump TopicReply to this topicTopic OptionsStart new topic
 

Switch to:
| Lo-Fi Version
0.0538sec    0.47    5 queries    GZIP Disabled
Time is now: 24th April 2014 - 04:17 AM