Domain for AwareIM installation

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
robleer
Posts: 285
Joined: Wed Jul 14, 2010 7:01 pm

Domain for AwareIM installation

Post by robleer »

Hi,

How do I link a domain to a server with a AwareIM installation?

I have my domain pointing to the IP adres of the server, but where in the TomCat installation do I have to add a file like 'index.html', so the server responds with a landing page?

On that landing page I want to make a button which leads the user to the /AwareIM/logon.aw so he can logon.

Is there somewhere a description how to add a domain to a webserver with a AwareIM/Tomcat webserver?

Bye,

Rob
Using 8.7 Professional 3025 on MySQL/Windows
customaware
Posts: 2407
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Domain for AwareIM installation

Post by customaware »

Rob
You need to add a Virtual Host tag to the server.xml
file under Tomcat/conf

There is a lot of documentation on Google on how to do
it.

It is late here now but I can send you an example tomorrow
if you get stuck and can't work it out.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
hpl123
Posts: 2604
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Domain for AwareIM installation

Post by hpl123 »

Mark,
Actually, do you mind sharing the how to here? I usually do a quickfix via DNS but isn´t the prettiest solution and this also doesn´t work for multiple domains.

Thanks
Henrik (V8 Developer Ed. - Windows)
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

Re: Domain for AwareIM installation

Post by BenHayat »

eagles9999 wrote:Rob
You need to add a Virtual Host tag to the server.xml
file under Tomcat/conf

There is a lot of documentation on Google on how to do
it.

It is late here now but I can send you an example tomorrow
if you get stuck and can't work it out.
I can use any docs you have on installation as well.
Thanks in advance!
robleer
Posts: 285
Joined: Wed Jul 14, 2010 7:01 pm

Re: Domain for AwareIM installation

Post by robleer »

I googled it already and cannot really find out how to do it. Thats why I ask for help here. Tia rob
Using 8.7 Professional 3025 on MySQL/Windows
customaware
Posts: 2407
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Domain for AwareIM installation

Post by customaware »

Not sure what you googled Rob but when I use 'multiple domains tomcat' I get a heap of stuff and most pretty much lay it out.
Anyway, here is a shortcut.

In your server.xml file you can see the default localhost Host...
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>

Now you want you web site landing page for robapps.com

Create a folder under Tomcat/webapps called robapps and put your entire website in there and you index.html file also.

Now back in server.xml after the <Host></Host> tag above.... add this....

<Host name="www.robapps.com" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Alias>robapps.com</Alias>
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="myfirstapp_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b"/>
<Context path="" docBase="robapps" debug="0" reloadable="true"/>
</Host>

Save it and restart Aware. Make sure Tomcat restarts.
It will take a few minutes to work thru everything but you should be able to hit the site with your domain name http://www.robapps.com and you landing
page from Tomcat/webapps/robapps/index.html should load

Hope that works for you.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
robleer
Posts: 285
Joined: Wed Jul 14, 2010 7:01 pm

Re: Domain for AwareIM installation

Post by robleer »

Hi Mark,

Thanks for your help.

But this did not work. It creates another, new website and the webserver does not recognize this as the default site.

I found out that when you create a /ROOT folder in the webapps folder, and then put an index.html there, it works. Thats all you have to do.

Bye,

Rob
Using 8.7 Professional 3025 on MySQL/Windows
customaware
Posts: 2407
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Domain for AwareIM installation

Post by customaware »

Hi Rob,

Yes, creating a ROOT folder does work and indeed that is how I first got mine to work.

However, I have since learnt that that is not really the most preferred solution especially if you find you have the need to run
any additional domains or sub-domains on the same machine.

I ended up getting a "expert" (if there is such a thing) to give me a hand sorting mine out when I wanted to add a second domain. I have run up to 4 domains on the
same machine without issue.

The solution I set you in the earlier post certainly works for me as I essentially just cut and pasted it from my server. So, I guess you might have had some small minor
setting incorrect.

Anyway, if the solution you are now using fits the bill then that's great.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
robleer
Posts: 285
Joined: Wed Jul 14, 2010 7:01 pm

Re: Domain for AwareIM installation

Post by robleer »

Hi Mark,

Ok, thats clear. It does work for now .

Thanks for your help.

Rob
Using 8.7 Professional 3025 on MySQL/Windows
hpl123
Posts: 2604
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Domain for AwareIM installation

Post by hpl123 »

Thanks for sharing Mark :).
Henrik (V8 Developer Ed. - Windows)
Post Reply