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 9030177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:25:32+00:00 2026-06-16T07:25:32+00:00

I am using JBOSS Application Server on which our main project runs. On the

  • 0

I am using JBOSS Application Server on which our main project runs. On the top we are using nginx as webserver to listen on port 80 which act as proxy for forwarding all connections to 8080 port on which jboss project is running. Below is the configuration we added. Now the first page work fine using url http://domain_name which is the login page. But after we login the page redirect to next page and get appended with project name twice and hence throws error since it couldn’t find the page in that path. How to rewrite the url which will remove project name for users using nginx? I know we can use this project as default by changing context root tag in the web.xml other than that is there anything we can do.

Nginx Configuration

location / {
        proxy_pass http://localhost:8080/project1/;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#       proxy-set_header Host $host;
    }

Error

HTTP Status 404 - /project1/project1/

type Status report

message /project1/project1/

description The requested resource (/project1/project1/) is not available.
  • 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-16T07:25:33+00:00Added an answer on June 16, 2026 at 7:25 am

    Just use proxy_pass http://localhost:8080;

    That is, remove project1 from the proxy pass directive.


    To have users only enter http://domain.com and not http://domain.com/project_name, you need to use the root directive in nginx.

    root /server/path/to/domain.com/project_name;

    Your other server should be set with the equivalent directive. With Apache, this is the DocumentRoot directive.

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

Sidebar

Related Questions

We're using Warbler to deploy our application to JBoss. The server seems to start
I try to run jsf application in myeclipse using jboss web server and following
I have a Spring application deployed in JBoss EAP server, using the following settings:
I have a application that runs very well on JBoss using JSF 2. I
I am using apache as my front http server which handles requests for JBoss
I am using JBoss AS 5 + 6 as an application server, however only
This question came to me when developing using Eclipse. I use JBoss Application Server
I want to implement a painting service using Java EE and JBoss Application Server.
I am using JBoss 4.0.4 GA as application server and EJB 2.x for coding
I'm using Jboss 7.1.1.final and i have an application with heavy use of JMS.

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.