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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:28:23+00:00 2026-06-12T06:28:23+00:00

I have an nginx up at the front serving as a proxy to two

  • 0

I have an nginx up at the front serving as a proxy to two servers, one running Websphere Portal Server and one running Spring on a Jboss server.

I’m currently having problems with the proxying of certain requests, for instance, I have the following:

server{
    listen:8080;
    server_name:localhost;

    location /jbossSpring/ {
        proxy_pass http://177.21.1.15:9000/Spring_project/;
    }

    location /webspherePortal/ {
        proxy_pass http://177.21.1.15:9400/Portal_project/;
    }
}

Now, this does the proxy from localhost:8080/jbossSpring/ and localhost:8080/webpsherePortal/ correctly, however, the pages I get keep requesting files that are located on localhost:8080/Spring_project/ and localhost:8080/Portal_project/.

Is there anyway for me to handle these in nginx? or do I have to modify the Spring/Portal projects to get the right url? (path dependencies probably?)

  • 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-12T06:28:24+00:00Added an answer on June 12, 2026 at 6:28 am

    You may achieve this result by using http rewrite module, documented at ngx_http_rewrite_module

    To give an idea, I guess your rewrites shall look like below (I haven’t validated this)

    server {
      ...
      rewrite ^/Spring_project/(.*) /jbossSpring/$1 last;
      rewrite ^/Portal_project/(.*) /webspherePortal/$1 last;
      ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running nginx 0.6.32 as a proxy front-end for couchdb. I have my
I have a nginx server running with ssl enabled. Currently I have https enabled
I have installed Nginx 1.2.0 with Passenger on my Mac Mini running Lion Server.
I have Nginx as my front-end web server listening on port 80. And certain
I have running nginx on my server ansel.ms and a node.js app on ansel.ms:46156.
I have a server where nginx serves as a front load balancer and Apache
I have nginx setup, acting as a reverse proxy to apache. However, I need
I have nginx acting as a reverse proxy to apache. I now need to
I have a Joomla (nginx + mysql) site running as UI and some JSP
I have this configuration of nginx : server { listen 80; server_name example.com www.example.com;

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.