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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:23:22+00:00 2026-05-11T05:23:22+00:00

I configured apache on 4 ports (with virtual hosts as some ports used HTTPS)

  • 0

I configured apache on 4 ports (with virtual hosts as some ports used HTTPS) and the aim is to redirect post requests to different servlets running in a TOMCAT instance on some other machine. The calls are made from a httpclient (java client) . When I run the client it throws the error 301 Error: Moved Permanently. Need hints/tips/help on how to solve the this problem.

It would be nice if someone can give me a example. My virtual host (with the re-direction) looks like something like this

<VirtualHost _default_:3334>   RewriteEngine On   RewriteRule ^/$ https://192.168.100.23:38443/Lang/Englangservices/Alapbhet_service <\VirtualHost> 

I am now able to get mod proxy working with mod rewrite and now I dont get the 302 error, but as it always happens to a newbie there is this another problem.

HTTP POST requests are not working. When I issue the post request, the proxy fails as it goes on to look for index.htm.

My httpd.conf snippet

<VirtualHost *:3331>   ServerName localhost:3331   ProxyPass / http://192.168.100.23:38443/Lang/Englangservices/Alapbhet_service   ProxyPassReverse / http://192.168.100.23:38443/Lang/Englangservices/Alapbhet_service   RewriteEngine on   RewriteRule ^/$ http://localhost:3331/ </VirtualHost> 
  • 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. 2026-05-11T05:23:22+00:00Added an answer on May 11, 2026 at 5:23 am

    Achieved this using JK and mod rewrite. The problem was with two way SSL and I configured the ports to run in conjunction with 443 (SSL) port.

    i.e.

    Note: if one intends to rewrite URL’s in the virtual hosts then JK mount has to be reloaded for each virtual host.

    My URL rewrites look like this

    RewriteEngine on
    RewriteCond %{SERVER_PORT} 4342
    RewriteRule ^/$ /Lang/Englangservices/Alapbhet_service [L,PT]

    Thanks everyone one for their inputs.

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

Sidebar

Ask A Question

Stats

  • Questions 89k
  • Answers 90k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This is basically the client side of the answer. If… May 11, 2026 at 5:59 pm
  • Editorial Team
    Editorial Team added an answer There is not just third option, there are many :)… May 11, 2026 at 5:59 pm
  • Editorial Team
    Editorial Team added an answer If the amount of data is not ridiculously large, use… May 11, 2026 at 5:59 pm

Related Questions

I am running Ubuntu8.041. Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured Can't get file uploading
On my Apache 2.x server at home, I have a number of virtual directories.
I'm setting up a cluster of servers for the company I work at, and
I haven't been able to find any documentation on how to configure Hibernate's logging

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.