LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-08-2008, 11:25 PM   #16
ayush1440
Member
 
Registered: Dec 2007
Posts: 75

Rep: Reputation: 15

Quote:
Originally Posted by gilead View Post
What error do you get when you use your hosted web site - is it a 404? When you installed Tomcat and mod_jk on that box did you use the same steps to set it up?
the error is 404-not found.
Not Found
The requested URL /jsp-examples was not found on this server..

but on a server localhost/jsp-examples works but www.mysite.com/jsp-examples dosent work.
Yeah, i use same step and work fine with localhost. i can access jsp-examples on localhost. but i cant access with my website. and when i open my website www.mysite.com its running very well, but /jsp-examples dosent work.
 
Old 02-09-2008, 01:15 PM   #17
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 168Reputation: 168
Can you post the sections where you've configured mod_jk from your httpd.conf file please? If it works for one and not the other, hopefully it's just a config change.
 
Old 02-11-2008, 08:12 AM   #18
ayush1440
Member
 
Registered: Dec 2007
Posts: 75

Rep: Reputation: 15
Quote:
Originally Posted by gilead View Post
Can you post the sections where you've configured mod_jk from your httpd.conf file please? If it works for one and not the other, hopefully it's just a config change.
I m sending config portion of http.conf file

LoadModule jk_module /usr/lib/httpd/modules/mod_jk.so

# Where to put jk logs
JkLogFile /var/log/httpd/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLevel error,debug,info

# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

# JkOptions indicate to send SSL KEY SIZE,
#JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"


# Send servlet for context / jsp-examples to worker named worker1
JkMount /jsp-examples worker1

# Send JSPs for context /jsp-examples/* to worker named worker1
JkMount /jsp-examples/* worker1

I did above configuration for tomcat mod_jk.. its working but i want to config that when httpd receive request of *.jsp file then it automatically send request to tomcat. right now i have to right localhost/jsp-examples.
 
Old 02-11-2008, 05:46 PM   #19
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 168Reputation: 168
You can have mod_jk pass *.jsp to tomcat with jkmount. Have a look here for more info:
Code:
JkMount /*.jsp ajp13
 
Old 02-14-2008, 09:49 AM   #20
ayush1440
Member
 
Registered: Dec 2007
Posts: 75

Rep: Reputation: 15
Thank You

Quote:
Originally Posted by gilead View Post
You can have mod_jk pass *.jsp to tomcat with jkmount. Have a look here for more info:
Code:
JkMount /*.jsp ajp13
thank you so much for your information. Now my jsp files run through my virtual domain. Thank a lot.
 
Old 02-14-2008, 04:39 PM   #21
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 168Reputation: 168
That's good news - I'm glad you got it working
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd 2.0.55 + mod_proxy slow DNS resolution TotalDefiance Linux - Software 0 10-26-2006 10:28 AM
Apache + Mod_proxy ProxyPass paul_mat Linux - Networking 2 04-14-2006 08:57 PM
Apache 1.3 mod_proxy no cache mago Linux - Software 0 04-07-2006 12:39 PM
tomcat 5 implimentation on apache httpd server srikz Red Hat 0 07-22-2004 02:00 AM
Webmin Through Apache using mod_proxy... ech310n Linux - General 0 01-28-2004 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration