Re: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-12 Thread Mark Thomas
On 12/01/2023 10:50, Simon Matter wrote: On 12/01/2023 05:08, Fedor Makarov wrote: lundase and vvsguiden webapps used on different domains My recommendation would be to configure Tomcat for virtual hosting as well. [1] For example, configure the following hosts in the local hosts file: lund

Re: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-12 Thread Simon Matter
> On 12/01/2023 05:08, Fedor Makarov wrote: >> >> lundase and vvsguiden webapps used on different domains > > My recommendation would be to configure Tomcat for virtual hosting as > well. [1] > > For example, configure the following hosts in the local hosts file: > > lundase-local > vvsguiden-local

Re: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-12 Thread Mark Thomas
On 12/01/2023 05:08, Fedor Makarov wrote: lundase and vvsguiden webapps used on different domains My recommendation would be to configure Tomcat for virtual hosting as well. [1] For example, configure the following hosts in the local hosts file: lundase-local vvsguiden-local Then the http

Re: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-11 Thread Fedor Makarov
lundase and vvsguiden webapps used on different domains   <-->ServerName new.vvsguiden-dev.gridnine.com <-->ServerAlias localhost <-->ServerAdmin webmaster@localhost <-->DocumentRoot /var/www/html   <-->RewriteEngine on   <-->ProxyPreserveHost on                       Ord

Re: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-10 Thread Mark Thomas
On 10/01/2023 04:37, Fedor Makarov wrote: Also I tried to write a filter to manually redirect, but tomcat intercepts the request before it gets into the filter. Can I disable this behavior for tomcat and do it manually? That isn't the way to solve this problem. The problem is in the reverse

Re: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-09 Thread Fedor Makarov
Also I tried to write a filter to manually redirect, but tomcat intercepts the request before it gets into the filter. Can I disable this behavior for tomcat and do it manually?   >Понедельник, 9 января 2023, 11:43 +03:00 от Fedor Makarov >: >  > > >We have to webapps lundase and vvsguiden th

Re: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-09 Thread Christopher Schultz
Fedor, On 1/9/23 03:43, Fedor Makarov wrote: We have to webapps lundase and vvsguiden therefore, the options you have suggested do not look applicable Why not? on debug I saw that RequestURI in request looks like lundase/lundase/... Probably because of this: >>> RewriteRule ^(.*)$ http://

Re: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-09 Thread Fedor Makarov
We have to webapps lundase and vvsguiden therefore, the options you have suggested do not look applicable on debug I saw that RequestURI in request looks like lundase/lundase/...   >Вторник, 27 декабря 2022, 22:06 +03:00 от Christopher Schultz >: >  >Fedor, > >On 12/27/22 05:55, Fedor Makarov

RE: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-09 Thread alik alikov
We have to webapps lundase and vvsguiden therefore, the options you have suggested do not look applicable on debug I saw that RequestURI in request looks like lundase/lundase/... 27.12.2022, 22:07, Christopher Schultz < mailto:ch...@christopherschultz.net ch...@christopherschultz.net > Fedor, O

Re: Problems with requests without trailing slash Tomcat 9.0.65

2022-12-27 Thread Christopher Schultz
Fedor, On 12/27/22 05:55, Fedor Makarov wrote: proxy for local environment we use the js conf: proxy: {     '/api/': {       target: 'http://localhost:8080/',       changeOrigin: false,     },     '/': {       target: 'http://localhost:8080/lundase',       changeOrigin: false     }   }

Re: Problems with requests without trailing slash Tomcat 9.0.65

2022-12-27 Thread Fedor Makarov
proxy for local environment we use the js conf: proxy: {     '/api/': {       target: 'http://localhost:8080/',       changeOrigin: false,     },     '/': {       target: 'http://localhost:8080/lundase',       changeOrigin: false     }   },   for normal lunch we use apache2.conf: RewriteCond %{RE

Re: Problems with requests without trailing slash Tomcat 9.0.65

2022-12-27 Thread Mark Thomas
On 27/12/2022 06:25, Fedor Makarov wrote: Tomcat 9.0.65 Hello I have some problems with redirects by requests without trailing slashes. When I try to get to the page for example: "about/page" tomcat understands that it is necessary to add a slash and adds it, however, he also adds the n

Problems with requests without trailing slash Tomcat 9.0.65

2022-12-26 Thread Fedor Makarov
  Tomcat 9.0.65 Hello I have some problems with redirects by requests without trailing slashes.   When I try to get to the page for example: "about/page" tomcat understands that it is necessary to add a slash and adds it, however, he also adds the name of the root folder to this, that is, the ur