Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am not able to access my domain without port number.
Eg.its running like http://www.example.com:9080 where as i wnat it to work without port number. i.e www.example.com
my tomcat is running on 9080 . i have hosted my application on godaddy's linux virtual dedicated server.
my server.xml is something like this
<Connector connectionTimeout="20000" maxSpareThreads="75" maxThreads="150" minSpareThreads="25" port="9080" redirectPort="9443"/>
<Connector port="8009" protocol="AJP/1.3"/>
<Engine defaultHost="example" name="Catalina">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
<Host appBase="/home/admin/webapps" name="example">
<Alias>www.example.com</Alias>
</Host>
kindly help me.
Last edited by remo123; 07-28-2009 at 01:22 PM.
Reason: to add extra info
well you need to be running something on port 80 if you want to access it on port 80. You could either make tomcat listen directly, configure a normal web server like apache to listen and send a 302 redirect to get that jump up to 9080 done, or redirect with iptables:
well you need to be running something on port 80 if you want to access it on port 80. You could either make tomcat listen directly, configure a normal web server like apache to listen and send a 302 redirect to get that jump up to 9080 done, or redirect with iptables:
It, or a version of it, would go in our firewall startup script, but as you've not said what distro you're using I can't say what that would be. /etc/sysconfig/iptables or a redhat variant.
iptables -t nat -A PREROUTING -d your hostname -p tcp --dport 80 -j REDIRECT --to-ports 9080
wen i run the above command i m getting following error!
WARNING: /etc/modprobe.d line 1: ignoring bad line starting with 'á-@'
FATAL: Could not load /lib/modules/2.6.18-028stab059.6/modules.dep: No such file or directory
iptables v1.3.8: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Could u plz guide me in detail how to upgrade iptables version as i m very new to linux.
my current iptables version is : iptables v1.3.8 and kernel version is
2.6.18-028stab059.6
Using iptables to do dumb packet redirection is NOT the correct way to proceed in this matter.
You need to set up Apache2 using mod_jk to handle the communication between Apache and Tomcat.
Yeah I forgot about the connector, generally a much better solution.
Hi
I m using mod jk connector to configure tomcat with apache. But able to access only my static files whenever i access my domain.
I am getting following error in mod_jk.log
[Sat Aug 08 23:42:24 2009][3289:3079326032] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'wlb' in uri map post processing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.