logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 


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

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



How to Rewrite application name case in URL

 
Post new topic   Reply to topic    Apache Forum Index -> Apache



View previous topic :: View next topic  
Author Message
tushar.ghodake



Joined: 04 Apr 2017
Posts: 3
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: 6452
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: 3
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


Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1