Login

mvnForum

mvnForum Homepage Welcome Guest
  Search  
  Index  | Recent Threads  | Unanswered Threads  | List Polls  | Public Albums  | Who's Online  | Help


Quick Go »


No member browsing this thread
Thread Status: Active
Total posts in this thread: 4
Post new Thread
Author
Previous Thread This topic has been viewed 2034 times and has 3 replies Next Thread
Male petie
Stranger




Joined: Feb 12, 2004
Post Count: 6
Status: Offline
Reply to this Post  Reply with Quote 
Apache+Tomcat+UserDir

Hi,
I've set up Apache and Tomcat to serve .jsp's correctly from the examples folder under tomcat, using the connector to serve without the port 8080. But we usually serve user pages using the UserDir command in Apache config so http://myserver.com/~username goes to the correct directory. How do I now allow Tomcat to serve the jsp pages correctly from these users folders? At the moment just the jsp script is delivered to the browser!
Thanks for any help..
[Feb 12, 2004 1:38:24 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male minhnn
mvnForum Developer
Member's Avatar

Vietnam
Joined: Oct 16, 2002
Post Count: 2956
Status: Offline
Reply to this Post  Reply with Quote 
Re: Apache+Tomcat+UserDir

I am not familiar with this so I hope someone could help you.

Good luck smile
----------------------------------------
Minh Nguyen
mvnForum Developer
Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com

http://www.DienDanLinux.org
[Feb 12, 2004 5:58:30 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.MyVietnam.net    minhnn_mvn [Link] Report threatening or abusive post: please login first  Go to top 
Male cord
mvnForum Documenter
Member's Avatar


Joined: Jan 8, 2003
Post Count: 162
Status: Offline
Reply to this Post  Reply with Quote 
Re: Apache+Tomcat+UserDir

petie,

which connector are you using? mod_jk, jk2, webapp?

when you say jsp is delivered, you mean, when they navigate http://server.com/~user/a.jsp, it delivers raw JSP to the browser?

Basically, you want to follow the same methods used for the /examples folder you applied. you need to tell apache to forward *.jsp requests in path, /home/*/public_html to tomcat.

now, i am not sure about the recursion, but i believe this will do the trick.
[Feb 13, 2004 4:22:31 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Female esochan
Stranger




Joined: Oct 28, 2008
Post Count: 1
Status: Offline
Reply to this Post  Reply with Quote 
Re: Apache+Tomcat+UserDir

Was there ever an answer to this? I am having the same issues (with servlets and JSPs).

I'm running Apache1.3.41/Tomcat 6.x and mod_jk1.2.26.

/examples work with mod_jk, but not with ~userdirs
[Oct 28, 2008 3:27:41 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Show Printable Version of Thread  Post new Thread