Karuppu,
There are many things that are going on here:
1. As Chris has pointed out, DNS is an issue
2. Running applications on ports < 1024 requires root privileges
3. You do NOT want to run Tomcat (or any server) as root
From another machine, can you do the following:
dig www.yourdomain.com
If you get QUERY, status: NXDOMAIN, then your domain name is not
registered or in DNS, and you'll have to take care of that first.
Taking care of registering your domain is registry-specific. Adding it
to DNS once you do this is ISP-specific.
BTW, www.yourdomain.com is registered, as is thisshouldnotexist.com. Go
figure.
Now, once you have that taken care of, you should be able to get to
http://www.yourdomain.com:8080/
The next task is to get your Tomcat server running on port 80. There are
at least three routes.
1. ip tables with port forwarding
Ask on the CentOS mailing list concerning this. Or read the IP Tables
documentation. It's not too difficult to figure out, and there are many
examples of this on the 'net.
2. Front end with Apache HTTPD running on port 80
You can then connect your Tomcat to Apache with mod_jk (see the docs at
http://tomcat.apache.org/connectors-doc/), mod_proxy_ajp, or mod_proxy_http.
This is nice if you have other applications besides Tomcat-based ones,
or have some esoteric requirements. Other than that, it's not necessary
and just creates more overhead and complexity.
3. Commons-daemon
This will allow you to run Tomcat on port 80 without running as root.
Instructions for doing so can be found here:
http://tomcat.apache.org/tomcat-7.0-doc/setup.html#Unix_daemon.
However, first things first - get your host name registered and resolving.
. . . . just my two cents.
/mde/
On 8/19/2013 10:27 AM, Karuppu Samy wrote:
Hi Chris,
Let me explain you clearly.
I have centos with cPanel which comes with tomcat 7. I have installed
tomcat 7 now.
My query is, After deploy the application through tomcat manager, I am able
to access the application through http://IP_address:8080/application_name
I don't want to access through port number instead of that I would like to
access the application through http://www.yourdomain.com .. Is that
possible??? If so, please let me know exact configuration should I need to
edit..????
On Mon, Aug 19, 2013 at 7:23 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Karuppu,
On 8/19/13 9:49 AM, Christopher Schultz wrote:
Karuppu,
On 8/16/13 9:51 PM, Karuppu Samy wrote:
I have cPanel servers which runs on tomcat 7 and installed
necessary modules.
But I wanted to know how to access the deployed application
using domain name instead of http://IP_address:8080 ? where
should change the configuration part?
I have created the domain and assigned dedicated IP address and
installed servlets from cPanel.
Any help will highly appreciated :)
This sounds like a cPanel question, not a Tomcat one.
Sorry... hit CTRL-ENTER instead of just ENTER and prematurely sent my
message.
Anyhow, Tomcat in its default configuration will listen on all
interfaces and it doesn't matter what hostname (or IP addresS) you use
to access it: you will get a response no matter what (assuming no
firewall, etc. is in the way, etc.). If cPanel has changed this
configuration, we'll never know so you'll need to ask your provider
about that kind of thing.
If you've already set up DNS properly, then Tomcat itself should have
no problem.
What happens when you just try to visit http://yourhostname:8080/ ?
- -chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org