logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: How to Rewrite application name case in URL
Author
tushar.ghodake



Joined: 04 Apr 2017
Posts: 10
Location: India

PostPosted: Fri 27 Jul '18 8:30    Post subject: How to Rewrite application name case in URL Reply with quote

Hello All,

I want to rewrite application name in an URL like below

https://domain.com/policyserver to
https://domain.com/PolicyServer

Basically, I want to make P and S uppercase as my tomcat context set to like that.

So Apache should rewrite the URL by searching lowercase policyserver and make it uppercase.

Please help

tushar.ghodake@seclore.com
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Tue 07 Aug '18 11:49    Post subject: Reply with quote

How did you connect your httpd to your tomcat?

You could add a second location and correct the path wihtout rewriting.
Back to top
tushar.ghodake



Joined: 04 Apr 2017
Posts: 10
Location: India

PostPosted: Tue 07 Aug '18 13:09    Post subject: How to Rewrite application name case in URL Reply with quote

I tried this and it worked for me.

ProxyPass /policyserver !
Redirect 301 /policyserver https://domain.com/PolicyServer
Back to top


Reply to topic   Topic: How to Rewrite application name case in URL View previous topic :: View next topic
Post new topic   Forum Index -> Apache