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

  • SEARCH
  • Home
  • 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 6600633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:39:00+00:00 2026-05-25T18:39:00+00:00

I have a apache setup that redirect to my app running on tomcat. Loading

  • 0

I have a apache setup that redirect to my app running on tomcat. Loading http://domain.com works fine. However http://www.domain.com gives me a 404 error.

What am I missing?

NameVirtualHost www.domain.com:80
<VirtualHost www.domain.com:80>
    ServerName www.domain.com
    ProxyPass /svn !
    ProxyPass / ajp://127.0.0.1:8009/appname/
    ProxyPassReverse / ajp://127.0.0.1:8009/appname/
    ProxyPassReverseCookiePath /appname/
</VirtualHost>

Following the first comment I have altered by code to be:

<VirtualHost www.domain.com:80>
    ServerName www.domain.com
    ServerAlias www.domain.com domain.com
    ProxyPass /svn !
    ProxyPass / ajp://127.0.0.1:8009/appname/
    ProxyPassReverse / ajp://127.0.0.1:8009/appname/
    ProxyPassReverseCookiePath /appname/
</VirtualHost>

In the apache logs I see a 404 error “GET / HTTP/1.1″ 200 16060”
In the browser I see an apache tomcat 404 error (tomcat 6.0.28)
I see nothing in the tomcat logs

  • 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-05-25T18:39:01+00:00Added an answer on May 25, 2026 at 6:39 pm

    Use ServerAlias.

    <VirtualHost www.domain.com:80>
        ServerName www.domain.com
        ServerAlias www.domain.com domain.com
        ProxyPass /svn !
        ProxyPass / ajp://127.0.0.1:8009/appname/
        ProxyPassReverse / ajp://127.0.0.1:8009/appname/
        ProxyPassReverseCookiePath /appname/
    </VirtualHost>
    

    Edit:
    When facing that kind of problems, you can directly hit tomcat on its HTTP port (see server.xml) and check if the problem occurs.

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

Sidebar

Related Questions

I'm running wamp on Vista (Apache v2.2.11) and have projects setup such that http://localhost/projectx
I have apache 2.2 and tomcat 5.5 running on a Windows XP machine. Which
I'd setup Apache 2.2 with Mod_Jk so that all Tomcat 6 pages is piped
I have setup an Apache server with mod_wsgi, python_sql, mysql and django. Everything works
I have Sventon running on port 8090 of my server under Apache Tomcat. I
I have a virtual host setup on Apache 2 like so (simplified): <VirtualHost *>
I have setup svnserve server (1.6.5,plain, without apache) on Fedora. The users, who has
I have Apache running on a public-facing Debian server, and am a bit worried
I have Apache 2 running on a VPS server (running Debian). I recently changed
I have Apache/SVN running on Windows Server 2003 with authentication via LDAP/Active Directory and

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.