Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7922589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:00:58+00:00 2026-06-03T17:00:58+00:00

I am using Apache/2.2.14 and Apache Tomcat/6.0.29 in a Ubuntu Server 10.04.3 LTS .

  • 0

I am using Apache/2.2.14 and Apache Tomcat/6.0.29 in a Ubuntu Server 10.04.3 LTS.

This is my jk.conf:

JkWorkersFile /etc/libapache2-mod-jk/workers.properties
JkMount       /portal/* worker1
JkLogLevel    debug
JkMountCopy   All

And this is my workers.properties:

ps=/

# Define 1 real worker named worker1
worker.list=worker1

# Set properties for worker named worker1 to use ajp13 protocol,
# and run on port 8009
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=1
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300

The problem is that whenever I try to access tomcat via apache with: http://my.host.com/portal, tomcat replies with:

13:39:30,683 INFO  [PortalImpl:3829] Current URL /portal/ generates exception: null

The problem goes away if I use a different mountpoint for the worker:

JkMount       /portal/* worker1

But this forces me to access my tomcat instance here: http://my.host.com, which I do not want.

Is there any way of rewriting the URL using mod-jk?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T17:01:00+00:00Added an answer on June 3, 2026 at 5:01 pm

    You can skip all that configuration if you just use mod_proxy instead of mod_ajp…

    ProxyPass /foo http://localhost:8080/bar
    ProxyPassReverse /foo http://localhost:8080/bar
    

    This will proxy /foo to local server URL /bar running on port 8080.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am planning on using Apache Tomcat 6.0 as web server in my web
Is this a right thing to do? I am using the Apache/Tomcat that comes
I'm trying to deploy a war to a Apache Tomcat server (Build 6.0.24) using
I am setting up a new server using Apache, Tomcat and Railo ColdFusion. I
I am using Apache tomcat 7.02 as a server.I created an application using sphinx4
i am using netbeans 6.7.1 and apache tomcat server 7.0 but when in tried
[using Apache Tomcat/7.0.27] It seems I only get this error ( HTTP Status 405
We have an application deployed on tomcat. To access application we are using apache
I am using Tomcat 6 and have some questions about Apache mod_jk as follows.
I'm Creating a facebook application using apache-tomcat. I use the Java Facebook API. It

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.