Have you consider doing the following 1. custom URL/domain, and 2. enable Friendly URLs in APEX
On Thu, Mar 24, 2022 at 3:09 PM Felix Schumacher < felix.schumac...@internetallee.de> wrote: > > Am 24.03.22 um 19:23 schrieb rupali singh: > > hi, > > yes context name is apex. > > Good to know. > > https://xyz.ae/apex/f?p=1001 <https://xyz.com/apex/f?p=1001> > <https://xyz.com/apex/f?p=1001> tohttps://xyz.ae/apex/myapp > <https://xyz.com/aorx/myapp> <https://xyz.com/aorx/myapp> > > we dont want to change xyz.ae that will name remain as it is , we want to > change f?p=1001 <https://xyz.com/apex/f?p=1001> > <https://xyz.com/apex/f?p=1001> to myapp > > Sorry, I don't understand, what you meant by the above. > > I suspect, that you wanted to show, what the user enters into the browser > and where the application listens. But it doesn't really makes sense to me. > > Reading your first mail again, I think, that you have a loadbalancer that > listens on xyz.ae and that proxies to xyz.com (you mentioned port 8080, > which is left out in all your examples). Is that right? > > Apart from that, I wanted to know, what you tried on a technical level. > Have you tried the curl command that I gave as an example? > > Felix > > On Wed, 23 Mar 2022 at 19:23, Felix Schumacher > <felix.schumac...@internetallee.de> wrote: > > > Am 23. März 2022 12:14:25 MEZ schrieb rupali singh <rupali.r.si...@gmail.com>: > > Hi Chris, > > I already tried with fully qualified name but its not working > > Can you be more specific, what you tried? > > Is Chris right and your context name is apex? > > Felix > > On Tue, Mar 22, 2022, 7:15 PM Christopher Schultz > <ch...@christopherschultz.net> wrote: > > > All, > > On 3/21/22 10:19, Felix Schumacher wrote: > > Am 21.03.22 um 06:39 schrieb rupali singh: > > Hi Felix, > > location of context.xml file is > > cat context.xml| grep RewriteValve > <Valve > > className="org.apache.catalina.valves.rewrite.RewriteValve" > > /> > > pwd > /opt/tomcat/apache-tomcat-9.0.54/instance/conf > > That context.xml is thought to be a default template for all installed > webapps. It will work, but remember, that every installed webapp will > get its own copy of a rewrite valve. > > +1 > > This is probably the problem. > > > more > > > /opt/tomcat/apache-tomcat-9.0.54/instance/webapps/ROOT/WEB-INF/rewrite.config > > RewriteCond %{QUERY_STRING} p=10001 > RewriteRule ^/apex/f$ /apex/myapp [R,L] > > I think you want: > > RewriteCond %{QUERY_STRING} p=10001 > RewriteRule ^/f$ /myapp [R,L] > > The prefix /apex is already a part of the context-path and should be > removed from the URL patterns being matched. If you want to redirect to > another web application, you need a fully-qualified redirect like this: > > RewriteCond %{QUERY_STRING} p=10001 > RewriteRule ^/f$ https://www.google.com/ [R,L] > > -chris > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >