I am deploying an angular 13 application in a tomcat 9 environment.
This is the domain I am using:
http://streamsspain.com/
And this is the result:
http://streamsspain.com/streamsspain_web/
The problem that I find is that I use a proxy from apache2 in an Ubuntu 20 operating system, the redirection is done correctly on the tomcat server from the apache2 server, but I need to remove the name of the application from the url, which is "streamsspain_web/ ", I have tried using the corresponding rules to make a "RewirteRule" in apache2 but I can't find the exact ones.
Or maybe the url rewriting should be done in tomcat itself?
The apache conf is:
<VirtualHost *:80>
ServerName streamsspain.com
ServerAlias www.streamsspain.com
ServerAdmin [email protected]
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost Off
ProxyPass /StreamsSpain_WEB/ http://localhost:8180/StreamsSpain_WEB/
ProxyPass / http://localhost:8180/StreamsSpain_WEB/
ProxyPassReverse / http://localhost:8180/StreamsSpain_WEB/
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ErrorLog ${APACHE_LOG_DIR}/Uploader_Image_error.log
CustomLog ${APACHE_LOG_DIR}/Uploader_Image_access.log combined
</VirtualHost>